Connector groups

Sometimes a message can be routed to one of several connectors, either for load balancing or for failover. This typically leads to multiple routing rules with very similar appearance, such as:

smpp-in  operator1a,operator1b
smpp-in-ssl operator1a,operator1b

To avoid this type of repetition, EMG 7.2.0 introduced connector groups. They provide a few new features.

  1. Each group of connectors can now be referenced by name in the routing rules. This works for text based routing files and plugin based routing, but not yet when using the billing or mo_routing plugins.
  2. When defined for load balancing, each connector can have a weight. This can be used to route 2/3 of the traffic to one connector and 1/3 to another, or any other ratio that is needed.

A connector group is defined as below, added to the server.cfg file. For failover:

CONNECTORGROUP operator1 <
CONNECTOR=operator1a
CONNECTOR=operator1b
>

For load balancing, where 2/3 of the traffic is sent to connector operator1a, and 1/3 to the connector operator1b:

CONNECTORGROUP operator1 <
TYPE=LB
CONNECTOR=operator1a:2
CONNECTOR=operator1b:1
>