Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-cluster
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-cluster
Commits
56368dc5
Commit
56368dc5
authored
May 23, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename .real()->.set_real() .uncacheable_direct()->.set_uncacheable_direct()
parent
1ce031e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
vmod_cluster.c
src/vmod_cluster.c
+4
-4
vmod_cluster.vcc
src/vmod_cluster.vcc
+11
-11
No files found.
src/vmod_cluster.c
View file @
56368dc5
...
...
@@ -278,13 +278,13 @@ VCL_VOID vmod_cluster_allow(VRT_CTX,
cluster_blacklist_del
(
pl
,
b
);
}
VCL_VOID
vmod_cluster_real
(
VRT_CTX
,
VCL_VOID
vmod_cluster_
set_
real
(
VRT_CTX
,
struct
vmod_cluster_cluster
*
vc
,
VCL_BACKEND
b
)
{
const
struct
vmod_cluster_cluster_param
*
pr
;
struct
vmod_cluster_cluster_param
*
pl
;
cluster_check
(
ctx
,
real
);
cluster_check
(
ctx
,
set_
real
);
CHECK_OBJ_NOTNULL
(
vc
,
VMOD_CLUSTER_CLUSTER_MAGIC
);
...
...
@@ -296,13 +296,13 @@ VCL_VOID vmod_cluster_real(VRT_CTX,
pl
->
real
=
b
;
}
VCL_VOID
vmod_cluster_uncacheable_direct
(
VRT_CTX
,
VCL_VOID
vmod_cluster_
set_
uncacheable_direct
(
VRT_CTX
,
struct
vmod_cluster_cluster
*
vc
,
VCL_BOOL
direct
)
{
const
struct
vmod_cluster_cluster_param
*
pr
;
struct
vmod_cluster_cluster_param
*
pl
;
cluster_check
(
ctx
,
uncacheable_direct
);
cluster_check
(
ctx
,
set_
uncacheable_direct
);
CHECK_OBJ_NOTNULL
(
vc
,
VMOD_CLUSTER_CLUSTER_MAGIC
);
...
...
src/vmod_cluster.vcc
View file @
56368dc5
...
...
@@ -69,11 +69,11 @@ Differences between the two methods are:
* when different ``deny`` or, in particular, ``real`` backends are to
be used, the cluster director can save substantial amounts of VCL
code: Using the ``.
real()`` method, the director of real backends
can be changed in ``vcl_backend_fetch {}``.
code: Using the ``.
set_real()`` method, the director of real
backends
can be changed in ``vcl_backend_fetch {}``.
Simply put, when using the cluster director, the ``.
real()`` method
effectively replaces ``set bereq.backend``.
Simply put, when using the cluster director, the ``.
set_real()``
method
effectively replaces ``set bereq.backend``.
$Object cluster(BACKEND cluster, [ BACKEND deny ], [ BACKEND real ],
BOOL uncacheable_direct = 1)
...
...
@@ -86,7 +86,7 @@ the cluster director will resolve to a `real` backend (the blacklist)
as if the `.deny(BACKEND)` method had been called.
The optional `real` argument allows to specify the director which use
if a denied backend would have been hit as if the `.real(BACKEND)`
if a denied backend would have been hit as if the `.
set_
real(BACKEND)`
method had been called.
With the default `uncacheable_direct` argument, the cluster director
...
...
@@ -118,7 +118,7 @@ director will resolve to a `real` backend (the blacklist).
Otherwise identical to the `.deny()` method.
$Method VOID .real(BACKEND)
$Method VOID .
set_
real(BACKEND)
Only valid in ``vcl_backend_fetch {}``: Use a diffrent backend for
resolution of real backends.
...
...
@@ -127,7 +127,7 @@ When the `.backend()` method is used with ``resolve=LAZY``, this
method changes the behaviour irrespecitve of being called before or
after the `.backend()` method.
$Method VOID .uncacheable_direct(BOOL)
$Method VOID .
set_
uncacheable_direct(BOOL)
Only valid in ``vcl_backend_fetch {}``: If a ``true`` argument is
given, a `real` backend is always returned for uncacheable backend
...
...
@@ -149,10 +149,10 @@ documentation, either as a reference to cluster director for
``resolve=LAZY`` or immediately for ``resolve=NOW``.
The optional `deny`, `real` and `uncacheable_direct` arguments have
the same effect as calling the methods `.deny()`, `.real()` and
`.
uncacheable_direct()` methods before the `.backend()` method with
``resolve=LAZY``, but can also be used with ``resolve=NOW``. Use of
these arguments with ``resolve=LAZY`` is only allowed in
the same effect as calling the methods `.deny()`, `.
set_
real()` and
`.
set_uncacheable_direct()` methods before the `.backend()` method
with ``resolve=LAZY``, but can also be used with ``resolve=NOW``. Use
of
these arguments with ``resolve=LAZY`` is only allowed in
``vcl_backend_fetch {}`` and ``vcl_init {}``.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment