getActiveMaster

Syntax

getActiveMaster()

Arguments

None.

Details

Return the alias of the controller node. For a cluster with multiple controller nodes, return the alias of the Leader controller node. Please note that this function can only be executed on the control node.

Examples

$ getActiveMaster();
controller1