Commit 3ff448ba authored by Geoff Simmons's avatar Geoff Simmons

Rearrange and reduce repetition a bit in "Changes" and "Upgrading".

"Changes" details information that is visible and may be actionable
for users. The docs reference one another (rather than repeat one
another).
parent f3d4cad6
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
updates for changes in the development branch. For changes in the updates for changes in the development branch. For changes in the
released versions of Varnish, see:** :ref:`whats-new-index` released versions of Varnish, see:** :ref:`whats-new-index`
.. _whatsnew_changes_CURRENT: .. _whatsnew_changes_2019_03:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Changes in Varnish **$NEXT_RELEASE** Changes in Varnish **$NEXT_RELEASE**
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
For information about updating your current Varnish deployment to the For information about updating your current Varnish deployment to the
new version, see :ref:`whatsnew_upgrading_CURRENT`. new version, see :ref:`whatsnew_upgrading_2019_03`.
A more detailed and technical account of changes in Varnish, with A more detailed and technical account of changes in Varnish, with
links to issues that have been fixed and pull requests that have been links to issues that have been fixed and pull requests that have been
...@@ -36,14 +36,9 @@ and/or :ref:`ref_param_thread_pools`. ...@@ -36,14 +36,9 @@ and/or :ref:`ref_param_thread_pools`.
Parameters Parameters
~~~~~~~~~~ ~~~~~~~~~~
Some parameters that have been long deprecated are now retired. Now Some parameters that have been long deprecated are now retired. See
you must use these parameters: :ref:`whatsnew_upgrading_params_2019_03` in
:ref:`whatsnew_upgrading_2019_03`.
* :ref:`ref_param_vsl_reclen` (in place of ``shm_reclen``)
* :ref:`ref_param_vcl_path` (in place of ``vcl_dir``)
* :ref:`ref_param_vmod_path` (in place of ``vmod_dir``)
Added :ref:`ref_param_thread_pool_watchdog`, see above. Added :ref:`ref_param_thread_pool_watchdog`, see above.
...@@ -69,18 +64,14 @@ Added ``req.is_hitmiss`` and ``req.is_hitpass``, see :ref:`vcl(7)`. ...@@ -69,18 +64,14 @@ Added ``req.is_hitmiss`` and ``req.is_hitpass``, see :ref:`vcl(7)`.
Other changes to VCL Other changes to VCL
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
When the ``.path`` field of a backend declaration is used to define a Runtime restrictions concerning the accessibility of Unix domain
Unix domain socket as the backend address, and the socket file does sockets have been relaxed, see :ref:`whatsnew_upgrading_vcl_2019_03`
not exist or is not accessible at VCL load time, then a warning is in :ref:`whatsnew_upgrading_2019_03`.
issued, but the VCL load is allowed to continue. Previously, the load
would fail in that case. This makes it easier to start the peer
component listening at the socket, or set the socket's permissions,
after starting Varnish or loading VCL. If the socket still cannot be
accessed when a fetch is attempted, then the fetch fails.
``return(miss)`` from ``vcl_hit{}`` did never work as intended for the ``return(miss)`` from ``vcl_hit{}`` did never work as intended for the
common case (it actually turned into a pass), so we now removed it and common case (it actually turned into a pass), so we now removed it and
changed the ``builtin.vcl``. changed the ``builtin.vcl``. See
:ref:`whatsnew_upgrading_vcl_2019_03`.
VMODs VMODs
===== =====
...@@ -116,6 +107,12 @@ microsecond precision. This affects the tags ``ExpKill`` and ...@@ -116,6 +107,12 @@ microsecond precision. This affects the tags ``ExpKill`` and
varnishadm(1) and varnish-cli(7) varnishadm(1) and varnish-cli(7)
================================ ================================
The output formats of the ``vcl.list`` and ``backend.list`` commands
have changed, see :ref:`whatsnew_upgrading_backend_list_2019_03` and
:ref:`whatsnew_upgrading_vcl_list_2019_03` in
:ref:`whatsnew_upgrading_2019_03`, as well as :ref:`varnish-cli(7)`
for details.
.. _whatsnew_changes_cli_json: .. _whatsnew_changes_cli_json:
JSON output JSON output
...@@ -134,8 +131,8 @@ the following commands (see :ref:`varnish-cli(7)`): ...@@ -134,8 +131,8 @@ the following commands (see :ref:`varnish-cli(7)`):
The ``-j`` option was already available for ``backend.list``, ``ping`` The ``-j`` option was already available for ``backend.list``, ``ping``
and ``help`` in previous versions. and ``help`` in previous versions.
For automated parsing of CLI responses (``varnishadm`` output), we For automated parsing of CLI responses (:ref:`varnishadm(1)` output),
recommend the use of JSON format. we recommend the use of JSON format.
``param.reset <param>`` ``param.reset <param>``
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
...@@ -143,65 +140,6 @@ recommend the use of JSON format. ...@@ -143,65 +140,6 @@ recommend the use of JSON format.
Added the command ``param.reset`` to reset a parameter's value to its Added the command ``param.reset`` to reset a parameter's value to its
default, see :ref:`varnish-cli(7)`. default, see :ref:`varnish-cli(7)`.
.. _whatsnew_changes_vcl_list_backend_list:
Listing backends
~~~~~~~~~~~~~~~~
``backend.list`` has grown an additional column, the output has
changed and fields are now of dynamic width:
* The ``Admin`` column now accurately states ``probe`` only if a
backend has some means of dynamically determining health state.
* The ``Probe`` column has been changed to display ``X/Y``, where:
* Integer ``X`` is the number of good probes in the most recent
window; or if the backend in question is a director, the number of
healthy backends accessed via the director or any other
director-specific metric.
* Integer ``Y`` is the window in which the threshold for overall
health of the backend is defined (from the ``.window`` field of a
probe, see :ref:`vcl(7)`); or in the case of a director, the total
number of backends accessed via the director or any other
director-specific metric.
If there is no probe or the director does not provide details,
``0/0`` is output.
* The ``Health`` column has been added to contain the dynamic (probe)
health state and the format has been unified to just ``healthy`` or
``sick``.
If there is no probe, ``Health`` is always given as
``healthy``. Notice that the administrative health as shown in the
``Admin`` column has precedence.
In the ``probe_message`` field of ``backend.list -j`` output, the
``Probe`` and ``Health`` columns appears as the array ``[X, Y,
health]``.
See :ref:`varnish-cli(7)` for details.
Listing VCLs
~~~~~~~~~~~~
The non-JSON output of ``vcl.list`` has been changed:
* The ``state`` and ``temperature`` fields appear in separate columns
(previously combined in one column).
* The optional column showing the relationships between labels and VCL
configurations (when labels are in use) has been separated into two
columns.
See :ref:`varnish-cli(7)` for details. In the JSON output for
``vcl.list -j``, this information appears in separate fields.
The width of columns in ``backend.list`` and ``vcl.list`` output
(non-JSON) is now dynamic, to fit the width of the terminal window.
Banning by expiration parameters Banning by expiration parameters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
updates for changes in the development branch. For changes in the updates for changes in the development branch. For changes in the
released versions of Varnish, see:** :ref:`whats-new-index` released versions of Varnish, see:** :ref:`whats-new-index`
.. _whatsnew_upgrading_CURRENT: .. _whatsnew_upgrading_2019_03:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Upgrading to Varnish **$NEXT_RELEASE** Upgrading to Varnish **$NEXT_RELEASE**
...@@ -30,6 +30,8 @@ to:** ...@@ -30,6 +30,8 @@ to:**
* Changes in public APIs that may require changes in VMODs or VAPI/VUT * Changes in public APIs that may require changes in VMODs or VAPI/VUT
clients. clients.
.. _whatsnew_upgrading_vcl_2019_03:
VCL VCL
=== ===
...@@ -44,7 +46,6 @@ listening at the socket, or set its permissions, after Varnish starts ...@@ -44,7 +46,6 @@ listening at the socket, or set its permissions, after Varnish starts
or the VCL is loaded. Backend fetches fail if the socket is not or the VCL is loaded. Backend fetches fail if the socket is not
accessible by the time the fetch is attempted. accessible by the time the fetch is attempted.
``return(miss)`` from ``vcl_hit{}`` is now removed. Options to ``return(miss)`` from ``vcl_hit{}`` is now removed. Options to
implement similar functionality are: implement similar functionality are:
...@@ -53,6 +54,8 @@ implement similar functionality are: ...@@ -53,6 +54,8 @@ implement similar functionality are:
* ``return (restart)`` from ``vcl_hit{}`` and ``set * ``return (restart)`` from ``vcl_hit{}`` and ``set
req.hash_always_miss = true;`` in ``vcl_recv{}`` for the restart. req.hash_always_miss = true;`` in ``vcl_recv{}`` for the restart.
.. _whatsnew_upgrading_params_2019_03:
Runtime parameters Runtime parameters
================== ==================
...@@ -108,15 +111,71 @@ They will be removed in a future version of Varnish. ...@@ -108,15 +111,71 @@ They will be removed in a future version of Varnish.
varnishadm and the CLI varnishadm and the CLI
====================== ======================
The output formats of the ``vcl.list`` and ``backend.list`` commands
have changed, see :ref:`whatsnew_changes_vcl_list_backend_list` and
:ref:`varnish-cli(7)` for details. In non-JSON mode, the width of
columns in ``backend.list`` and ``vcl.list`` output is now dynamic, to
fit the width of the terminal window.
The ``-j`` option for JSON output has been added to a number of The ``-j`` option for JSON output has been added to a number of
commands, see :ref:`whatsnew_changes_cli_json` and commands, see :ref:`whatsnew_changes_cli_json` in
:ref:`varnish-cli(7)`. We recommend the use of JSON format for :ref:`whatsnew_changes_2019_03` and :ref:`varnish-cli(7)`. We
automated parsing of CLI responses (:ref:`varnishadm(1)` output). recommend the use of JSON format for automated parsing of CLI
responses (:ref:`varnishadm(1)` output).
.. _whatsnew_upgrading_backend_list_2019_03:
Listing backends
~~~~~~~~~~~~~~~~
``backend.list`` has grown an additional column, the output has
changed and fields are now of dynamic width:
* The ``Admin`` column now accurately states ``probe`` only if a
backend has some means of dynamically determining health state.
* The ``Probe`` column has been changed to display ``X/Y``, where:
* Integer ``X`` is the number of good probes in the most recent
window; or if the backend in question is a director, the number of
healthy backends accessed via the director or any other
director-specific metric.
* Integer ``Y`` is the window in which the threshold for overall
health of the backend is defined (from the ``.window`` field of a
probe, see :ref:`vcl(7)`); or in the case of a director, the total
number of backends accessed via the director or any other
director-specific metric.
If there is no probe or the director does not provide details,
``0/0`` is output.
* The ``Health`` column has been added to contain the dynamic (probe)
health state and the format has been unified to just ``healthy`` or
``sick``.
If there is no probe, ``Health`` is always given as
``healthy``. Notice that the administrative health as shown in the
``Admin`` column has precedence.
In the ``probe_message`` field of ``backend.list -j`` output, the
``Probe`` and ``Health`` columns appears as the array ``[X, Y,
health]``.
See :ref:`varnish-cli(7)` for details.
.. _whatsnew_upgrading_vcl_list_2019_03:
Listing VCLs
~~~~~~~~~~~~
The non-JSON output of ``vcl.list`` has been changed:
* The ``state`` and ``temperature`` fields appear in separate columns
(previously combined in one column).
* The optional column showing the relationships between labels and VCL
configurations (when labels are in use) has been separated into two
columns.
See :ref:`varnish-cli(7)` for details. In the JSON output for
``vcl.list -j``, this information appears in separate fields.
The width of columns in ``backend.list`` and ``vcl.list`` output
(non-JSON) is now dynamic, to fit the width of the terminal window.
*eof* *eof*
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