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
1=== removed file 'README'
2--- README 2012-05-24 08:13:11 +0000
3+++ README 1970-01-01 00:00:00 +0000
4@@ -1,89 +0,0 @@
5-Juju Charm: varnish
6-Author: Nathan Williams
7-
8-0. INTRODUCTION
9-########################################################################
10-
11-Varnish Cache is a "web application accelerator", or an HTTP reverse
12-proxy. By deploying varnish in front of an HTTP server, it can speed up
13-delivery by a factor of 300-1000x, depending on configuration.
14-
15-What makes Varnish Cache so powerful is the Varnish Cache Language (VCL). By
16-using VCL to configure Varnish Cache for your site, you can see
17-*remarkable* performance improvements.
18-
19-This varnish charm has also been set up to use a self-policing, round-
20-robin load-balancer (director) that distributes the load between your
21-HTTP backends. Any backends defined by related website relations will
22-be monitored, and in the event that they repeatedly fail to respond,
23-Varnish Cache will stop sending it requests until it is healthy.
24-
25-1. REQUIREMENTS
26-########################################################################
27-
28-Varnish Cache requires a backend that serves content with HTTP.
29-
30-2. GETTING STARTED DEPLOYING VARNISH
31-########################################################################
32-
33-Bootstrap your juju environment:
34-
35- juju bootstrap
36-
37-Deploy a varnish (reverse-proxy) instance:
38-
39- juju deploy varnish
40-
41-Expose the service:
42-
43- juju expose varnish
44-
45-Connect varnish and wordpress:
46-
47- juju add-relation varnish wordpress
48-
49-3. CONFIGURING VARNISH
50-########################################################################
51-Configuration options:
52-
53-The varnish charm allows you to configure varnish's listening port in
54-your own config.yaml.
55-
56-Tune your Varnish Cache deployment:
57-
58-It also includes some common-sense tuning tweaks in data/extra.vcl.
59-
60-If you wish to add extra (application-specific?) configuration, feel
61-free to add your VCL changes to data/extra.vcl. It shouldn't interfere
62-with the charm deployment, and will retain the round-robin director as
63-as long as you keep the following line in your vcl_receive:
64-
65- set req.backend = balance;
66-
67-
68-4. MORE INFORMATION
69-########################################################################
70-To verify Varnish Cache is delivering cached content, check the HTTP
71-headers by running the following command twice:
72-
73- curl -I -H "Host: <backend address>" http://<varnish address>/
74-
75-To verify the site content is delivered from the backend:
76-
77- curl -H "Host: 192.168.122.242" http://192.168.122.111/
78-
79-For more information about Varnish Cache, check out their official docs:
80-
81- https://www.varnish-cache.org/docs/3.0/
82-
83-5. IMPROVEMENTS? BUGS?
84-########################################################################
85-If you find a bug, or know any optimization tricks that are application
86-agnostic, let us know!
87-
88-6. THE END
89-########################################################################
90-To destroy all your services, you can run:
91-
92- juju destroy-environment
93-
94
95=== added file 'README.md'
96--- README.md 1970-01-01 00:00:00 +0000
97+++ README.md 2014-04-15 22:38:17 +0000
98@@ -0,0 +1,86 @@
99+Juju Charm: varnish
100+Author: Nathan Williams
101+
102+# Introduction
103+
104+Varnish Cache is a "web application accelerator", or an HTTP reverse
105+proxy. By deploying varnish in front of an HTTP server, it can speed up
106+delivery by a factor of 300-1000x, depending on configuration.
107+
108+What makes Varnish Cache so powerful is the Varnish Cache Language (VCL). By
109+using VCL to configure Varnish Cache for your site, you can see
110+*remarkable* performance improvements.
111+
112+This varnish charm has also been set up to use a self-policing, round-
113+robin load-balancer (director) that distributes the load between your
114+HTTP backends. Any backends defined by related website relations will
115+be monitored, and in the event that they repeatedly fail to respond,
116+Varnish Cache will stop sending it requests until it is healthy.
117+
118+# Requirements
119+
120+Varnish Cache requires a backend that serves content with HTTP.
121+
122+# Getting started deploying Varnish
123+
124+Bootstrap your juju environment:
125+
126+ juju bootstrap
127+
128+Deploy a varnish (reverse-proxy) instance:
129+
130+ juju deploy varnish
131+
132+Expose the service:
133+
134+ juju expose varnish
135+
136+Connect varnish and wordpress:
137+
138+ juju add-relation varnish wordpress
139+
140+# Configuring Varnish
141+
142+Configuration options:
143+
144+The varnish charm allows you to configure varnish's listening port in
145+your own config.yaml.
146+
147+Tune your Varnish Cache deployment:
148+
149+It also includes some common-sense tuning tweaks in data/extra.vcl.
150+
151+If you wish to add extra (application-specific?) configuration, feel
152+free to add your VCL changes to data/extra.vcl. It shouldn't interfere
153+with the charm deployment, and will retain the round-robin director as
154+as long as you keep the following line in your vcl_receive:
155+
156+ set req.backend = balance;
157+
158+
159+# More Information
160+
161+To verify Varnish Cache is delivering cached content, check the HTTP
162+headers by running the following command twice:
163+
164+ curl -I -H "Host: <backend address>" http://<varnish address>/
165+
166+To verify the site content is delivered from the backend:
167+
168+ curl -H "Host: 192.168.122.242" http://192.168.122.111/
169+
170+For more information about Varnish Cache, check out their official docs:
171+
172+ https://www.varnish-cache.org/docs/3.0/
173+
174+# Improvements? Bugs?
175+
176+If you find a bug, or know any optimization tricks that are application
177+agnostic, let us know!
178+
179+# The End
180+
181+To destroy all your services, you can run:
182+
183+ juju destroy-environment <environment name>
184+

Subscribers

People subscribed via source and target branches

to all changes: