Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmod-saintmode: Allow using blacklist in vcl_backend_error #216

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

delthas
Copy link

@delthas delthas commented Jul 20, 2023

In a way, this reverts 1.

Previously, we would prevent users from blacklisting a backend from vcl_backend_error. But this is actually useful to users: when a backend fails to respond (and is considered healthy due to e.g. a varnishadm call), we may want to blacklist it for a short while, in order to return (retry) and be sure that we do not use this backend for our second try.

This changes the behavior to checking if there is an available backend, e.g. if we are in vcl_backend_response or vcl_backend_error.

In a way, this reverts [1].

Previously, we would prevent users from blacklisting a backend
from vcl_backend_error. But this is actually useful to users:
when a backend fails to respond (and is considered healthy due
to e.g. a varnishadm call), we may want to blacklist it for a
short while, in order to `return (retry)` and be sure that we
do not use this backend for our second try.

This changes the behavior to checking if there is an available
backend, e.g. if we are in vcl_backend_response or
vcl_backend_error.

[1]: varnish/libvmod-saintmode@d8658c9
@gquintard
Copy link
Collaborator

gquintard commented Jul 20, 2023 via email

@gquintard
Copy link
Collaborator

@delthas ?

@gquintard
Copy link
Collaborator

one last bump

@delthas
Copy link
Author

delthas commented Oct 27, 2023

@gquintard Ack, have seen the comment, I'll work on it later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants