Merge lp:~jose/charms/precise/varnish/fix-readme into lp:charms/varnish

Proposed by José Antonio Rey
Status: Merged
Merged at revision: 12
Proposed branch: lp:~jose/charms/precise/varnish/fix-readme
Merge into: lp:charms/varnish
Diff against target: 184 lines (+86/-89)
2 files modified
README (+0/-89)
README.md (+86/-0)
To merge this branch: bzr merge lp:~jose/charms/precise/varnish/fix-readme
Reviewer Review Type Date Requested Status
Marco Ceppi (community) Approve
Review via email: mp+215981@code.launchpad.net

Commit message

Converted README to Markdown

Description of the change

Converted README to Markdown

To post a comment you must log in.
Revision history for this message
Marco Ceppi (marcoceppi) wrote :

LGTM, +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== removed file 'README'
--- README 2012-05-24 08:13:11 +0000
+++ README 1970-01-01 00:00:00 +0000
@@ -1,89 +0,0 @@
1Juju Charm: varnish
2Author: Nathan Williams
3
40. INTRODUCTION
5########################################################################
6
7Varnish Cache is a "web application accelerator", or an HTTP reverse
8proxy. By deploying varnish in front of an HTTP server, it can speed up
9delivery by a factor of 300-1000x, depending on configuration.
10
11What makes Varnish Cache so powerful is the Varnish Cache Language (VCL). By
12using VCL to configure Varnish Cache for your site, you can see
13*remarkable* performance improvements.
14
15This varnish charm has also been set up to use a self-policing, round-
16robin load-balancer (director) that distributes the load between your
17HTTP backends. Any backends defined by related website relations will
18be monitored, and in the event that they repeatedly fail to respond,
19Varnish Cache will stop sending it requests until it is healthy.
20
211. REQUIREMENTS
22########################################################################
23
24Varnish Cache requires a backend that serves content with HTTP.
25
262. GETTING STARTED DEPLOYING VARNISH
27########################################################################
28
29Bootstrap your juju environment:
30
31 juju bootstrap
32
33Deploy a varnish (reverse-proxy) instance:
34
35 juju deploy varnish
36
37Expose the service:
38
39 juju expose varnish
40
41Connect varnish and wordpress:
42
43 juju add-relation varnish wordpress
44
453. CONFIGURING VARNISH
46########################################################################
47Configuration options:
48
49The varnish charm allows you to configure varnish's listening port in
50your own config.yaml.
51
52Tune your Varnish Cache deployment:
53
54It also includes some common-sense tuning tweaks in data/extra.vcl.
55
56If you wish to add extra (application-specific?) configuration, feel
57free to add your VCL changes to data/extra.vcl. It shouldn't interfere
58with the charm deployment, and will retain the round-robin director as
59as long as you keep the following line in your vcl_receive:
60
61 set req.backend = balance;
62
63
644. MORE INFORMATION
65########################################################################
66To verify Varnish Cache is delivering cached content, check the HTTP
67headers by running the following command twice:
68
69 curl -I -H "Host: <backend address>" http://<varnish address>/
70
71To verify the site content is delivered from the backend:
72
73 curl -H "Host: 192.168.122.242" http://192.168.122.111/
74
75For more information about Varnish Cache, check out their official docs:
76
77 https://www.varnish-cache.org/docs/3.0/
78
795. IMPROVEMENTS? BUGS?
80########################################################################
81If you find a bug, or know any optimization tricks that are application
82agnostic, let us know!
83
846. THE END
85########################################################################
86To destroy all your services, you can run:
87
88 juju destroy-environment
89
900
=== added file 'README.md'
--- README.md 1970-01-01 00:00:00 +0000
+++ README.md 2014-04-15 22:38:17 +0000
@@ -0,0 +1,86 @@
1Juju Charm: varnish
2Author: Nathan Williams
3
4# Introduction
5
6Varnish Cache is a "web application accelerator", or an HTTP reverse
7proxy. By deploying varnish in front of an HTTP server, it can speed up
8delivery by a factor of 300-1000x, depending on configuration.
9
10What makes Varnish Cache so powerful is the Varnish Cache Language (VCL). By
11using VCL to configure Varnish Cache for your site, you can see
12*remarkable* performance improvements.
13
14This varnish charm has also been set up to use a self-policing, round-
15robin load-balancer (director) that distributes the load between your
16HTTP backends. Any backends defined by related website relations will
17be monitored, and in the event that they repeatedly fail to respond,
18Varnish Cache will stop sending it requests until it is healthy.
19
20# Requirements
21
22Varnish Cache requires a backend that serves content with HTTP.
23
24# Getting started deploying Varnish
25
26Bootstrap your juju environment:
27
28 juju bootstrap
29
30Deploy a varnish (reverse-proxy) instance:
31
32 juju deploy varnish
33
34Expose the service:
35
36 juju expose varnish
37
38Connect varnish and wordpress:
39
40 juju add-relation varnish wordpress
41
42# Configuring Varnish
43
44Configuration options:
45
46The varnish charm allows you to configure varnish's listening port in
47your own config.yaml.
48
49Tune your Varnish Cache deployment:
50
51It also includes some common-sense tuning tweaks in data/extra.vcl.
52
53If you wish to add extra (application-specific?) configuration, feel
54free to add your VCL changes to data/extra.vcl. It shouldn't interfere
55with the charm deployment, and will retain the round-robin director as
56as long as you keep the following line in your vcl_receive:
57
58 set req.backend = balance;
59
60
61# More Information
62
63To verify Varnish Cache is delivering cached content, check the HTTP
64headers by running the following command twice:
65
66 curl -I -H "Host: <backend address>" http://<varnish address>/
67
68To verify the site content is delivered from the backend:
69
70 curl -H "Host: 192.168.122.242" http://192.168.122.111/
71
72For more information about Varnish Cache, check out their official docs:
73
74 https://www.varnish-cache.org/docs/3.0/
75
76# Improvements? Bugs?
77
78If you find a bug, or know any optimization tricks that are application
79agnostic, let us know!
80
81# The End
82
83To destroy all your services, you can run:
84
85 juju destroy-environment <environment name>
86

Subscribers

People subscribed via source and target branches

to all changes: