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

When there's no response from the Origin, the escalate plugin does not function correctly. #11836

Open
incheoloh opened this issue Oct 31, 2024 · 1 comment · May be fixed by #11847
Open

When there's no response from the Origin, the escalate plugin does not function correctly. #11836

incheoloh opened this issue Oct 31, 2024 · 1 comment · May be fixed by #11847
Assignees
Labels
escalate escalate plugin Support

Comments

@incheoloh
Copy link

I'm using the 'escalate' plugin.
When the origin responses like 2xx or 5xx, it works well with redirecting to second-origin.
However, when there's no response from origin due to its unavailability, the 'escalate' plugin doesn't work as expected.
I believe TS_HTTP_READ_RESPONSE_HDR_HOOK is not called if there's no response from Origin.

Is there any way to make a redirection to second-origin when there's no response from Origin?

@incheoloh
Copy link
Author

It would be great if there was a hook to handle the case when parent or origin doesn't respond. For example, TS_HTTP_READ_RESPONSE_ERROR_HDR_HOOK.

@bneradt bneradt assigned bneradt and unassigned jpeach Nov 6, 2024
bneradt added a commit to bneradt/trafficserver that referenced this issue Nov 6, 2024
Update the escalate plugin to handle dispatching to the failover server
if the original server is down.

This also adds a new autest for the escalate plugin.

Fixes: apache#11836
bneradt added a commit to bneradt/trafficserver that referenced this issue Nov 6, 2024
Update the escalate plugin to handle dispatching to the failover server
if the original server is down.

This also adds a new autest for the escalate plugin.

Fixes: apache#11836
@bneradt bneradt linked a pull request Nov 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
escalate escalate plugin Support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants