Commit b8f32b91 authored by Lasse Karstensen's avatar Lasse Karstensen

Squash more warnings

parent c8add6f7
...@@ -14,7 +14,7 @@ architecture. ...@@ -14,7 +14,7 @@ architecture.
To get started with Varnish-Cache we recommend that you read the installation To get started with Varnish-Cache we recommend that you read the installation
guide :ref:`install-index`. Once you have Varnish up and running we recommend guide :ref:`install-index`. Once you have Varnish up and running we recommend
that you go through our tutorial - :ref:`tutorial-index`, and finally the that you go through our tutorial - :ref:`tutorial-index`, and finally the
:ref:`users_guide_index`. :ref:`users-guide-index`.
If you need to find out how to use a specific Varnish tool, the If you need to find out how to use a specific Varnish tool, the
:ref:`reference-index` contains detailed documentation over the tools. Changes :ref:`reference-index` contains detailed documentation over the tools. Changes
......
.. _ref-varnishadm:
========== ==========
varnishadm varnishadm
========== ==========
......
.. _ref-varnishhist:
=========== ===========
varnishhist varnishhist
=========== ===========
......
.. _ref-varnishncsa:
=========== ===========
varnishncsa varnishncsa
=========== ===========
......
.. _reference-varnishstat: .. _ref-varnishstat:
=========== ===========
varnishstat varnishstat
...@@ -13,6 +13,8 @@ SYNOPSIS ...@@ -13,6 +13,8 @@ SYNOPSIS
varnishstat [-1] [-x] [-j] [-f field_list] [-l] [-n varnish_name] [-N filename] [-V] [-w delay] varnishstat [-1] [-x] [-j] [-f field_list] [-l] [-n varnish_name] [-N filename] [-V] [-w delay]
.. TODO: autogenerate this synopsis like the others.
DESCRIPTION DESCRIPTION
=========== ===========
......
.. _ref-varnishtest:
=========== ===========
varnishtest varnishtest
=========== ===========
......
.. _ref-varnishtop:
========== ==========
varnishtop varnishtop
========== ==========
......
...@@ -2,26 +2,26 @@ ...@@ -2,26 +2,26 @@
Sizing your cache Sizing your cache
----------------- -----------------
Deciding on cache size can be a tricky Deciding on cache size can be a tricky task. A few things to consider:
task. A few things to consider:
* How big is your *hot* data set. For a portal or news site that * How big is your *hot* data set. For a portal or news site that
would be the size of the front page with all the stuff on it, and would be the size of the front page with all the stuff on it, and
the size of all the pages and objects linked from the first page. the size of all the pages and objects linked from the first page.
* How expensive is it to generate an object? Sometimes it makes sense * How expensive is it to generate an object? Sometimes it makes sense
to only cache images a little while or not to cache them at all if to only cache images a little while or not to cache them at all if
they are cheap to serve from the backend and you have a limited they are cheap to serve from the backend and you have a limited
amount of memory. amount of memory.
* Watch the `n_lru_nuked` counter with :ref:`reference-varnishstat` or
* Watch the `n_lru_nuked` counter with :ref:`ref-varnishstat` or
some other tool. If you have a lot of LRU activity then your cache some other tool. If you have a lot of LRU activity then your cache
is evicting objects due to space constraints and you should is evicting objects due to space constraints and you should
consider increasing the size of the cache. consider increasing the size of the cache.
Be aware that every object that is stored also carries overhead that Be aware that every object that is stored also carries overhead that
is kept outside the actually storage area. So, even if you specify '-s is kept outside the actually storage area. So, even if you specify ``-s
malloc,16G' Varnish might actually use **double** that. Varnish has a malloc,16G`` Varnish might actually use **double** that. Varnish has a
overhead of about 1k per object. So, if you have lots of small objects overhead of about 1KB per object. So, if you have lots of small objects
in your cache the overhead might be significant. in your cache the overhead might be significant.
.. XXX:This seems to contradict the last paragraph in "storage-backends". benc .. XXX:This seems to contradict the last paragraph in "storage-backends". benc
...@@ -180,34 +180,32 @@ define the backends.:: ...@@ -180,34 +180,32 @@ define the backends.::
} }
} }
Whats new here is the ``probe``. Varnish will check the health of each What is new here is the ``probe``. Varnish will check the health of each
backend with a probe. The options are: backend with a probe. The options are:
url url
The URL Varnish will use to send a probe request. The URL Varnish will use to send a probe request.
interval interval
How often should we poll How often should we poll.
timeout timeout
What is the timeout of the probe What is the timeout of the probe.
window window
Varnish will maintain a *sliding window* of the results. Here the Varnish will retain up to this many probes when considering backend health.
window has five checks.
threshold threshold
How many of the '.window' last polls must be good for the backend to be declared healthy. How many of the `.window` last polls must be good for the backend to be
declared healthy.
.. XXX: .window probably means something but not to me :) benc
initial initial
How many of the probes that needs to be succesful when Varnish starts - defaults How many of the probes that needs to be succesful when Varnish starts.
to the same amount as the threshold. Defaults to the same amount as the threshold.
Now we define the 'director'.::
.. XXX: Where and why? benc .. XXX: Where and why? benc
Now we define the 'director'::
import directors; import directors;
...@@ -222,10 +220,10 @@ unhealthy. Varnish can also serve stale content if all the backends are ...@@ -222,10 +220,10 @@ unhealthy. Varnish can also serve stale content if all the backends are
down. See :ref:`users-guide-handling_misbehaving_servers` for more down. See :ref:`users-guide-handling_misbehaving_servers` for more
information on how to enable this. information on how to enable this.
Please note that Varnish will keep probes active for all loaded Please note that Varnish will keep probes active for all loaded VCLs. Varnish
VCLs. Varnish will coalesce probes that seem identical - so be careful will coalesce probes that seem identical - so be careful not to change the
not to change the probe config if you do a lot of VCL probe config if you do a lot of VCL loading. Unloading the VCL will discard the
loading. Unloading the VCL will discard the probes. probes.
For more information on how to do this please see For more information on how to do this please see
ref:`reference-vcl-director`. ref:`reference-vcl-director`.
......
...@@ -42,8 +42,5 @@ code commented out in the file `builtin.vcl` that ships with Varnish Cache. ...@@ -42,8 +42,5 @@ code commented out in the file `builtin.vcl` that ships with Varnish Cache.
vcl-grace vcl-grace
vcl-inline-c vcl-inline-c
vcl-examples vcl-examples
websockets
.. XXX: websockets seems to be missing? does it refer to the last sample in the vcl index if so already included. benc
devicedetection devicedetection
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment