Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userdoc:tt_high_availability [2018/07/29 20:08] abelbeck [Example Basic Configuration] |
userdoc:tt_high_availability [2018/07/29 20:12] abelbeck [Example Basic Configuration] |
||
---|---|---|---|
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 37: | ||
The virtual IPv4 address '' | The virtual IPv4 address '' | ||
- | Master, | + | Master, |
+ | Configuration: | ||
! Configuration File for keepalived | ! Configuration File for keepalived | ||
Line 67: | Line 71: | ||
} | } | ||
- | Backup, | + | Backup, |
+ | Configuration: | ||
! Configuration File for keepalived | ! Configuration File for keepalived | ||
Line 106: | Line 111: | ||
!!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 117: | ||
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 123: | ||
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 | + | 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. |
\\ | \\ | ||
Line 128: | Line 133: | ||
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 ===== |