getActiveMaster

Syntax

getActiveMaster()

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.

Parameters

None.

Returns

A STRING scalar.

Examples

getActiveMaster();
// output: controller1