Project

General

Profile

« Previous | Next » 

Revision 43b01df4

Added by Bill Marquette over 16 years ago

Comment code on why primary pools port is in use - the front end should
probably only show fallback pools with the same port, but that will be
difficult if not impossible to put in place until we have a better AJAX
framework in place.

View differences:

etc/inc/vslb.inc
231 231
          $conf .= "  listen on {$vs_a[$i]['ipaddr']} port {$vs_a[$i]['port']}\n";
232 232
          $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";
233 233

  
234
          # sitedown MUST use the same port as the primary pool - sucks, but it's a relayd thing
234 235
          if (isset($vs_a[$i]['sitedown']) &&  $vs_a[$i]['sitedown'] != "")
235
            $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";
236
            $conf .= "  forward to <{$vs_a[$i]['sitedown']}> port {$pools[$vs_a[$i]['port']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n";
236 237
          $conf .= "}\n";
237 238
          break;
238 239
        }

Also available in: Unified diff