HA_FOC_ORDER configuration parameter
Use the HA_FOC_ORDER configuration parameter to define a single connection-management failover rule for a high-availability cluster of servers.
- onconfig.std value
- HA_FOC_ORDER SDS,HDR,RSS
- values
- A list of secondary server types, which are separated by commas
and listed in priority order. For example, the default value of
SDS,HDR,RSS
means that the primary server fails over to the SD secondary server, then the HDR secondary server, and then the RS secondary server.HDR
= High-availability data replication serverRSS
= Remote stand-alone secondary serverSDS
= Shared-disk secondary server
MANUAL
= Disable automated failover for all Connection Managers in the cluster. - separators
- Separate values with a comma.
- takes effect
- After you edit your onconfig file and restart the database server.
Usage
If the HA_FOC_ORDER configuration
parameter is set on the primary database server of a high-availability
cluster, every Connection Manager that connects to the primary server
adopts the setting. The value replaces the connection unit's ORDER=rule
failover-sequence
rule. Each database server in the high-availability cluster then adopts
the primary server's HA_FOC_ORDER configuration parameter value for
its own HA_FOC_ORDER configuration parameter.
If the HA_FOC_ORDER
configuration parameter on the primary server is set to MANUAL
,
automated failover is disabled on all Connection Managers that manager
the primary server's cluster.
If the FOC ORDER value for a connection
unit in a Connection Manager's configuration file is set to DISABLED
the
Connection Manager does not perform failover for that connection unit.
Example
In the following example, you have two Connection Managers that are configured to manage a cluster of three servers.
- server_1 (primary server)
- server_2 (SD secondary server)
- server_3 (HDR secondary server)
NAME connection_manger_1
CLUSTER cluster_1
{
INFORMIXSERVER servers_1
SLA sla_1 DBSERVERS=ANY
FOC ORDER=ENABLED \
PRIORITY=1
}
NAME connection_manger_2
CLUSTER cluster_1
{
INFORMIXSERVER servers_1
SLA sla_2 DBSERVERS=ANY
FOC ORDER=ENABLED \
PRIORITY=2
}
HA_FOC_ORDER SDS,HDR
NAME connection_manger_1
CLUSTER cluster_1
{
INFORMIXSERVER servers_1
SLA sla_1 DBSERVERS=ANY
FOC ORDER=SDS,HDR \
PRIORITY=1
}
NAME connection_manger_2
CLUSTER cluster_1
{
INFORMIXSERVER servers_1
SLA sla_2 DBSERVERS=ANY
FOC ORDER=SDS,HDR \
PRIORITY=2
}
The values of the HA_FOC_ORDER entries in the onconfig files
of server_2 and server_3 are updated to SDS,HDR
.