SkillAgentSearch skills...

Varnishtuner.py

Varnish Cache Tuner

Install / Use

/learn @unixy/Varnishtuner.py
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

varnishtuner.py

Varnish Cache Tuner

This python script checks Varnish stats and server settings hoping to recommend optimal values for Varnish Cache parameters. Script is currently an alpha release and is plagued with bugs and issues. It's also written to work with a subset of Varnish deployments (namely those we target with our cPanel Varnish and cPanel Varnish Nginx plugins - see http://www.unixy.net/varnish/ ). Patches are welcome!

What's the precursor for writing this script?

First, there's the need to remove the complexity from correctly adjusting Varnish parameters. Second, there was no freely available script that does it (Varnish Software's own varnish tuner script is doubly not free).

Why is the script reinventing the wheel instead of leveraging Python external modules?

We're aiming to support 2.4,2.6,and 3.x Python installations. The goal is to have code that semi-works with all of these fragmented releases. So the script does not rely on installing modules. It's one file that runs on as many environments as possible.

How do I run it?

  1. wget https://raw.githubusercontent.com/unixy/varnishtuner.py/master/varnishtuner.py

  2. a. python varnishtuner.py OR b. python varnishtuner.py --help # for all available options

View on GitHub
GitHub Stars113
CategoryDevelopment
Updated1mo ago
Forks5

Languages

Python

Security Score

75/100

Audited on Mar 3, 2026

No findings