Losing parameters in Get and Post

"Paul Millard" <[email protected]> Thu, 20 Jan 2005 10:15:13 -0600
Newsgroups gmane.comp.apache.mod-backhand.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C4FF0B.389C3F4F
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

We recently moved to a load balanced environment for a large mod_perl,
mason based application using mod_backhand from a 1 server environment,
to a 3 server environment.

=20

We are using Apache 1.3.33, mod_backhand 1.2.2 and mod_perl 1.29 on Suse
Linux 9.1.  We have an unusual configuration in that we are running on
port 81.  We have a front-end apache that runs mod_ssl and mod_rewrite
and handles all the SSL so the back-end servers don't have the overhead
of dealing with ssl.  The front-end servers are utilizing mod_rewrite
with proxy to send request to the back-end server, that is running the
application. =20

=20

We have had quite a few problems since doing this that seem to be
directly related to mod_backhand.  It intermittently responds from Get
requests, by dropping the parameters and going to the default screen(s).
For instance, when listing a client screen that shows an alphabetical
list of all clients that begin with S, we have the parameters that look
like ?start=3Ds&all=3D1 after the URL to our mason component.  =
Occasionally,
the URL shows the parameter list correctly, but lists the A list, which
is the default if not start parameter is listed.  This is just one
example.  Out of the hundreds of screens in the app, many are losing
parameters, causing the user to have to reload to resolve the issue.

=20

Our initial configuration on all three boxes was exactly the same as
from the examples of the Configuration Help screen -
http://www.backhand.org/mod_backhand/configuring.shtml.

=20

<IfModule mod_backhand.c>
# This directorty must be readable and writable by euid of apache
(nobody)
#  The mod_backhand-Arriba and the AF_UNIX domain files are stored in
here.
    UnixSocketDir /var/backhand/backhand
#    This would be the way to do ethernet broadcast
#    MulticastStats 128.220.221.255:4445
#    but we choose to use the following IP multicast address with a TTL
of 1
    MulticastStats 239.255.221.20:4445,1
#    We want to accept resource information originating from any IP on
our
#     network.
    AcceptStats 128.220.221.0/24
</IfModule>

=20

<Directory "/var/backhand/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    Backhand byAge
    Backhand byRandom
    Backhand byLogWindow
    Backhand byLoad
</Directory>

=20

We have experimented with many options including having the primary
server remove itself from the cluster, and have the secondary servers
with no backhand directory options(all retain their IfModule sections):

=20

The primary server:

<Directory "/var/backhand/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all

    Backhand byAge

    Backhand removeSelf

    Backhand byRandom

    Backhand byLoad

</Directory>

=20

The secondary servers:

<Directory "/var/backhand/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

=20

Has anyone else found issues with parameters being lost?=20

=20

Also, the issue with incorrect memory being displayed as=20

=20

4294967295 MB

4294967295 MB

 For Total Mem and Available Mem.

=20

Paul Millard


This email and any files transmitted with it may contain legally =
privileged and/or confidential information intended solely for the use =
of the individual or entity to whom they are addressed. If you have =
received this email in error, please let us know by replying to the =
sender, and immediately delete this email from your system. Please note =
that in these circumstances, the use, disclosure, distribution or =
copying of this information is strictly prohibited. We apologize for any =
inconvenience that may have been caused to you.=20

Examinetics, Inc. does not accept any responsibility for the accuracy or =
completeness of this message as it has been transmitted over a public =
network.



------_=_NextPart_001_01C4FF0B.389C3F4F
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>We recently moved to a load balanced environment for =
a large
mod_perl, mason based application using mod_backhand from a 1 server
environment, to a 3 server environment.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>We are using Apache 1.3.33, mod_backhand 1.2.2 and =
mod_perl
1.29 on Suse Linux 9.1.&nbsp; We have an unusual configuration in that =
we are
running on port 81.&nbsp; We have a front-end apache that runs mod_ssl =
and mod_rewrite
and handles all the SSL so the back-end servers don&#8217;t have the =
overhead
of dealing with ssl.&nbsp; The front-end servers are utilizing =
mod_rewrite with
proxy to send request to the back-end server, that is running the
application.&nbsp; </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>We have had quite a few problems since doing this =
that seem
to be directly related to mod_backhand.&nbsp; It intermittently responds =
from
Get requests, by dropping the parameters and going to the default
screen(s).&nbsp; For instance, when listing a client screen that shows =
an
alphabetical list of all clients that begin with S, we have the =
parameters that
look like ?start=3Ds&amp;all=3D1 after the URL to our mason =
component.&nbsp; Occasionally,
the URL shows the parameter list correctly, but lists the A list, which =
is the
default if not start parameter is listed.&nbsp; This is just one =
example.&nbsp;
Out of the hundreds of screens in the app, many are losing parameters, =
causing
the user to have to reload to resolve the issue.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Our initial configuration on all three boxes was =
exactly the
same as from the examples of the Configuration Help screen - <a
href=3D"http://www.backhand.org/mod_backhand/configuring.shtml">http://ww=
w.backhand.org/mod_backhand/configuring.shtml</a>.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<pre><font size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&lt;IfModule =
mod_backhand.c&gt;</span></font></pre><pre><b><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-weight:
bold'># This directorty must be readable and writable by euid of apache =
(nobody)</span></font></b></pre><pre><b><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-weight:
bold'>#&nbsp; The mod_backhand-Arriba and the AF_UNIX domain files are =
stored in here.</span></font></b></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; UnixSocketDir =
/var/backhand/backhand</span></font></pre><pre><b><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-weight:
bold'>#&nbsp;&nbsp;&nbsp; This would be the way to do ethernet =
broadcast</span></font></b></pre><pre><b><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-weight:
bold'>#&nbsp;&nbsp;&nbsp; MulticastStats =
128.220.221.255:4445</span></font></b></pre><pre><b><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-weight:
bold'>#&nbsp;&nbsp;&nbsp; but we choose to use the following IP =
multicast address with a TTL of 1</span></font></b></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; MulticastStats =
239.255.221.20:4445,1</span></font></pre><pre><b><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-weight:
bold'>#&nbsp;&nbsp;&nbsp; We want to accept resource information =
originating from any IP on our</span></font></b></pre><pre><b><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-weight:
bold'>#&nbsp;&nbsp;&nbsp;&nbsp; =
network.</span></font></b></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; AcceptStats =
128.220.221.0/24</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&lt;/IfModule&gt;</span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<pre><font size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&lt;Directory =
&quot;/var/backhand/cgi-bin&quot;&gt;</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; AllowOverride =
None</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Options =
None</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Order =
allow,deny</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Allow from =
all</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Backhand =
byAge</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Backhand =
byRandom</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Backhand =
byLogWindow</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Backhand =
byLoad</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&lt;/Directory&gt;</span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>We have experimented with many options including =
having the
primary server remove itself from the cluster, and have the secondary =
servers
with no backhand directory options(all retain their IfModule =
sections):</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The primary server:</span></font></p>

<pre><font size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&lt;Directory =
&quot;/var/backhand/cgi-bin&quot;&gt;</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; AllowOverride =
None</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Options =
None</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Order =
allow,deny</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Allow from =
all</span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; Backhand byAge</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; Backhand =
removeSelf</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; Backhand =
byRandom</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp; Backhand byLoad</span></font></p>

<pre><font size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&lt;/Directory&gt;</span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>The secondary servers:</span></font></p>

<pre><font size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&lt;Directory =
&quot;/var/backhand/cgi-bin&quot;&gt;</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; AllowOverride =
None</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Options =
None</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Order =
allow,deny</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&nbsp;&nbsp;&nbsp; Allow from =
all</span></font></pre><pre><font
size=3D2 color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>&lt;/Directory&gt;</span></font></pre>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Has anyone else found issues with parameters being =
lost? </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Also, the issue with incorrect memory being displayed =
as </span></font></p>

<table class=3DMsoNormalTable border=3D0 cellspacing=3D0 cellpadding=3D0 =
bgcolor=3Dwhite
 style=3D'background:white'>
 <tr>
  <td bgcolor=3D"#CCCCCC" style=3D'background:#CCCCCC;padding:3.0pt =
3.0pt 3.0pt 3.0pt'>
  <p class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
  color=3Dblack face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;color:black'>&nbsp;</span></font></p>
  </td>
  <td bgcolor=3D"#CCCCCC" style=3D'background:#CCCCCC;padding:3.0pt =
3.0pt 3.0pt 3.0pt'>
  <p class=3DMsoNormal align=3Dright style=3D'text-align:right'><font =
size=3D3
  color=3Dblack face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;color:black'>4294967295&nbsp;MB</span></font></=
p>
  </td>
  <td bgcolor=3D"#CCCCCC" style=3D'background:#CCCCCC;padding:3.0pt =
3.0pt 3.0pt 3.0pt'>
  <p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New =
Roman"><span
  =
style=3D'font-size:12.0pt;color:black'>4294967295&nbsp;MB</span></font></=
p>
  </td>
 </tr>
</table>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;For Total Mem and Available =
Mem.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
 font-family:Arial'>Paul Millard</span></font></p>

</div>

</body>

<!--[object_id=3D#examinetics.com#]--><P align=3Dleft>
<P align=3Dleft><A href=3D"http://www.examinetics.com"></A></P><FONT =
color=3D#000000><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">This =
email and any files transmitted with it may contain legally privileged =
and/or confidential information intended solely for the use of the =
individual or entity to whom they are addressed. If you have received =
this email in error, please let us know by replying to the sender, and =
immediately delete this email from your system. Please note that in =
these circumstances, the use, disclosure, distribution or copying of =
this information is strictly prohibited. We apologize for any =
inconvenience that may have been caused to you. </SPAN></FONT>
<P></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
color=3D#000000><?xml:namespace prefix =3D st1 ns =3D =
"urn:schemas-microsoft-com:office:smarttags" /><st1:PersonName><SPAN =
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Examinetics, =
Inc.</SPAN></st1:PersonName><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">&nbsp;does not accept any responsibility for the accuracy or =
completeness of this message as it has been transmitted over a public =
network.</SPAN></FONT></P></html>

------_=_NextPart_001_01C4FF0B.389C3F4F--