There was no apache involved.
This was caused by a custom perl script which queried gmetad's interactive
port for various metrics (nagios check script, to be percise).
Anyway, on single-CPU machine it worked OK because in that single jiffie
gmetad was able to form a response and send it back. However on second
machine (8core server) the two processes can be scheduled on a CPU
simultaneously and this caused the error as script started reading
(imporperly, mind you!) from socket right after it has sent a request.
The only issue (as I can see it) is cryptic gmetad log message (there were
no other log entries). It should report something about "connection being
reset by peer" or something.
If you need even more details, please do ask.
TC,
b.
On 5 November 2010 00:20, Bernard Li <[email protected]> wrote:
> Hi Bostjan:
>
> On Wed, Nov 3, 2010 at 6:14 PM, Bostjan Skufca <[email protected]> wrote:
>
> > I was just about to ask what this error (in subject) means but then I
> > discovered the solution. The same script for accessing gmetad's
> interactive
> > port, which worked fine on another machine (identically configured
> gmetad),
> > was causing this error message.
>
> What does your script do?
>
> > The solution is: when one connects to gmetad's socket and sends a
> request,
> > he should wait a little bit and only then start reading the response.
>
> There might still be an underlying issue if it works fine on one
> machine but not on another.
>
> Have you checked for debugging logs for gmetad and/or apache when you
> were testing this?
>
> Cheers,
>
> Bernard
>
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general