Alert on certain error like 503
Geoff Simmons
geoff at uplex.de
Fri Jun 17 15:16:12 CEST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 06/17/11 11:50 AM, Mattias Geniar wrote:
>> What we do is to write to syslog:
>>
>> C{ #include <syslog.h> }C
>> ...
>> sub vcl_error {
>> C{ syslog(LOG_ERR, "Varnish vcl_error"); }C
>> ...
>> return(deliver);
>> }
>>
>
> Have you had a chance to test how that relates to performance when you
> start to get a lot of errors being thrown? I can imagine pushing every
> error to syslog can become a bottleneck when it reaches a certain
> amount?
If all you want is a syslog entry any time vcl_error() is called, just
scan varnishlog for occurrences of VCL_call matching error. There's no
reason to tie up the varnishd demon with calls to syslog() just for that.
Best,
Geoff
- --
** * * UPLEX - Nils Goroll Systemoptimierung
Schwanenwik 24
22087 Hamburg
Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753
http://uplex.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (SunOS)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBCAAGBQJN+1ObAAoJEOUwvh9pJNURt5YP/AxtiC/qFZBFDPkFDrqIEs0N
g9DXWtenXVv6ZcnuIpD4SBZ3zwfvFVtwGasUGyqAXOSFFCLtDksKyHgrK0X1OYGC
ZSEWJakAYFxptC+MHKP96AEseZg4sLJyOC7BVQYST+pT8bfvK5pmXHFtRi+QprJk
jd8F84aXQRbmxIoV7E9Px9cTgCz2w8SXNMksVWiYoOOltTBNsm4bMc3GcY2jcI5r
fT6kwOQQE5SpLo/8Lhy6dcWNN9JrZS8LHaXUUdoYctPI0kzoUIoOnYBz2+rVBCOY
UEavdGQ1s2T4w/gVaH3ERRApGe6Wv37NXUT93oS3e/p4YyE7Utb0u0n9MPc52l59
Fy+fsZIYMws9zMHb5+0uC7v/3Elf1WrTEKgAK1GNjgR9RePF5M0b69J73N05Hjbl
K7fdRqjzW3Ezrf6TcRtzwmDK8Du32wdjHjv7Prx/d37xvOx64MmIOlMj829qy9MQ
E2tJP/wSXFTFLzMpz62PbB8ScmXHiORTIIFQvZjoQ8rTnboLiZiTDBxrivE0ZzsG
nI/+U0ERvuy+ufeuPAGH8H0DnGc+h8AKtxqqs8Vet02/xI+pF5fUyMncjBki2Ge9
MmIcIXpR98ud4CMARaUg9dWh3UtcFNntnzvPgpWtVvYhoFyzfy9j6kHGnYmhn9G6
fTy6fRcTfMs4Q03LC4cU
=8UrV
-----END PGP SIGNATURE-----
More information about the varnish-misc
mailing list