From 44df82a82d84a6334c86686ee9fc4c321062ae62 Mon Sep 17 00:00:00 2001 From: yixingj Date: Tue, 23 Jan 2018 17:25:48 +0800 Subject: [PATCH] Update keepalived config file Update the keepalived config file --- .../keepalived_active_active.conf | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/make/ha/sample/active_active/keepalived_active_active.conf b/make/ha/sample/active_active/keepalived_active_active.conf index 877f23eb8..eb5b3026a 100644 --- a/make/ha/sample/active_active/keepalived_active_active.conf +++ b/make/ha/sample/active_active/keepalived_active_active.conf @@ -6,7 +6,8 @@ vrrp_sync_groups VG1 { VI_1 } } -#Please change to ens160 to the interface name on you loadbalancer hosts. +#Please change "ens160" to the interface name on you loadbalancer hosts. +#In some case it will be eth0, ens16xxx etc. vrrp_instance VI_1 { interface ens160 @@ -19,7 +20,7 @@ vrrp_instance VI_1 { priority 10 virtual_ipaddress { - VIP/32 + /32 } advert_int 1 authentication { @@ -29,9 +30,8 @@ vrrp_instance VI_1 { } ########## Section for Harbor use HTTP protocol ###################### -#Please change VIP, harbor_node1_ip, harbor_node2_ip to real ip address -#Please comment this secion out when use https -virtual_server VIP 80 { +#Please change , , to real ip address +virtual_server 80 { delay_loop 15 lb_algo rr lb_kind DR @@ -39,18 +39,18 @@ virtual_server VIP 80 { nat_mask 255.255.255.0 persistence_timeout 10 - real_server harbor_node1_ip 80 { + real_server 80 { weight 10 MISC_CHECK { - misc_path “/usr/local/bin/check.sh harbor_node1_ip” + misc_path "/usr/local/bin/check.sh " misc_timeout 5 } } - real_server harbor_node2_ip 80 { + real_server 80 { weight 10 MISC_CHECK { - misc_path “/usr/local/bin/check.sh harbor_node2_ip” + misc_path "/usr/local/bin/check.sh " misc_timeout 5 } } @@ -60,7 +60,7 @@ virtual_server VIP 80 { ##########################HTTPS################################# #Please uncomment the follow when harbor running under https -#virtual_server VIP 443 { +#virtual_server 443 { # delay_loop 15 # lb_algo rr # lb_kind DR @@ -68,10 +68,10 @@ virtual_server VIP 80 { # nat_mask 255.255.255.0 # persistence_timeout 10 # -# real_server harbor_node1_ip 443 { +# real_server 443 { # weight 10 # MISC_CHECK { -# misc_path “/usr/local/bin/check.sh harbor_node1_ip” +# misc_path "/usr/local/bin/check.sh " # misc_timeout 5 # } # } @@ -79,7 +79,7 @@ virtual_server VIP 80 { # real_server harbor_node2_ip 443 { # weight 10 # MISC_CHECK { -# misc_path “/usr/local/bin/check.sh harbor_node2_ip” +# misc_path "/usr/local/bin/check.sh " # misc_timeout 5 # } # }