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

Update timeout in the read replica haproxy configuration #1397

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

frankhereford
Copy link
Member

@frankhereford frankhereford commented Mar 14, 2024

Associated issues

This PR aims to close both cityofaustin/atd-data-tech#14987 and cityofaustin/atd-data-tech#16226.

Clarification 🎗️

I had stated that I had not yet pushed up and merged this configuration, but I had. I just didn't remember doing it. It's been in the toolbox all along, and this PR is an update to that configuration.

Testing

This is deployed in production already.

  • If you can use the read replica for VZ, then this is working.
  • Additionally, you can test to see if you don't have your connection dropped until 10 minutes of being idle.

Ship list

  • Code reviewed
  • Product manager approved

@frankhereford frankhereford self-assigned this Mar 14, 2024
@frankhereford frankhereford changed the title Bring the read replica HAProxy configuration into the VZ toolbox Update timeout in the read replica haproxy configuration Mar 14, 2024
Copy link
Contributor

@mddilley mddilley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I found this StackExchange thread that helped me understand the config more if anyone is interested. 10 minutes sounds good because I saw some posts that suggest starting at 5. 🚢 🙌

@@ -5,8 +5,8 @@ defaults
log global
mode tcp
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
timeout client 600000ms
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think that these can be represented in minutes if we wanted. Not really a big deal - i was just curious about it myself.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such a good call! Thank you - this is much more readable. a801f9a

Copy link
Contributor

@roseeichelmann roseeichelmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks frank! this would happen to me sometimes but it just never bothered me too much, nice to have it fixed though!

Copy link
Member

@johnclary johnclary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! 🚢

@frankhereford frankhereford merged commit 30e42ec into master Mar 20, 2024
8 checks passed
@frankhereford frankhereford deleted the read-replica-proxy branch March 20, 2024 18:20
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.

5 participants