Typos from me removing the real IP addresses, they were not in there when I
ran the actual test.

-James

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
David Hill
Sent: Tuesday, August 16, 2011 12:18 PM
To: [email protected]
Subject: Re: relayd problems

What are the spaces in the IP addresses?

On Tue, Aug 16, 2011 at 11:46:26AM -0500, James Flom wrote:
:Hi all,
:
:Using a snapshot from Aug 1st I can't get more than one of these relays to
run :at the same time with the <fallback> forward to in there, but up to 3 at
once :with that line removed from each relay, with 4 relays though it always
fails.
:Any idea if this is a bug or configuration issue?
:
:Thanks,
:-James
:
:Relayd.conf
:# Macros
:http_port="80"
:https_port="443"
:
:# Define server/service macros
:include "/etc/relays/hosts.conf"
:
:# Global Configuration
:interval 20
:timeout 200
:prefork 10
:log updates
:
:# failover table
:table <fallback> disable { 10.1.0.20 retry 2 }
:
:include "/etc/relays/relays.conf"
:# END
:--------
:
:hosts.conf (/etc/relays/hosts.conf)
:# www_a
:www_a_ext="10. 0.0.193"
:www_a_01_int="172.20.30.137"
:table <www_a> { $www_a_01_int }
:
:# www_b
:www_b_ext="10.0.0.194"
:www_b_01_int="172.20.30.133"
:table <www_b> { $www_b_01_int }
:
:# www_c
:www_c_ext="10. 0.0.200"
:www_c_01_int="172.20.30.140"
:table <www_c> { $www_c_01_int }
:
:# www_d
:www_d_ext="10. 0.0.195"
:www_d_01_int="172.20.30.142"
:table <www_d> { $www_d_01_int }
:# END
:--------
:
:relays.conf (/etc/relays/relays.conf)
:# www_a
:relay "www_a_com" {
:        listen on $www_a_ext port 80
:        forward to <www_a> port 80 check http "/" code 200
:        forward to <fallback> port 80 timeout 300 check tcp
:}
:
:# www_b
:relay "www_b_com" {
:        listen on $www_b_ext port 80
:        forward to <www_b> port 80 check http "/" code 200
:        forward to <fallback> port 80 timeout 300 check tcp
:}
:
:# www_c
:relay "www_c_com" {
:        listen on $www_c_ext port 80
:        forward to <www_c> port 80 check http "/" code 200
:        forward to <fallback> port 80 timeout 300 check tcp
:}
:
:# www_d
:relay "www_d_com" {
:        listen on $www_d_ext port 80
:        forward to <www_d> port 80 check http "/" code 200
:        forward to <fallback> port 80 timeout 300 check tcp
:}
:# END
:
:--------
:
:# relayd -vvd
:startup
:socket_rlimit: max open files 1024
:socket_rlimit: max open files 1024
:socket_rlimit: max open files 1024
:warning: macro 'http_port' not used
:socket_rlimit: max open files 1024
:warning: macro 'https_port' not used
:socket_rlimit: max open files 1024
:socket_rlimit: max open files 1024
:relay_privinit: adding relay www_a_com
:protocol -1: name default
:        flags: used, relay flags:
:        type: tcp
:relay_privinit: adding relay www_b_com
:protocol -1: name default
:        flags: used, relay flags:
:        type: tcp
:relay_privinit: adding relay www_c_com
:protocol -1: name default
:        flags: used, relay flags:
:        type: tcp
:relay_privinit: adding relay www_d_com
:protocol -1: name default
:        flags: used, relay flags:
:        type: tcp
:adding 1 hosts from table www_a:80
:relay_launch: running relay www_a_com
:adding 1 hosts from table www_b:80
:relay_launch: running relay www_b_com
:adding 1 hosts from table www_c:80
:adding 1 hosts from table www_a:80
:relay_launch: running relay www_c_com
:adding 1 hosts from table www_d:80
:relay_launch: running relay www_d_com
:relay_launch: running relay www_a_com
:adding 1 hosts from table www_b:80
:relay_launch: running relay www_b_com
:adding 1 hosts from table www_c:80
:relay_launch: running relay www_c_com
:adding 1 hosts from table www_d:80
:relay_launch: running relay www_d_com
:adding 1 hosts from table www_a:80
:relay_launch: running relay www_a_com
:adding 1 hosts from table www_b:80
:adding 1 hosts from table www_a:80
:relay_launch: running relay www_b_com
:relay_launch: running relay www_a_com
:adding 1 hosts from table www_b:80
:adding 1 hosts from table www_c:80
:relay_launch: running relay www_c_com
:relay_launch: running relay www_b_com
:adding 1 hosts from table www_d:80
:adding 1 hosts from table www_c:80
:relay_launch: running relay www_d_com
:relay_launch: running relay www_c_com
:adding 1 hosts from table www_d:80
:relay_launch: running relay www_d_com
:adding 1 hosts from table www_a:80
:relay_launch: running relay www_a_com
:adding 1 hosts from table www_b:80
:relay_launch: running relay www_b_com
:adding 1 hosts from table www_c:80
:relay_launch: running relay www_c_com
:adding 1 hosts from table www_d:80
:relay_launch: running relay www_d_com
:hce_notify_done: 172.20.30.133 (http code ok) :host 172.20.30.133, check http
code (2ms), state unknown -> up, availability :100.00%
:hce_notify_done: 172.20.30.137 (http code ok) :host 172.20.30.137, check http
code (2ms), state unknown -> up, availability :100.00%
:hce_notify_done: 172.20.30.142 (http code ok) :host 172.20.30.142, check http
code (2ms), state unknown -> up, availability :100.00%
:fatal: pfe_dispatch_imsg: invalid host id :hce exiting, pid 28386 :lost
child: hce exited okay :lost child: pfe exited abnormally :relay exiting, pid
672 :relay exiting, pid 13247 :relay exiting, pid 30099 :relay exiting, pid
11566 :relay exiting, pid 16851 :parent terminating, pid 28820
:

--
Everyone is a genius.  It's just that some people are too stupid to realize
it.

Reply via email to