By default the Aspire distributions are configured to work in standalone mode:
Code Block | ||
---|---|---|
| ||
<configAdministration> <zookeeper enabled="true" root="/aspire"> <externalServer>zooA.dev.com:2182,zooB.dev.com:2183,zooC.dev.com:2181</externalServer> </configAdministration> |
So our first step would be to enable zookeeper and point to our zookeeper cluster. (Let's assume we have a three server zookeeper cluster zooA.dev.com, zooB.dev.com and zooC.dev.com)
Code Block | ||
---|---|---|
| ||
<configAdministration> <zookeeper enabled="false" root="/aspire"> <!-- <externalServer>127.0.0.1:2182,127.0.0.1:2183,127.0.0.1:2181</externalServer> --> </configAdministration> |
If we were to start our Aspire servers now, they would not interact with each other as a cluster, this is because they do not share the same cluster ID. So let's define our clusterID to be "dev", by uncommenting the <clusterID> field:
Code Block | ||
---|---|---|
| ||
<!-- By default all Aspire servers start in their own cluster. To make servers work together, set a common cluster id across multiple instances that are connected to a common zooKeeper instance and database provider (for example "dev" or "prod") --> <clusterId>dev</clusterId> |