keepalived.confの話

ちょっとメモ。思うところがあればまた更新。

◆コメント扱いする文字

debianのmanだけど、rockyやrhelも同じだった。
ググってると ! がまず出てくるけど、普通に # もいける。
keepalived.conf(5) ??? keepalived ??? Debian unstable ??? Debian Manpages
keepalived.conf is the configuration file which describes all the Keepalived keywords. Keywords are placed in hierarchies of blocks and subblocks, each layer being delimited by '{' and '}' pairs.

Comments start with '#' or '!' to the end of the line and can start anywhere in a line.

◆インタフェース監視(NIC監視)

意外と使うインタフェース監視。
特定のインタフェース或いは複数インタフェースのうち、いずれかがダウンした場合に系切替が必要な場合とかに使う。
keepalived.conf(5) ??? keepalived ??? Debian unstable ??? Debian Manpages
    track_interface {
eth0
eth1
eth2 weight <-253..253> [reverse]
...
}