This article explains how to setup two (or more) devices to use single shared database instead of their local databases.
In this configuration all devices are using common/shared database, which results in higher sending throughput.
By default every device works independently - has own sending queue, own database, own webUI etc.
But we can change that behaviour - then all devices in pool can use same database (located at one of devices, called master device), and because of that can load balance sending/receiving queue between themselves.
Our example uses two SMSEagle NXS-9700 3G (single modem) devices - one which will act as a Master (hosts database) and second which would be a slave (will use Master's database).
1. On Master device you've to edit file:
/var/www/application/config/smseagle_settings.php
change line:
$config['modem_num'] = '1';
to
$config['modem_num'] = '2';
On this device you also need to run attached script - it will update database to support multiple modems.
2. On Slave device you need to edit files:
/etc/gammu-smsdrc1
change line:
host = 127.0.0.1
to
host = Master IP address
and line:
phoneid = smseagle1
to
phoneid = smseagle2
Then edit file:
/var/www/application/config/smseagle_settings.php
and change line:
$config['modem_num'] = '1';
to
$config['modem_num'] = '2';
file /var/www/application/config/database.php
change line:
$db['default']['hostname'] = "127.0.0.1";
to
$db['default']['hostname'] = "Master IP address";
Save changes in all files, reboot. After that all devices will operate within single database.
Configuring two NXS-9750 3G (or even more devices in pool) will result in configuring a little more configuration files (for second modem on each device) and increasing number in phoneid and modem_num fields. Please contact our support for further help in that case.