/ Zope / Apsis / Pound Mailing List / Archive / 2009 / 2009-07 / pound not fully balanced

[ << ] [ >> ]

[ syslog / worker exited on signal 6 / "Uchida ... ] [ 503 errors occurred when the access concentrated ... ]

pound not fully balanced
Tim Dunphy <bluethundr(at)nylsd.com>
2009-07-18 13:45:11 [ FULL ]
guys,

 My pound config does not seem to be totally balancing my site.

 If I pop the nic on 192.168.1.5 the site stays up. If I pop the nic on
192.168.1.6 the site goes down.

 I believe this section of the config is the source of my error:

 ######################################################################
## listen, redirect and ... to:

## redirect all requests on port 80 ("ListenHTTP") to the virtual IP
address:
ListenHTTP
        Address 192.168.1.42
        Port    80

# This stuff vinko added
	RewriteDestination 1

	Service
		HeadRequire "Host:.*beta.beezag.com.*"
#		Url "*/index.*"
        	BackEnd
                	Address 192.168.1.5 
                	Address 192.168.1.6 
                	Port    80
        	End
		Session
			Type Basic
			TTL  300
		End
	End
End

Tim

Re: [Pound Mailing List] pound not fully balanced
Nathan Schmidt <nathan(at)pbwiki.com>
2009-07-18 21:51:34 [ FULL ]
ListenHTTP
 Address 192.168.1.42
 Port    80
End

Service
 RewriteDestination 1
 HeadRequire "Host:.*beta.beezag.com.*"
 BackEnd
  Address 192.168.1.5
  Port    80
 End
 BackEnd
  Address 192.168.1.6
  Port    80
 End
 Session
  Type Basic
  TTL  300
 End
End


On Sat, Jul 18, 2009 at 4:45 AM, Tim Dunphy <bluethundr(at)nylsd.com>
wrote:
[...]
Attachments:  
text.html text/html 2343 Bytes

Re: [Pound Mailing List] pound not fully balanced
Tim Dunphy <bluethundr(at)nylsd.com>
2009-07-19 20:05:27 [ FULL ]
Nathan,

 Thank you sir. That worked. However, I cannot get this url into my config:

 #               Url "*/index.*"

  this is the actual url:

 http://beta.beezag.com/index.jsf

 also I need to support these urls (from my tomcat server.xml config):

        <Alias>alpha.beezag.com</Alias>
        <Alias>www.alpha.beezag.com</Alias>
        <Alias>beta.beezag.com</Alias>
        <Alias>www.beta.beezag.com</Alias>

 If I add more than one HeadRequire the site goes down. If I add the Url
directive above the site goes down. Also having a slave appears to do me no
good. If I stop pound on the master the whole site goes down and the slave
does nada.

Any help would be appreciated.


Thanks
Tim



On Sat, 18 Jul 2009 12:51:34 -0700, Nathan Schmidt <nathan(at)pbwiki.com>
wrote:[...][...][...]
[...]

Re: [Pound Mailing List] pound not fully balanced
Nathan Schmidt <nathan(at)pbwiki.com>
2009-07-19 20:16:05 [ FULL ]
As I understand it, only the final HeadRequire and AddHeader directives are
used. This is somewhat inconvenient as you can't add multiple headers based
on the service routing determined by your configuration. We've ended up
patching Pound to add this type of functionality.
Your Url regex is malformed.

URL "^/index.*"

-n

On Sun, Jul 19, 2009 at 11:05 AM, Tim Dunphy <bluethundr(at)nylsd.com>
wrote:
[...]
Attachments:  
text.html text/html 5211 Bytes

Re: [Pound Mailing List] pound not fully balanced
Eirik Øverby <eirik.overby(at)modirum.com>
2009-07-19 20:23:26 [ FULL ]
Try ".*/index\..*"

/Eirik

On 19. juli 2009, at 20.05, Tim Dunphy wrote:
[...][...]
>>> guys,
>>>
>>> My pound config does not seem to be totally balancing my site.
>>>
>>> If I pop the nic on 192.168.1.5 the site stays up. If I pop the  
>>> nic on
>>> 192.168.1.6 the site goes down.
>>>
>>> I believe this section of the config is the source of my error:
>>>
>>>
######################################################################
>>> ## listen, redirect and ... to:
>>>
>>> ## redirect all requests on port 80 ("ListenHTTP") to the virtual
IP
>>> address:
>>> ListenHTTP
>>>       Address 192.168.1.42
>>>       Port    80
>>>
>>> # This stuff vinko added
>>>       RewriteDestination 1
>>>
>>>       Service
>>>               HeadRequire "Host:.*beta.beezag.com.*"
>>> #               Url "*/index.*"
>>>               BackEnd
>>>                       Address 192.168.1.5
>>>                       Address 192.168.1.6
>>>                       Port    80
>>>               End
>>>               Session
>>>                       Type Basic
>>>                       TTL  300
>>>               End
>>>       End
>>> End
>>>
>>> Tim
>>>
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch 
>>> .
>>> Please contact roseg(at)apsis.ch for questions.
>>>[...][...]

Re: [Pound Mailing List] pound not fully balanced
Tim Dunphy <bluethundr(at)nylsd.com>
2009-07-19 20:50:45 [ FULL ]
Thanks, I tried both regexes by copying/pasting that were suggested but the
site does not work that way. Below is the most recent attempt with a
screenshot of what happens to the site.

# This stuff vinko added
        RewriteDestination 1

        Service
                HeadRequire "Host:.*beta.beezag.com.*"
                URL "^/index.*"
                BackEnd
                Address 192.168.1.5
                Port    80
                End
                BackEnd
                Address 192.168.1.6
         Port    80
         End

                Session
                        Type Basic
                        TTL  300
                End
        End
End


On Sun, 19 Jul 2009 11:16:05 -0700, Nathan Schmidt <nathan(at)pbwiki.com>
wrote:[...]
are[...]
based[...]
wrote:[...][...]
######################################################################[...][...]
[...]
Attachments:  
Picture 1.png image/png 11896 Bytes

Re: [Pound Mailing List] pound not fully balanced
Tim Dunphy <bluethundr(at)nylsd.com>
2009-07-19 21:11:26 [ FULL ]
Ohhh.. AddHeader and multiple headers not supported by my current version
of pound?

On Sun, 19 Jul 2009 11:16:05 -0700, Nathan Schmidt <nathan(at)pbwiki.com>
wrote:[...]

, only the final HeadRequire and AddHeader directives are[...]
based[...]
wrote:[...][...]
######################################################################[...][...]
[...]

Re: [Pound Mailing List] pound not fully balanced
Tim Dunphy <bluethundr(at)nylsd.com>
2009-07-19 21:15:35 [ FULL ]
Also when we stress tested the site pound only supported 100 simultaneous
users, hitting each web server directly supported 400 users
simultaneously...



On Sun, 19 Jul 2009 20:23:26 +0200, Eirik Øverby
<eirik.overby(at)modirum.com>
wrote:[...][...]
>>> ListenHTTP
>>> Address 192.168.1.42
>>> Port    80
>>> End
>>>
>>> Service
>>> RewriteDestination 1
>>> HeadRequire "Host:.*beta.beezag.com.*"
>>> BackEnd
>>>  Address 192.168.1.5
>>>  Port    80
>>> End
>>> BackEnd
>>>  Address 192.168.1.6
>>>  Port    80
>>> End
>>> Session
>>>  Type Basic
>>>  TTL  300
>>> End
>>> End
>>>
>>>
>>> On Sat, Jul 18, 2009 at 4:45 AM, Tim Dunphy
<bluethundr(at)nylsd.com>  
>>> wrote:
>>>
>>>>
>>>> guys,
>>>>
>>>> My pound config does not seem to be totally balancing my site.
>>>>
>>>> If I pop the nic on 192.168.1.5 the site stays up. If I pop
the  
>>>> nic on
>>>> 192.168.1.6 the site goes down.
>>>>
>>>> I believe this section of the config is the source of my
error:
>>>>
>>>>
######################################################################
>>>> ## listen, redirect and ... to:
>>>>
>>>> ## redirect all requests on port 80 ("ListenHTTP") to the
virtual IP
>>>> address:
>>>> ListenHTTP
>>>>       Address 192.168.1.42
>>>>       Port    80
>>>>
>>>> # This stuff vinko added
>>>>       RewriteDestination 1
>>>>
>>>>       Service
>>>>               HeadRequire "Host:.*beta.beezag.com.*"
>>>> #               Url "*/index.*"
>>>>               BackEnd
>>>>                       Address 192.168.1.5
>>>>                       Address 192.168.1.6
>>>>                       Port    80
>>>>               End
>>>>               Session
>>>>                       Type Basic
>>>>                       TTL  300
>>>>               End
>>>>       End
>>>> End
>>>>
>>>> Tim
>>>>
>>>>
>>>> --
>>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch
>>>>
>>>> .
>>>> Please contact roseg(at)apsis.ch for questions.
>>>>
>>>
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch

>>> .
>>> Please contact roseg(at)apsis.ch for questions.[...][...]
[...]

Re: [Pound Mailing List] pound not fully balanced
Tim Dunphy <bluethundr(at)nylsd.com>
2009-07-20 03:02:58 [ FULL ]
how do I define an emergency backend? the man page says you can do this...I
do have error messages worked out by the way :)

On Sun, 19 Jul 2009 15:15:35 -0400, Tim Dunphy <bluethundr(at)nylsd.com>
wrote:[...][...]
>>>
>>> Nathan,
>>>
>>> Thank you sir. That worked. However, I cannot get this url into my
 
>>> config:
>>>
>>> #               Url "*/index.*"
>>>
>>>  this is the actual url:
>>>
>>> http://beta.beezag.com/index.jsf
>>>
>>> also I need to support these urls (from my tomcat server.xml
config):
>>>
>>>        <Alias>alpha.beezag.com</Alias>
>>>        <Alias>www.alpha.beezag.com</Alias>
>>>        <Alias>beta.beezag.com</Alias>
>>>        <Alias>www.beta.beezag.com</Alias>
>>>
>>> If I add more than one HeadRequire the site goes down. If I add
the  
>>> Url
>>> directive above the site goes down. Also having a slave appears to
 
>>> do me no
>>> good. If I stop pound on the master the whole site goes down and
the  
>>> slave
>>> does nada.
>>>
>>> Any help would be appreciated.
>>>
>>>
>>> Thanks
>>> Tim
>>>
>>>
>>>
>>> On Sat, 18 Jul 2009 12:51:34 -0700, Nathan Schmidt
<nathan(at)pbwiki.com>
>>> wrote:
>>>> ListenHTTP
>>>> Address 192.168.1.42
>>>> Port    80
>>>> End
>>>>
>>>> Service
>>>> RewriteDestination 1
>>>> HeadRequire "Host:.*beta.beezag.com.*"
>>>> BackEnd
>>>>  Address 192.168.1.5
>>>>  Port    80
>>>> End
>>>> BackEnd
>>>>  Address 192.168.1.6
>>>>  Port    80
>>>> End
>>>> Session
>>>>  Type Basic
>>>>  TTL  300
>>>> End
>>>> End
>>>>
>>>>
>>>> On Sat, Jul 18, 2009 at 4:45 AM, Tim Dunphy
<bluethundr(at)nylsd.com>  
>>>> wrote:
>>>>
>>>>>
>>>>> guys,
>>>>>
>>>>> My pound config does not seem to be totally balancing my
site.
>>>>>
>>>>> If I pop the nic on 192.168.1.5 the site stays up. If I
pop the  
>>>>> nic on
>>>>> 192.168.1.6 the site goes down.
>>>>>
>>>>> I believe this section of the config is the source of my
error:
>>>>>
>>>>>
######################################################################
>>>>> ## listen, redirect and ... to:
>>>>>
>>>>> ## redirect all requests on port 80 ("ListenHTTP") to the
virtual IP
>>>>> address:
>>>>> ListenHTTP
>>>>>       Address 192.168.1.42
>>>>>       Port    80
>>>>>
>>>>> # This stuff vinko added
>>>>>       RewriteDestination 1
>>>>>
>>>>>       Service
>>>>>               HeadRequire "Host:.*beta.beezag.com.*"
>>>>> #               Url "*/index.*"
>>>>>               BackEnd
>>>>>                       Address 192.168.1.5
>>>>>                       Address 192.168.1.6
>>>>>                       Port    80
>>>>>               End
>>>>>               Session
>>>>>                       Type Basic
>>>>>                       TTL  300
>>>>>               End
>>>>>       End
>>>>> End
>>>>>
>>>>> Tim
>>>>>
>>>>>
>>>>> --
>>>>> To unsubscribe send an email with subject unsubscribe
to[...]
>>>>>
>>>>> .
>>>>> Please contact roseg(at)apsis.ch for questions.
>>>>>
>>>>
>>>>
>>>> --
>>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch[...]
>>>> .
>>>> Please contact roseg(at)apsis.ch for questions.
>>>
>>> -- 
>>> "You were right about the stars. Each one is a setting sun." -
Wilco
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch

>>> .
>>> Please contact roseg(at)apsis.ch for questions.[...]
[...]

Re: [Pound Mailing List] pound not fully balanced
"Tony B" <ghostsniper007(at)hotmail.com>
2009-07-20 04:29:30 [ FULL ]
can you post the command and results of the stress tests ?



--------------------------------------------------
From: "Tim Dunphy" <bluethundr(at)nylsd.com>
Sent: Sunday, July 19, 2009 3:15 PM
To: <pound(at)apsis.ch>
Subject: Re: [Pound Mailing List] pound not fully balanced
[...][...]
>>> Nathan,
>>>
>>> Thank you sir. That worked. However, I cannot get this url into my
>>> config:
>>>
>>> #               Url "*/index.*"
>>>
>>>  this is the actual url:
>>>
>>> http://beta.beezag.com/index.jsf
>>>
>>> also I need to support these urls (from my tomcat server.xml
config):
>>>
>>>        <Alias>alpha.beezag.com</Alias>
>>>        <Alias>www.alpha.beezag.com</Alias>
>>>        <Alias>beta.beezag.com</Alias>
>>>        <Alias>www.beta.beezag.com</Alias>
>>>
>>> If I add more than one HeadRequire the site goes down. If I add
the
>>> Url
>>> directive above the site goes down. Also having a slave appears to
>>> do me no
>>> good. If I stop pound on the master the whole site goes down and
the
>>> slave
>>> does nada.
>>>
>>> Any help would be appreciated.
>>>
>>>
>>> Thanks
>>> Tim
>>>
>>>
>>>
>>> On Sat, 18 Jul 2009 12:51:34 -0700, Nathan Schmidt
<nathan(at)pbwiki.com>
>>> wrote:
>>>> ListenHTTP
>>>> Address 192.168.1.42
>>>> Port    80
>>>> End
>>>>
>>>> Service
>>>> RewriteDestination 1
>>>> HeadRequire "Host:.*beta.beezag.com.*"
>>>> BackEnd
>>>>  Address 192.168.1.5
>>>>  Port    80
>>>> End
>>>> BackEnd
>>>>  Address 192.168.1.6
>>>>  Port    80
>>>> End
>>>> Session
>>>>  Type Basic
>>>>  TTL  300
>>>> End
>>>> End
>>>>
>>>>
>>>> On Sat, Jul 18, 2009 at 4:45 AM, Tim Dunphy
<bluethundr(at)nylsd.com>
>>>> wrote:
>>>>
>>>>>
>>>>> guys,
>>>>>
>>>>> My pound config does not seem to be totally balancing my
site.
>>>>>
>>>>> If I pop the nic on 192.168.1.5 the site stays up. If I
pop the
>>>>> nic on
>>>>> 192.168.1.6 the site goes down.
>>>>>
>>>>> I believe this section of the config is the source of my
error:
>>>>>
>>>>>
######################################################################
>>>>> ## listen, redirect and ... to:
>>>>>
>>>>> ## redirect all requests on port 80 ("ListenHTTP") to the
virtual IP
>>>>> address:
>>>>> ListenHTTP
>>>>>       Address 192.168.1.42
>>>>>       Port    80
>>>>>
>>>>> # This stuff vinko added
>>>>>       RewriteDestination 1
>>>>>
>>>>>       Service
>>>>>               HeadRequire "Host:.*beta.beezag.com.*"
>>>>> #               Url "*/index.*"
>>>>>               BackEnd
>>>>>                       Address 192.168.1.5
>>>>>                       Address 192.168.1.6
>>>>>                       Port    80
>>>>>               End
>>>>>               Session
>>>>>                       Type Basic
>>>>>                       TTL  300
>>>>>               End
>>>>>       End
>>>>> End
>>>>>
>>>>> Tim
>>>>>
>>>>>
>>>>> --
>>>>> To unsubscribe send an email with subject unsubscribe
to[...]
>>>>>
>>>>> .
>>>>> Please contact roseg(at)apsis.ch for questions.
>>>>>
>>>>
>>>>
>>>> --
>>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch[...]
>>>> Please contact roseg(at)apsis.ch for questions.
>>>
>>> -- 
>>> "You were right about the stars. Each one is a setting sun." -
Wilco
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch
>>> .
>>> Please contact roseg(at)apsis.ch for questions.[...][...]

MailBoxer