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

Proxy primary redirect timeout #408

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Proxy primary redirect timeout #408

merged 1 commit into from
Sep 29, 2023

Conversation

benbjohnson
Copy link
Collaborator

This pull request changes the HTTP proxy so that it will wait until it has primary information before attempting to redirect. It will wait up to 5 seconds by default but this can be changed in the config.

Fixes #406

Config

To change the primary redirect timeout, you can specify it in the proxy section of the config:

proxy:
  addr: ":8080"
  target: "localhost:8081"
  db: "my.db"
  primary-redirect-timeout: "10s"

@benbjohnson benbjohnson added the enhancement New feature or request label Sep 29, 2023
@benbjohnson benbjohnson merged commit df18ff1 into main Sep 29, 2023
16 checks passed
@benbjohnson benbjohnson deleted the proxy-primary-retry branch September 29, 2023 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retry primary lookup in proxy if not found
1 participant