Configure a desired set of service group members for a service group in one NITRO API call
-
Provide a list of service group members in a single PUT request on “servicegroup_servicegroupmemberlist_binding” resource.
-
Provide their weight and state (optional) in that PUT request.
-
Effectively synchronize the appliance configuration with deployment changes around application servers.
-
This feature is supported only for service groups of type
API. -
You can only bind IP address based services using Desired State API, domain name based services are not allowed.
-
Previously, only one service group member can be bound in a NITRO call.
Use case: Synchronize deployment changes to NetScaler appliance in large scale deployments, such as Kubernetes
kube-api server sends the effective set of endpoints through ‘Endpoints event’ to the controller. The controller uses the Read-Delta-Modify approach where it performs the following:
-
Fetches the currently configured endpoint set (service group member set of a service group) for the service from ADC appliance.
-
Compares the configured endpoint set with the set in the received event.
-
Binds the new endpoints (service group members) or unbinds the deleted endpoints.
Create a service group of type API by using the CLI
add serviceGroup <serviceGroupName>@ <serviceType> [-autoScale™ <autoScale>]
add serviceGroup svg1 HTTP -autoScale API
autoDisablegraceful and autoDisabledelay and autoScale parameters by using add serviceGroup or set serviceGroup command.
add serviceGroup <serviceGroupName>@ <serviceType> [-autoScale <autoScale>] [-autoDisablegraceful ( YES | NO)] [-autoDisabledelay <secs>]
add serviceGroup <serviceGroupName>@ <serviceType> [-autoScale (API |CLOUD | DISABLED| DNS |POLICY)]
set serviceGroup <serviceGroupName [-autoDisablegraceful ( YES | NO)] [-autoDisabledelay <secs>]
set serviceGroup <serviceGroupName [-autoScale (API |CLOUD | DISABLED| DNS |POLICY)]
add serviceGroup svg1 HTTP autoDisablegraceful YES -autoDisabledelay 100
add serviceGroup svg1 HTTP -autoScale API
set serviceGroup svg1 -autoDisablegraceful YES -autoDisabledelay 100
set serviceGroup svg1 -autoScale API
Arguments
autoDisablegraceful
autoDisabledelay
Autoscale API
{ "errorcode": 304, "message": "Address already in use", "severity": "ERROR", "servicegroup_servicegroupmemberlist_binding": { "servicegroupname": "sg1", "failedmembers": [ { "ip": "2.2.2.8", "port": 80 }, { "ip": "2.2.2.9", "port": 80 } ] } }
set serviceGroup Autoscale command might fail if the existing member bindings meet any of these conditions:
-
If the server bound to the service group is either a name server or a domain-based server.
-
If the loopback server name is anything other than 127.0.0.1 or 0000:0000:0000:0000:0000:0000:0000:0001.
-
If you choose different types of Autoscale (Cloud, API, DNS, and Policy) in a set serviceGroup command and add serviceGroup command.
-
The autoDisablegraceful and autoDisabledelay parameters are applicable only for the service groups of Autoscale type “API” and “CLOUD.”
-
If the autoDisablegraceful or the autoDisabledelay parameters are not configured, then service members are deleted immediately.
Unbind a service group member gracefully
autoDisablegraceful or autoDisabledelay parameter configuration.
-
If one of these parameters is set, then the service group member is unbound gracefully.
-
If none of these parameters are set, then the service group member is unbound immediately.
-
Service group members identified for graceful unbind are displayed only when the show service group command is run.
-
You cannot perform any operation (such as set, unset) on the service group member identified for graceful unbind.
Create a service group of type API by using the GUI
-
Navigate to Traffic Management > Load Balancing > Service Groups, and click Add.
-
In AutoScale Mode, select API.
Configure graceful shutdown or a time delay for an API type service group by using the GUI
-
Navigate to Traffic Management > Load Balancing > Service Groups.
-
In AutoScale Mode, select API.
-
In Auto Disable Graceful, select YES.
-
In Auto Disable Delay, enter the wait time for a graceful shutdown.