nicolasenno / deployments.buildout.varnish

deployments.buildout.varnish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A varnish 3 buildout

Build Status

[TOC]

Introduction

This is the a very basic buildout template to run varnish.

I am feeling lucky!

Lucky people read the documentation, anyway if you have a local copy of this buildout, try to run this command:

make

For the impatients

To start the buildout:

python2.7 bootstrap.py &&  ./bin/buildout

To launch varnish:

./bin/varnish

Requirements

You may want to install this to get this buildout working:

# python stuff
apt-get install python-dev python-virtualenv
# other stuff
apt-get install libpcre++-dev libreadline-dev

How to modify this buildout

The varnish template for the configuration is in templates/varnish.vcl.in. This template is inspired by http://developer.plone.org/hosting/varnish.html#id12. The buildout will compile this file and create a file in etc/varnish.vcl.

FAQ

Q: How can I change the backend port?

A: In the file buildout.cfg, section varnish, modify the backend-port option, which defaults to:

[varnish]
...
bind = 127.0.0.1:8099

Q: How can I change varnish port?

A: In the file buildout.cfg, section varnish, modify the bind option, which defaults to:

[varnish]
...
bind = 127.0.0.1:8099

Q: How can I change varnish telnet interface port?

[varnish]
...
telnet = 127.0.0.1:8098

Q: How can I change the cache size?

A: In the file buildout.cfg, section varnish, modify the cache-size option, which defaults to:

[varnish]
...
cache-size = 512M

About

deployments.buildout.varnish