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

Unable to call POST methods against the API in multi-server Cronicle cluster #711

Open
dsturgilljr opened this issue Jan 22, 2024 · 1 comment

Comments

@dsturgilljr
Copy link

dsturgilljr commented Jan 22, 2024

I believe this issue is well known, but the documentation is a bit misleading. Yes, most HTTP request libraries have an option to automatically follow redirects BUT only for GET and HEAD methods.

For API calls like update_event and create_event, this is an issue when having the primary eligible servers behind a load balancer. Is the expectation to disable automatic redirects and handle the 302s manually or is there a better way?

@jhuckaby
Copy link
Owner

I did not know most HTTP request libraries only supported redirects on GET/HEAD. That is rather unfortunate.

For Cronicle v2, I have a feature where load balancers can hit a special URI for a health check, and only the current master returns a HTTP 200. All other servers return a HTTP 503. So this way you can have your load balancer group only contain the current master, automatically. This should eliminate the need for a redirect.

V2 is due out later this year (2024).

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

No branches or pull requests

2 participants