Add load balancing to a service.
Delete loadbalancing of a service.
Edit a clustered service.
Checks if the service is running or not.
array ( 'status' => 0, 'payload' => true, )
Checks if the service is running on a specific node (Clustering only).
Lists the current load balancer status.
array ( 'status' => 0, 'payload' => array ( '4.3.2.1:80' => array ( 'info' => array ( 'protocol' => 'TCP', 'vip' => '4.3.2.1', 'port' => '80', 'pport' => 'http', 'policy' => 'rr', 'ppolicy' => '##LG_ROUND_ROBIN##', 'persistent' => '300', ), 'realservers' => array ( '208.69.122.234:80' => array ( 'vip' => '208.69.122.234', 'port' => '80', 'forward' => 'Local', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), '69.170.135.92:80' => array ( 'vip' => '69.170.135.92', 'port' => '80', 'forward' => 'Route', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), ), ), '123.123.123.123:80' => array ( 'info' => array ( 'protocol' => 'TCP', 'vip' => '123.123.123.123', 'port' => '80', 'pport' => 'http', 'policy' => 'rr', 'ppolicy' => '##LG_ROUND_ROBIN##', 'persistent' => '300', ), 'realservers' => array ( '208.69.122.234:80' => array ( 'vip' => '208.69.122.234', 'port' => '80', 'forward' => 'Local', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), '69.170.135.92:80' => array ( 'vip' => '69.170.135.92', 'port' => '80', 'forward' => 'Route', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), ), ), '123.123.123.125:80' => array ( 'info' => array ( 'protocol' => 'TCP', 'vip' => '123.123.123.125', 'port' => '80', 'pport' => 'http', 'policy' => 'rr', 'ppolicy' => '##LG_ROUND_ROBIN##', 'persistent' => '300', ), 'realservers' => array ( '208.69.122.234:80' => array ( 'vip' => '208.69.122.234', 'port' => '80', 'forward' => 'Local', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), '69.170.135.92:80' => array ( 'vip' => '69.170.135.92', 'port' => '80', 'forward' => 'Route', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), ), ), ), )
Lists the "normal" name - ie "web server" instead of "httpd".
array ( 'status' => 0, 'payload' => '##LG_LOAD_BALANCER##', )
Lists a string of the port numbers that this service uses, comma-seperated.
array ( 'status' => 0, 'payload' => '##LG_NOT_APPLICABLE##', )
Lists array of port numbers and ranges that this service uses.
array ( 'status' => 0, 'payload' => array ( 0 => '##LG_NOT_APPLICABLE##', ), )
Lists an array of permissions required to control the service.
array ( 'status' => 0, 'payload' => array ( 0 => 'CLUSTERING', ), )
Lists the service name, ports, page, and status.
array ( 'status' => 0, 'payload' => array ( 'id' => 'ipvsadm', 'name' => '##LG_LOAD_BALANCER##', 'ports' => '##LG_NOT_APPLICABLE##', 'page' => '/nodeworx/cluster/lb', 'ctrl' => '/nodeworx/cluster/lb', 'is_running' => 1, ), )
Lists the service name - ie "httpd" instead of "web server".
array ( 'status' => 0, 'payload' => 'ipvsadm', )
Lists the page that controls the service.
array ( 'status' => 0, 'payload' => '/nodeworx/cluster/lb', )
Restarts the service.
Restarts the service on a specific node (Clustering only).
Modify ldirectord variables.
Starts the service.
Set the loadbalancer start on boot status.
Starts the service on a specific node (Clustering only).
Stops the service.
Stops the service on a specific node (Clustering only).
Controller: ClusterLb
Action: addService (Added in version 4.2.0-260)
Add load balancing to a service.
Input Parameters
80, 25, 110, 143, 443
0.0.0.0, 4.3.2.1, 123.123.123.123, 123.123.123.125
rr, wrr, lc, wlc, lblc
0, 300, 1800, 3600
300
0, 1
1
0, 1
1
Action: deleteService (Added in version 4.2.0-260)
Delete loadbalancing of a service.
Input Parameters
4.3.2.1:80, 123.123.123.123:80, 123.123.123.125:80
Action: editService (Added in version 4.3.0-290)
Edit a clustered service.
Input Parameters
4.3.2.1:80, 123.123.123.123:80, 123.123.123.125:80
rr, wrr, lc, wlc, lblc
rr
0, 300, 1800, 3600
300
1
0
Action: isRunning (Added in version 4.2.0-260)
Checks if the service is running or not.
Example Output
Action: isRunningOnNode (Added in version 4.3.0-290)
Checks if the service is running on a specific node (Clustering only).
Input Parameters
Action: listCurrentLoadBalancerStatus (Added in version 4.3.0-290)
Lists the current load balancer status.
Example Output
array ( 'status' => 0, 'payload' => array ( '4.3.2.1:80' => array ( 'info' => array ( 'protocol' => 'TCP', 'vip' => '4.3.2.1', 'port' => '80', 'pport' => 'http', 'policy' => 'rr', 'ppolicy' => '##LG_ROUND_ROBIN##', 'persistent' => '300', ), 'realservers' => array ( '208.69.122.234:80' => array ( 'vip' => '208.69.122.234', 'port' => '80', 'forward' => 'Local', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), '69.170.135.92:80' => array ( 'vip' => '69.170.135.92', 'port' => '80', 'forward' => 'Route', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), ), ), '123.123.123.123:80' => array ( 'info' => array ( 'protocol' => 'TCP', 'vip' => '123.123.123.123', 'port' => '80', 'pport' => 'http', 'policy' => 'rr', 'ppolicy' => '##LG_ROUND_ROBIN##', 'persistent' => '300', ), 'realservers' => array ( '208.69.122.234:80' => array ( 'vip' => '208.69.122.234', 'port' => '80', 'forward' => 'Local', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), '69.170.135.92:80' => array ( 'vip' => '69.170.135.92', 'port' => '80', 'forward' => 'Route', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), ), ), '123.123.123.125:80' => array ( 'info' => array ( 'protocol' => 'TCP', 'vip' => '123.123.123.125', 'port' => '80', 'pport' => 'http', 'policy' => 'rr', 'ppolicy' => '##LG_ROUND_ROBIN##', 'persistent' => '300', ), 'realservers' => array ( '208.69.122.234:80' => array ( 'vip' => '208.69.122.234', 'port' => '80', 'forward' => 'Local', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), '69.170.135.92:80' => array ( 'vip' => '69.170.135.92', 'port' => '80', 'forward' => 'Route', 'weight' => '1', 'active' => '0', 'inactive' => '0', ), ), ), ), )Action: listGeneralName (Added in version 4.2.0-260)
Lists the "normal" name - ie "web server" instead of "httpd".
Example Output
Action: listPortNumbers (Added in version 4.2.0-260)
Lists a string of the port numbers that this service uses, comma-seperated.
Example Output
Action: listPortNumbersArray (Added in version 4.2.0-260)
Lists array of port numbers and ranges that this service uses.
Example Output
array ( 'status' => 0, 'payload' => array ( 0 => '##LG_NOT_APPLICABLE##', ), )Action: listRequiredPermissions (Added in version 4.2.0-260)
Lists an array of permissions required to control the service.
Example Output
array ( 'status' => 0, 'payload' => array ( 0 => 'CLUSTERING', ), )Action: listServiceInfo (Added in version 4.2.0-260)
Lists the service name, ports, page, and status.
Example Output
array ( 'status' => 0, 'payload' => array ( 'id' => 'ipvsadm', 'name' => '##LG_LOAD_BALANCER##', 'ports' => '##LG_NOT_APPLICABLE##', 'page' => '/nodeworx/cluster/lb', 'ctrl' => '/nodeworx/cluster/lb', 'is_running' => 1, ), )Action: listServiceName (Added in version 4.2.0-260)
Lists the service name - ie "httpd" instead of "web server".
Example Output
Action: listServicePage (Added in version 4.2.0-260)
Lists the page that controls the service.
Example Output
Action: restart (Added in version 4.2.0-260)
Restarts the service.
Action: restartOnNode (Added in version 4.3.0-290)
Restarts the service on a specific node (Clustering only).
Input Parameters
Action: settings (Added in version 4.2.0-260)
Modify ldirectord variables.
Input Parameters
E-mail address that will recieve status changes.
Which status changes should be sent out as alerts.
starting, running, stopping, reloading
Action: start (Added in version 4.2.0-260)
Starts the service.
Action: startOnBoot (Added in version 4.2.0-260)
Set the loadbalancer start on boot status.
Input Parameters
If set to 'Yes', the Load Balancer will be automatically started when the server starts up
1, 0
1
Action: startOnNode (Added in version 4.3.0-290)
Starts the service on a specific node (Clustering only).
Input Parameters
Action: stop (Added in version 4.2.0-260)
Stops the service.
Action: stopOnNode (Added in version 4.3.0-290)
Stops the service on a specific node (Clustering only).
Input Parameters