nikoladsp

keepalived1

Apr 19th, 2019
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.95 KB | None | 0 0
  1. vrrp_instance VI_1 {
  2.     state MASTER
  3.     interface ens160
  4.     virtual_router_id 51
  5.     priority 200
  6.     advert_int 1
  7.     authentication {
  8.         auth_type PASS
  9.         auth_pass 1111
  10.     }
  11.     virtual_ipaddress {
  12.         10.240.4.220
  13.     }
  14. }
  15.  
  16. virtual_server 10.240.4.220 80 {
  17.     delay_loop 6
  18.     persistence_timeout 600
  19.     protocol TCP
  20.  
  21.     real_server 10.240.4.102 80 {
  22.         weight 100
  23.         TCP_CHECK {
  24.             connect_timeout 3
  25.         }
  26.     }
  27.     real_server 10.240.4.114 80 {
  28.         weight 100
  29.         TCP_CHECK {
  30.             connect_timeout 3
  31.         }
  32.     }
  33. }
  34.  
  35. virtual_server 10.240.4.220 389 {
  36.     delay_loop 6
  37.     persistence_timeout 600
  38.     protocol TCP
  39.  
  40.     real_server 10.240.4.102 389 {
  41.         weight 100
  42.         TCP_CHECK {
  43.             connect_timeout 3
  44.         }
  45.     }
  46.     real_server 10.240.4.114 389 {
  47.         weight 100
  48.         TCP_CHECK {
  49.             connect_timeout 3
  50.         }
  51.     }
  52. }
Add Comment
Please, Sign In to add comment