Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userdoc:tt_high_availability [2018/07/29 20:06] abelbeck [Example Basic Configuration] |
userdoc:tt_high_availability [2018/08/02 10:51] abelbeck |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== High Availability (keepalived) ====== | + | ====== |
AstLinux now supports the [[http:// | AstLinux now supports the [[http:// | ||
Line 21: | Line 21: | ||
service keepalived init | service keepalived init | ||
+ | \\ | ||
===== Example Basic Configuration ===== | ===== Example Basic Configuration ===== | ||
- | As a very basic example, we are creating a hot standby (backup) to a master AstLinux box. | + | As a very basic example, we are creating a hot standby (backup) to a master AstLinux box. |
+ | |||
+ | !!Note ->!! For a production solution it is assumed that all the important file storage bits of the master are kept in sync with the backup AstLinux box. Ignored for this example. | ||
Both boxes share the same '' | Both boxes share the same '' | ||
Line 34: | Line 36: | ||
The virtual IPv4 address '' | The virtual IPv4 address '' | ||
- | Master, | + | Master, |
+ | Configuration: | ||
! Configuration File for keepalived | ! Configuration File for keepalived | ||
Line 67: | Line 70: | ||
} | } | ||
- | Backup, | + | Backup, |
+ | Configuration: | ||
! Configuration File for keepalived | ! Configuration File for keepalived | ||
Line 106: | Line 110: | ||
!!Tip ->!! Watch the VRRP packets with: '' | !!Tip ->!! Watch the VRRP packets with: '' | ||
- | At this point on the master '' | + | At this point on the master '' |
inet 10.10.50.244/ | inet 10.10.50.244/ | ||
Line 112: | Line 116: | ||
and the backup box should not display '' | and the backup box should not display '' | ||
- | Now test, disconnect the '' | + | Now test, disconnect the '' |
More testing, edit the ''/ | More testing, edit the ''/ | ||
Line 118: | Line 122: | ||
service keepalived restart | service keepalived restart | ||
- | now the backup box should be the master since it has a higher priority. | + | now the backup box should be the master since it has a higher priority. |
- | + | ||
- | Now you get the idea, to make this a production solution a few more details will probably need to be addressed, research the topic and build upon this basic example. | + | |
+ | Now you get the idea, to make this a production solution a few more details will need to be addressed, research the topic and build upon this basic example. | ||
+ | \\ | ||
===== Keepalived Scripts ===== | ===== Keepalived Scripts ===== | ||
Line 128: | Line 132: | ||
If your scripts need a runtime, non-persistent state file, the ''/ | If your scripts need a runtime, non-persistent state file, the ''/ | ||
+ | |||
+ | \\ | ||
===== Firewall Configuration ===== | ===== Firewall Configuration ===== |