3. Manage cluster level microservice applications
Multiple App Mesh instances can connect as a cluster with Consul and schedule cluster level microservice applications. Cluster level application can get the benefit of cluster level HA, and the application will be schedule among the cluster with resource requirement consideration.
3.1. Configuration
In cluster environment, an App Mesh instance can be a main
(leader candidates) node or worker
node, All main nodes and worker nodes should connect to the same Consul URL to perform a cluster, we can configure from App Mesh UI:
3.1.1. Add cloud application
We can register cloud application in Cloud menu.
Cloud application can have bellow content:
application definition JSON body
application replication number (App Mesh will schedule and start according instance)
application service port (this will be registered to Consul service for service discovering)
application schedule preference (node select with labels, support wildcards)
3.1.2. App Schedule
App Mesh leader node will schedule cloud application to perfected nodes, and cloud app will have cloud icon from UI: