[POOL]

Description

Complete this section once for each Adaptive Server pool you want defined within OpenSwitch. The section includes the pool name, any attributes of the pool, the set of servers contained within the pool, and the set of connections that the pool serves.

Format

[POOL=POOL_NAME[: OPTION=VALUE[, OPTION=VALUE ]]]
    [servers:]
        SERVER_NAME
        [SERVER_NAME ...]
    [connections:
        attribute: regex [, regex]
        [attribute: regex [, regex]   ...]]

Parameters

Examples

In this example, any client that logs in to OpenSwitch with the user name of “john” or the application name “isql” (depending on the USE_AND_TO_POOL_ATTRIB setting) is first channeled to the Adaptive Server ASESRV1, which has a status of UP in POOL1.

If the client fails to connect to ASESRV1, or it has been marked as DOWN explicitly by the coordination module or the administrator, the clients are channeled to ASESRV3 because ASESRV2 is marked as DOWN in POOL1.

When a client disconnects, its connection to the Adaptive Server is cached for as long as five minutes. If the same user with the same password reconnects within that period, he or she can reuse the cached connection, thereby saving the overhead of creating a new outgoing connection.

In this example, “john” is the regex value for the “username” attribute, and “isql” is the regex value for the “application” attribute:

[POOL=POOL1:MODE=CHAINED,CACHE=300]
    servers:
        ASESRV1=UP
        ASESRV2=DOWN
        ASESRV3=UP
    connections:
        username: john
        appname: isql