Configure YAMBAS Cluster
Before you start setting up a cluster of different YAMBAS nodes be sure you've already installed one YAMBAS instance following YAMBAS Installation Guide.
The values and configuration files of the first YAMBAS instance needs to be shared or copied to the other instances.
The guide on this page is more or less a check list which bundles the most important steps for you.
|
Step |
Explanation |
1 |
Check MongoDB instance(s) |
You have to decide how the YAMBAS cluster members should get access to the MongoDB instances. |
2 |
Check 1st YAMBAS instance |
Next you should check if the first YAMBAS instance is running to be sure you have a working configuration. |
3 |
Check SuperAdmin |
Before progressing any further you need a valid SuperAdmin account, which was created on installation of the first YAMBAS instance. curl https: //<yourhost>/yambas/rest/customers/SuperAdmin -u SuperAdmin:password |
4 |
Copy Configuration Files
|
On installation of the first YAMBAS instance some changes were made to the configuration files like apiomat.yaml, hazelcast.xml, log4j2.xml. In this step just copy those files from the first YAMBAS instance. If your YAMBAS instance is running as Docker container you should already have all necessary configuration values. |
5 |
Install Consul Cluster |
After finished checking the first instance you have to install Consul on each node and configure those instances as Consul cluster. Consul is recommended since ApiOmat 3.2 to support service discovery between its components like apidocs (explorer) and other services ... |
6 |
Install YAMBAS on other Nodes |
Next install YAMBAS on each node that is planned to be a member of the cluster by following the YAMBAS Installation Guide. |
7 |
Sync Configuration |
Paste the copied configuration files and values of step 4 to all YAMBAS instances. Double-check that the configEncryptionKey is the same on all nodes otherwise you won't be able to log in as customer on all nodes. |
8 |
Setup Hazelcast |
In order to share classes between all YAMBAS instances you need to configure Hazelcast by following the guide Configure Hazelcast |
9 |
Optional: |
If you are planning to use a proxy or loadbalancer within the cluster, e.g. if you want to also use several Dashboard instances, |
10 |
Start YAMBAS cluster |
Start YAMBAS on each node and wait for startup finished before starting the next node. After all YAMBAS nodes are up you can check the cluster setup by calling curl https: //<yourhost>/yambas/rest/cluster -u SuperAdmin:password |