Difference between revisions of "4 server redundant solution"
From Kolmisoft Wiki
Jump to navigationJump to search
Line 5: | Line 5: | ||
* Both of them have two network interfaces - one for [http://en.wikipedia.org/wiki/Virtual_IP_address Virtual IP] which is visible from outside, and one for local IP for interconnection [[Linux Heartbeat | heartbeat monitoring]] | * Both of them have two network interfaces - one for [http://en.wikipedia.org/wiki/Virtual_IP_address Virtual IP] which is visible from outside, and one for local IP for interconnection [[Linux Heartbeat | heartbeat monitoring]] | ||
* LinuxHA heartbeat monitors servers, e.g. | * LinuxHA heartbeat monitors servers, e.g. | ||
** When S1 fails - S2 sees that and after 10s (default) will take | ** When S1 fails - S2 sees that and after 10s (default) will take Virtual IP, e.g. will start to serve calls, it is done automatically | ||
** When S1 is back up - S2 returns | ** When S1 is back up - S2 returns Virtual IP to S1 and system starts to function in normal work flow (done automatically). | ||
* Servers 3 and 4 (S3 and S4) are identical. They | * Servers 3 and 4 (S3 and S4) are identical. They serve as MySQL DB. | ||
* Both of them have two network interfaces - one for | * Both of them have two network interfaces - one for Virtual DB IP which is visible for Asterisk servers S1 and S2, and one for local IP for interconnection [[Linux Heartbeat | heartbeat monitoring]] | ||
* LinuxHA heartbeat monitors servers, e.g. | * LinuxHA heartbeat monitors servers, e.g. | ||
** When S3 fails - S4 sees that and after 10s (default) will take main IP, it is done automatically | ** When S3 fails - S4 sees that and after 10s (default) will take main IP, it is done automatically | ||
** When S3 is back up - S4 returns | ** When S3 is back up - S4 returns Virtual IP to S3 and system starts to function in normal work flow (done automatically). | ||
** S1 connects to S3 over | ** S1 connects to S3 over Virtual DB IP | ||
** S2 always interacts with S4 to take away load from main DB server (S3) | ** S2 always interacts with S4 to take away load from main DB server (S3) | ||
* DBs on S3 and S4 are synchronized over MySQL Replication | * DBs on S3 and S4 are synchronized over MySQL Replication |
Revision as of 07:32, 25 October 2010
- Servers 1 and 2 (S1 and S2) are identical. They server as gateways with Asterisk + MOR installed.
- Both of them have two network interfaces - one for Virtual IP which is visible from outside, and one for local IP for interconnection heartbeat monitoring
- LinuxHA heartbeat monitors servers, e.g.
- When S1 fails - S2 sees that and after 10s (default) will take Virtual IP, e.g. will start to serve calls, it is done automatically
- When S1 is back up - S2 returns Virtual IP to S1 and system starts to function in normal work flow (done automatically).
- Servers 3 and 4 (S3 and S4) are identical. They serve as MySQL DB.
- Both of them have two network interfaces - one for Virtual DB IP which is visible for Asterisk servers S1 and S2, and one for local IP for interconnection heartbeat monitoring
- LinuxHA heartbeat monitors servers, e.g.
- When S3 fails - S4 sees that and after 10s (default) will take main IP, it is done automatically
- When S3 is back up - S4 returns Virtual IP to S3 and system starts to function in normal work flow (done automatically).
- S1 connects to S3 over Virtual DB IP
- S2 always interacts with S4 to take away load from main DB server (S3)
- DBs on S3 and S4 are synchronized over MySQL Replication
More info: