LogService supports dynamic scaling. You can use the add ln command of the LS-CTRL tool to add a LogService node (LN) to a specified Zone in a LogService cluster.
Procedure
Add an LN to a specified Zone in the cluster.
ls_ctrl -H <HOST_ADDRESS> add ln <host:port> <az>
where:
<host:port>: The address of the node to be added. This parameter is required. The port must be the same as therpc_portvalue in the configuration file.<az>: The name of the target Zone. This parameter is required.
After the command is executed successfully, you can run the ls_ctrl show ln command to check whether the node is added.
ls_ctrl -H <HOST_ADDRESS> show ln
If the new node appears in the list, the node is successfully added.
Note
In the preceding command, HOST_ADDRESS is the HTTP address (including the port number) of any LogService node, for example, 127.0.0.1:8080. For more information about LS-CTRL commands, see Overview of LS-CTRL.
References
For more information about node-related O&M operations, see the following topics: