Installation guide

Sms4Domino Help
- 98 -
Example
ExampleExample
Example
2
22
2
In this example we focus on load balancing. There are two instances, both located in Belgium.
The instances are part of a Domino cluster; replication is within seconds.
As both instances are located in Belgium they have the same operator cost for sending
messages.
We would like to try to balance the load over the two servers.
Instance INSTANCEA/Sms4Domino
This instance should send all SMS messages that are posted by the router in the local
configuration database. However, if the local queue contains more than 60 requests
than the remote queue the request should be handled by the other instance. (A queue of
60 requests results in a delay of about 10 minutes)
Instance INSTANCEB/Sms4Domino
Same behaviour as INSTANCEA
It requires two Instance Routing Rule document.
Document 1
Rule name: A
Sms received by: *
Number pattern: .* - phone number must match
When transmitted by
INSTANCEA/Sms4Domino
Fixed cost: 5 units
Replication cost: 60 units
Queuing cost: 1 unit/Sms
Document 2
Rule name: B
Sms received by: *
Number pattern: .* - phone number must match
When transmitted by
INSTANCEB/Sms4Domino
Fixed cost: 5 units
Replication cost: 60 units
Queuing cost: 1 unit/Sms
End users send mail to name@number@sms. We assume the Domino router deposits the mails
in the configuration database of InstanceA.
Suppose the first request for sending a SMS is received. InstanceA finds 2 rules that math the
number pattern. Rule A has a cost of 5 units. Rule B has a cost of 5 + 60 = 65 units. The Sms
will be transmitted by InstanceA.
Suppose that more requests arrive. At a certain moment the queue of InstanceA contains 40
requests. When a new request arrive rule A evaluates to a cost of 5 + 40*1 =45 units. Rule B
has a total cost of 65 units. So InstanceA will still be used.
When the queue length becomes higher than 60 the resulting cost of rule A becomes 5 + 61*1 =
66 units. Rule B has a cost of 65 units. This is lower. The request replicates to InstanceB.
Should the router deposit a request in the config database of InstanceB, it is InstanceB that
calculates the best route. Rule A has a cost of 5 + 60 + 61*1 = 126 units. Rule B has a cost of 5
units. Instance B will be used.