Commit 620b09f2 authored by Nils Goroll's avatar Nils Goroll

document vslpdir_pick_be arguments

parent ce30412a
...@@ -383,6 +383,14 @@ vslpdir_any_healthy(struct vslpdir *vslpd) ...@@ -383,6 +383,14 @@ vslpdir_any_healthy(struct vslpdir *vslpd)
return (retval); return (retval);
} }
/*
* hash: position on the ring
* n_retry:
* 0 : choose n-th backend based on number of restarts / retries
* >=1 : choose backend number n_retry (1= first)
* altsrv_p : use altsrv_p to use next backend
* healthy : consider only healthy backends
*/
VCL_BACKEND vslpdir_pick_be(struct vslpdir *vslpd, VCL_BACKEND vslpdir_pick_be(struct vslpdir *vslpd,
const struct vrt_ctx *ctx, uint32_t hash, const struct vrt_ctx *ctx, uint32_t hash,
VCL_INT n_retry, VCL_BOOL altsrv_p, VCL_BOOL healthy) VCL_INT n_retry, VCL_BOOL altsrv_p, VCL_BOOL healthy)
......
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