Home > Configuration > Basic > setservicegroup_server

setservicegroup_server

Use this method to set name of the server to which to bind the service group.

Syntax



Parameters

servicegroupname

Name of the service group.
This is mandatory parameter.

servername

Name of the server to which to bind the service group.

port

Server port number.
Range 1 - 65535.

weight

Weight to assign to the servers in the service group. Specifies the capacity of the servers relative to the other servers in the load balancing configuration. The higher the weight, the higher the percentage of requests sent to the service.
Minimum value = 1.
Maximum value = 100.

customserverid

The identifier for this IP:Port pair. Used when the persistency type is set to Custom Server ID.
Default value = "None".

serverid

The identifier for the service. This is used when the persistency type is set to Custom Server ID.
NOTE: This attribute is deprecated.
Instead of integer now serverId will be a string and you can use -customserverid instead of -serverID.

hashid

The hash identifier for the service. This must be unique for each service. This parameter is used by hash based load balancing methods.
Minimum value = 1.

nameserver

Specify the nameserver to which the query for bound domain needs to be sent. If not specified, use the global nameserver

dbsttl

Specify the TTL for DNS record for domain based service.The default value of ttl is 0 which indicates to use the TTL received in DNS response for monitors
Default value = 0.

order

Order number to be assigned to the servicegroup member
Minimum value = 1.
Maximum value = 8192.

Return Value

Returns simpleResult

See Also