Skip to content

lmello/mcollective-varnish-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcollective-varnish-agent

THIS IS IN DEVELOPMENT, FEEL FREE TO HELP

Description

I was tired of having to write scripts and web interfaces that just do not scale to purging tens or hundreds varnish servers.

I had decided to use the publisher, subscriber aproach, and found that one mcollective varnish agent plugin would be THE WAY to do it.

I had searched for a mcollective varnish agent, without success, so I had decided to write mine, this is free software, is in active development, not ready yet for production use.

If you like the idea or have the same need, please join efforts, fork and send a pull request.

I hope that in near future this mcollective varnish agent will support:

1 - Varnish url purging, using regex or full url.

2 - Varnish service start, stop, restart, reload vcl, status

3 - Display the varnish vcl of the servers.

4 - Collect statistics from varnish servers thru varnishstat

Example Usage:

CURRENT WORKING COMMANDS:

$mco rpc varnish purge url=http://domainname/url/image.jpg

/* use varnishadm to purge the url. */

-------------COMMANDS BELLOW DOES NOT WORK YET -------------- $mco varnish purge regex "^/images/.*$"

/* use varnishadm ban.url "^/images/.*$" */

$mco varnish vcl reload

/* Reload the varnish vcl from file without restarting varnish */

$mco varnish vcl show

/* Runs varnishadm vcl.list to grab the active vcl, then run vcl.show active_vcl_name */

$mco varnish stats all

/* Returns all the stats of varnishstat -j */

$mco varnish stats cache_hit

/* Parse varnishstat -j and get cache_hit */

About

mcollective varnish agent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages