Documentation
Information difficile à trouver… Voici ce que dit le man :
polling_interval interval between two path checks in seconds; default is 5
Une autre version
polling_interval interval between two path checks in seconds For properly functioning paths, the interval between checks will gradually increase to (4 * polling_interval); default is 5
Observation
$ cat /etc/multipath.conf defaults { polling_interval 10 ...
$ echo "show paths" | sudo multipathd -k multipathd> hcil dev dev_t pri dm_st chk_st next_check 2:0:0:0 sda 8:0 1 [active][ready] XXXXXX.... 26/40 2:0:0:45 sdb 8:16 1 [active][ready] XXXXXX.... 26/40
J’ai donc configuré 10 et j’obtiens 40…
Explication
Multipath intègre en dur dans le code un mécanisme d’incrémentation du polling_interval dont le fonctionnement est le suivant :
check 0 => OK => 0 sec
check 1 => OK =>polling_interval sec
check 2 => OK =>polling_interval * 2 sec
check 3 => OK =>polling_interval * 4 sec
check 4 => OK =>polling_interval *4 sec
…
check n => KO => polling_interval sec
check n+1 => KO => polling_interval sec
check n+2 => OK => polling_interval * 2 sec
check n+3 => OK => polling_interval * 4 sec
Ce qui donne dans mon cas :
(init) 10 -> 20 -> 40 -> (failure) 10 -> 10 -> 10 -> (résolution) 20 -> 40 -> 40 …
Source :
Christophe Varoqui (www.opensvc.com)
Leave a Reply