The redirect.partitions file defines the primary node to which users in a particular partition will be redirected and a series of fallback nodes if desired. Each non-empty, non-commented line in the file defines the node list for a partition. Each node in the list must correspond to a node defined as a value for the iim_server.redirect.to parameter in iim.conf. If there are more partitions defined than there are lines in the redirect.partitions file, the unspecified partitions are handled by round-robin.
By default, the redirect.partitions file is stored in the following location:
im-cfg-base/redirect.partitions |
This redirect.partitions file example assumes the following:
The redirect server has been configured for db and roundrobin lookups.
Three nodes have been identified as destinations for redirected clients:
imserverA
imserverB
imserverC
These three nodes correspond to the following hosts:
iimA.siroe.com
iimB.siroe.com
iimC.siroe.com.
This is expressed in iim.conf as follows:
iim_server.redirect.provider=db,roundrobin iim_server.redirect.to=imserverA,imserverB, imserverC iim_server.redirect.to.imserverA.host=iimA.siroe.com iim_server.redirect.to.imserverB.host=iimB.siroe.com iim_server.redirect.to.imserverC.host=iimC.siroe.com |
There are at least two user partitions.
In this scenario, redirect.partitions might look as follows:
imserverA, imserverB, imserverC imserverB, imserverC |
That there are two non-empty, non-commented lines indicates that there are at least two user partitions. The first line defines the redirect behavior for partition 1. The redirect server will redirect partition 1 users first to imserverA. If that fails, the redirect server tries imserverB then imserverC. If no nodes are operational, the redirect server returns an error to the client.