Setting internal services endpoints

Use this procedure to configure a delegate host with the endpoints of the Control Center internal services.

Although Control Center relies on ZooKeeper for coordination, it is not a Control Center internal service. The instructions for setting the ZooKeeper endpoint are included in the next chapter.

The following configuration variables identify the internal services endpoints:
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 delegate 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 localhost or {{SERVICED_MASTER_IP}} with the IP address or hostname of the master host.
    5. Save the file, and then close the editor.
  3. Verify the settings.
    grep -E '^\b*SERVICED' /etc/default/serviced