Revision 9b0ddd8c
Added by Ermal LUÇI over 14 years ago
etc/inc/vslb.inc | ||
---|---|---|
241 | 241 |
$conf .= " listen on {$vs_a[$i]['ipaddr']} port {$vs_a[$i]['port']}\n"; |
242 | 242 |
$conf .= " forward to <{$vs_a[$i]['pool']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n"; |
243 | 243 |
|
244 |
if (isset($conf['system']['lb_use_sticky'])) |
|
245 |
$conf .= " sticky-address\n"; |
|
246 |
|
|
244 | 247 |
# sitedown MUST use the same port as the primary pool - sucks, but it's a relayd thing |
245 | 248 |
if (isset($vs_a[$i]['sitedown']) && strlen($vs_a[$i]['sitedown']) > 0) |
246 | 249 |
$conf .= " forward to <{$vs_a[$i]['sitedown']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n"; |
... | ... | |
354 | 357 |
return $relay_hosts; |
355 | 358 |
} |
356 | 359 |
|
357 |
?> |
|
360 |
?> |
Also available in: Unified diff
Resolves #1486. When sticky option is selected under advanced->misc honor it even in the relayd.conf setting.