Step 4: Defining the URL for the cluster
By default, the Compose service generates the URL when it starts, according to the hostname of the machine on which Compose is installed.
In a cluster environment, this is not good practice because the URL will change each time the cluster is rolled over. To resolve this issue, you need to set the cluster name as the Compose URL.
To set the cluster name as the Compose URL:
- In the left pane of the Failover Cluster Manager, select Nodes. The right pane of the Console displays a list of cluster nodes.
- Select a node to see the cluster name. This is the name you want to set (for example: Cluster_Network_1).
-
Run the following command from the primary node:
<PRODUCT_DIR>\bin>ComposeCtl.exe -d <COMPOSE_DATA_FOLDER> configuration set --address <CLUSTER_NAME>
The host configuration will be updated.
The cluster name must be registered in DNS, before you can set it.
- Restart the Compose service for the changes to take effect.
- To make sure Compose is now using the correct URL, use the <COMPOSE_DATA_FOLDER>\service.url shortcut to check the cluster name in the service Properties.
- Try to open Compose from a remote browser using <COMPOSE_DATA_FOLDER>\service.url.