getActiveMaster

Syntax

getActiveMaster()

Arguments

None.

Details

Return the alias of the controller node of a cluster. 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 controller.

Examples

getActiveMaster();
// output
controller1