Configuring endpoints

Use this procedure to customize the internal services endpoints of Control Center. The following configuration variables specify the endpoints:
SERVICED_ZK
Default: (none)
The list of endpoints in the serviced ZooKeeper ensemble, separated by the comma character (,). Each endpoint identifies an ensemble node. Each Control Center server and in-container proxy uses SERVICED_ZK to create a randomized, round-robin list, and cycles through the list when it attempts to establish a connection with the lead ZooKeeper host.
SERVICED_ENDPOINT
Default: {{SERVICED_MASTER_IP}}:4979
The endpoint of the serviced RPC server. Replace {{SERVICED_MASTER_IP}} with the IP address or hostname of the serviced master host. The port number of this endpoint must match the value of the SERVICED_RPC_PORT variable defined on the serviced master host.
SERVICED_LOG_ADDRESS
Default: {{SERVICED_MASTER_IP}}:5042
The endpoint of the logstash service. Replace {{SERVICED_MASTER_IP}} with the IP address or hostname of the serviced master host.
SERVICED_LOGSTASH_ES
Default: {{SERVICED_MASTER_IP}}:9100
The endpoint of the Elasticsearch service for logstash. On delegate hosts, replace {{SERVICED_MASTER_IP}} with the IP address or hostname of the Elasticsearch host, which by default is the serviced master host.
SERVICED_STATS_PORT
Default: {{SERVICED_MASTER_IP}}:8443
The endpoint of the serviced metrics consumer service. Replace {{SERVICED_MASTER_IP}} with the IP address or hostname of the serviced master host.

Perform these steps:

  1. Log in to the host as root, or as a user with superuser privileges.
  2. Edit the Control Center configuration file.
    1. Open /etc/default/serviced in a text editor.
    2. For each endpoint variable, locate the line that sets the variable, and then make a copy of the line, immediately below the original.
    3. Remove the number sign character (#) from the beginning of the line.
    4. Replace {{SERVICED_MASTER_IP}} with the virtual IP address of the high-availability cluster (HA-Virtual-IP).
    5. Save the file, and then close the editor.
  3. Verify the settings.
    grep -E '^\b*SERVICED' /etc/default/serviced