[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Savannah-hackers-public] fcgiwrap daemon failure and mitigation - a
From: |
Assaf Gordon |
Subject: |
Re: [Savannah-hackers-public] fcgiwrap daemon failure and mitigation - added cgi 'ping' script |
Date: |
Mon, 5 Jun 2017 22:31:56 -0400 |
Hi Bob and all,
> On Jun 5, 2017, at 20:27, Bob Proulx <address@hidden> wrote:
>
> Around 1am US EST (-0400) time the FastCGI interface which services
> man CGI services went offline. This appears to have been due to a
> resource starvation problem on vcs0. This left the daemon in a broken
> state for the entire night. Various users reported the problem this
> morning.
As we discussed on IRC,
I've added a tiny CGI script to test fcgiwrap.
The script is here:
vcs0:/opt/savannah/cgi-bin/cgi-ping/ping.pl
It is referenced in:
vcs0:/etc/nginx/sites-available/git
It can be used in two ways:
1. When used without any GET parameters, this script returns the server's
local time and the load average:
$ curl https://git.savannah.gnu.org/ping
load avg: 0.35 0.47 0.43 1/219 26002
localtime: Mon Jun 5 22:11:54 2017
2. When given an 'id=' parameters, returns the content of the parameter.
This is useful for testing, to ensure nothing is cached anywhere.
$ id=$(date +%s)_$$
$ echo $id
1496715256_19671
$ t=$(curl --silent https://git.savannah.gnu.org/ping?id=$id)
$ test "$id" = "$t" && echo fcgiwrap-ok || echo fcgiwrap-fail
fcgiwrap-ok
NOTE: The content of 'id' is sanitized, characters not matching '\w'
are removed.
I'll send the test scripts soon.
-assaf