Home > Configuration > Basic > setservice_weight

setservice_weight

Use this method to set weight to assign to the monitor-service binding. When a monitor is UP, the weight assigned to its binding with the service determines how much the monitor contributes toward keeping the health of the service above the value configured for the Monitor Threshold parameter.

Syntax



Parameters

name

Name of the service for which to modify parameters.
This is mandatory parameter.

weight

Weight to assign to the monitor-service binding. When a monitor is UP, the weight assigned to its binding with the service determines how much the monitor contributes toward keeping the health of the service above the value configured for the Monitor Threshold parameter.
Minimum value = 1.
Maximum value = 100.

monitorname

Name of the monitor bound to the specified service.

Return Value

Returns simpleResult

See Also