tibemsFactoryLoadBalanceMetric

Type

Purpose

Define enumerated load balancing constants.

Remarks

When a connection factory balances the client load among several servers, it uses this metric to determine the least loaded server, so the connection factory can create a connection to it.

Constant Description
TIBEMS_FACTORY_LOAD_BALANCE_METRIC_NONE Indicate absence of any load balancing metric.
TIBEMS_FACTORY_LOAD_BALANCE_METRIC_CONNECTIONS The connection factory balances the connection load among several servers by creating a connection to the server with the fewest number of connections.
TIBEMS_FACTORY_LOAD_BALANCE_METRIC_BYTE_RATE The connection factory balances the connection load among several servers by creating a connection to the server with the lowest total byte rate (input and output).

COBOL

* NOTE:  LBM is an acronym for LOAD-BALANCE-METRIC
   01  TIBEMS-FACTORY-LBM-TYPES.
      05  tibemsFactoryLoadBalanceMetric    PIC S9(8) BINARY.
          88  TIBEMS-FACTORY-LBM-NONE                 VALUE    0.
          88  TIBEMS-FACTORY-LBM-CONNECTIONS          VALUE    1.
          88  TIBEMS-FACTORY-LBM-BYTE-RATE            VALUE    2.