Configuring persistence for a group of vservers

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:

  • SourceIP
  • CookieInsert

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>

bind lb group Vserver-Group-1 Vserver-LB-1 -persistenceType CookieInsert

Virtual Server Persistency Group Parameters

Parameter Specifies
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
Persistence type for the group. Possible values:
Persistence Mask
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

  1. In the navigation pane, expand Load Balancing, and then click Persistency Groups.
  2. On the Persistency Groups page, click Add.
  3. In the Create Persistency Group dialog box, in the Group Name text box type the name (for example, Vserver-Group-1).
  4. In the Persistence list, select a persistence type (for example, SOURCEIP).
  5. In the Persistence Mask and Time-out text boxes, type the persistence mask and timeout values (for example, and 2).
  6. 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.
  7. Click Create and click Close. The virtual server group you created appears in the Persistence Groups page.

Download the Citrix Load Balancer here

The Citrix Community is powerful!