If you want to apply persistence across multiple vservers, you can add the vservers to a persistence group and then specify a persistence method. You bind virtual servers using different protocols in one group and configure persistence across the different protocols. When persistence is set on the group of virtual servers, client requests are directed to the same selected server, regardless of the virtual server in the group that receives the client request. When persistence is set on the group of virtual servers, it overrides the persistence set on individual virtual servers.
|When all virtual servers are removed from the group, the group is also removed.|
The persistence types allowed on the groups of virtual servers are:
If you set CookieInsert persistence, the domain attribute of the HTTP cookie should be configured. This setting causes the client software to add the HTTP cookie into client requests if different virtual servers have different public host names. After you set persistence for the entire group, you cannot change it for individual virtual servers in the group. If you set persistence on the group of virtual servers, and a new virtual server is added to the group, the persistence of the new virtual
server is changed to persistence of the group.
|If you set group persistence to NONE, the persistence on the individual virtual servers is applied.|
To create a virtual server persistency group by using the NetScaler command line At the NetScaler command prompt, type:
bind lb group <vServerGroupName> <vServerName> -persistenceType <PersistenceType>
Virtual Server Persistency Group Parameters
|Name of the persistence group. This alphanumeric string
is required and cannot be changed after the persistence
group is created. The name must not exceed 127
characters, and the leading character must be a number or
letter. The following characters are also allowed: @ _ – .
(period) : (colon) # and space ( ).
|Persistence type for the group. Possible values:
SOURCEIP, COOKIEINSERT, and NONE.
|Netmask specified when the persistency type is
|Time period for which the persistence is in effect for a
specific client. The value ranges from 2 through 1440
minutes. The default value is 2 minutes. The maximum
value is 1440 minutes (1 day).
To create a virtual server persistency group by using the GUI configuration utility
- In the navigation pane, expand Load Balancing, and then click Persistency Groups.
- On the Persistency Groups page, click Add.
- In the Create Persistency Group dialog box, in the Group Name text box type the name (for example, Vserver-Group-1).
- In the Persistence list, select a persistence type (for example, SOURCEIP).
- In the Persistence Mask and Time-out text boxes, type the persistence mask and timeout values (for example, 255.255.255.255 and 2).
- Under Virtual Server List, in the Available Virtual Server list box, select the virtual server that you want to bind to the group (for example, Vserver-LB-1), and then click Add.
- Click Create and click Close. The virtual server group you created appears in the Persistence Groups page.