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/30 00:45] – [Example Basic Configuration] abelbeck | userdoc:tt_high_availability [2018/08/02 15:51] (current) – 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 100: | Line 104: | ||
| } | } | ||
| - | After the ''/ | + | After the ''/ |
| service keepalived init | service keepalived init | ||
| - | !!Tip ->!! Watch the VRRP packets with '' | + | !!Tip ->!! Watch the VRRP packets with: '' |
| + | At this point on the master '' | ||
| + | inet 10.10.50.244/ | ||
| + | |||
| + | and the backup box should not display '' | ||
| + | |||
| + | Now test, disconnect the '' | ||
| + | |||
| + | More testing, edit the ''/ | ||
| + | |||
| + | service keepalived restart | ||
| + | |||
| + | 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 need to be addressed, research the topic and build upon this basic example. | ||
| + | |||
| + | \\ | ||
| ===== Keepalived Scripts ===== | ===== Keepalived Scripts ===== | ||
| Line 112: | 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 ===== | ||