Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
systemes:web:keepalived [2016/01/29 16:31] pam [Configuration] |
systemes:web:keepalived [2019/02/06 14:03] (Version actuelle) |
||
---|---|---|---|
Ligne 15: | Ligne 15: | ||
</ | </ | ||
- | ==== Configuration ==== | + | ==== Configuration |
- | Dans le cas d' | + | Dans le cas d' |
* Serveur Proxy1 : | * Serveur Proxy1 : | ||
* <file bash / | * <file bash / | ||
+ | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
+ | # | ||
+ | # Configuration Keepalived: FailOver | ||
+ | # | ||
+ | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
+ | |||
global_defs { | global_defs { | ||
notification_email | notification_email | ||
Ligne 58: | Ligne 64: | ||
* Serveur Proxy2 : | * Serveur Proxy2 : | ||
* <file bash / | * <file bash / | ||
+ | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
+ | # | ||
+ | # Configuration Keepalived: FailOver | ||
+ | # | ||
+ | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
+ | |||
global_defs { | global_defs { | ||
notification_email | notification_email | ||
Ligne 94: | Ligne 106: | ||
+ | ==== Configuration Actif/Actif ==== | ||
+ | Dans le cas d'une infrastructure ldap avec deux proxys en amont, les deux étant actif dont ldap2 reçoit deux fois plus de requêtes que ldap1 | ||
+ | |||
+ | * Serveur LDAP1 : | ||
+ | * <file bash / | ||
+ | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
+ | # | ||
+ | # Configuration Keepalived: FailOver & Round Robin Pondéré | ||
+ | # | ||
+ | # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
+ | |||
+ | |||
+ | global_defs { | ||
+ | notification_email { | ||
+ | user@domaine.fr | ||
+ | } | ||
+ | notification_email_from ldaptest1@domaine.fr | ||
+ | smtp_server IP_SMTP | ||
+ | smtp_connect_timeout 30 | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | vrrp_instance VI-LDAP1 { | ||
+ | state MASTER | ||
+ | virtual_router_id 25 | ||
+ | priority 150 | ||
+ | interface eno16777984 | ||
+ | protocol TCP | ||
+ | |||
+ | virtual_ipaddress { | ||
+ | IP_VIP/24 brd 1.2.3.255 dev em1 | ||
+ | } | ||
+ | |||
+ | smtp_alert | ||
+ | advert_int 10 | ||
+ | |||
+ | |||
+ | notify_master "/ | ||
+ | notify_backup "/ | ||
+ | notify_fault "/ | ||
+ | |||
+ | authentication{ | ||
+ | auth_type AH | ||
+ | auth_pass password | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | |||
+ | virtual_server IP_VIP 389 { | ||
+ | delay_loop 10 | ||
+ | lb_algo rr | ||
+ | lb_kind DR | ||
+ | protocol TCP | ||
+ | |||
+ | real_server IP_LDAP1 389 { | ||
+ | weight 1 | ||
+ | TCP_CHECK { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | |||
+ | real_server IP_LDAP2 389 { | ||
+ | weight 2 | ||
+ | TCP_CHECK { | ||
+ | connect_port | ||
+ | connect_timeout 5 | ||
+ | } | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | virtual_server IP_VIP 636 { | ||
+ | delay_loop 10 | ||
+ | lb_algo rr | ||
+ | lb_kind DR | ||
+ | protocol TCP | ||
+ | |||
+ | real_server IP_LDAP1 636 { | ||
+ | weight 1 | ||
+ | MISC_CHECK { | ||
+ | misc_path "/ | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | real_server IP_LDAP2 636 { | ||
+ | weight 2 | ||
+ | MISC_CHECK { | ||
+ | misc_path "/ | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </ | ||
[[systemes: | [[systemes: |