0% found this document useful (0 votes)
8 views

vms_keepalived_check_list

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

vms_keepalived_check_list

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 5

!

Configuration File for keepalived

global_defs {
keepalived.conf
enable_script_security
script_user unified
}

vrrp_script chk_ssh {
script "</dev/tcp/10.244.240.116/22"
interval 2 # check every second
weight 4 # add 4 points of prio if OK

vrrp_script chk_opensips {
script "/usr/bin/pgrep opensips"
interval 2
weight 10
}

vrrp_instance VI_1 {
state MASTER
interface ens256
virtual_router_id 55
priority 103
advert_int 1
authentication {
auth_type PASS
auth_pass password
}
virtual_ipaddress {
10.244.240.119
}
track_script {
chk_ssh
chk_opensips
}
}
Pre-condition

keepalived started and Interface ens256 is up in all MS.


3

Keepalived started and opensips started in all MS


7

8
keepalived monitor in port 22 on ens256 and opensips:

expected VIP Sta


Test Senario kpgccsms01 kpgccsms02

a)opensips is stop at all MS


b) Simulate if all opensips are down active backup

a)opensips is started in MS03 only


b) Simulate if opensips down in MS01 and MS02 backup backup

a)opensips is started in MS02 and MS03


b) Simulate if opensips is down in MS01. backup active

a)opensips is started in all MS


b)Simulate if opensips started in all MS active backup

a)opensips is stop in MS02 or MS03 .


b)Simulate if opensips still started in MS01, VIP will remain unchange. active backup

a) disable Interface ens256 in MS01


b) simulate interface down in MS01
backup active

a) disable Interface ens256 in MS01 and MS02


b) simulate interface down in MS01 and MS02
backup backup

a) disable Interface ens256 in MS02


b) enable Interface ens256 in MS01 while MS03 hold VIP
c) simulate interface ens256 resume in MS01
active backup
expected VIP Status
kpgccsms03 mhsccsms01 mhsccsms02 mhsccsms03 Test result(Success/Fail)

backup active backup backup

active backup backup active

backup backup active backup

backup active backup backup

backup active backup backup

backup backup active backup

active backup backup active

backup active backup backup


Remark

MS01 hold VIP

MS03 hold VIP

MS02 hold VIP

MS01 hold VIP

MS01 hold VIP

MS02 hold VIP

MS03 hold VIP

MS01 hold VIP

You might also like