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

Add dropping syn packets when config file was updated to avoid down time #32

Merged
merged 1 commit into from
Oct 18, 2016

Conversation

maxkarelov
Copy link
Contributor

I had rewrited the script accordingly to https://engineeringblog.yelp.com/2015/04/true-zero-downtime-haproxy-reloads.html article to archive zero downtime when haproxy config changes.

Copy link
Member

@ernestas-poskus ernestas-poskus left a comment

Choose a reason for hiding this comment

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

Looks good to me, only few changes required

@@ -0,0 +1,74 @@
#!/bin/bash
Copy link
Member

@ernestas-poskus ernestas-poskus Oct 15, 2016

Choose a reason for hiding this comment

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

move from files/haproxy_reload.sh to templates/haproxy_reload.sh.j2



function api_response {
curl -skL http://127.0.0.1:8080/v2/tasks -H "Accept: text/plain"
Copy link
Member

Choose a reason for hiding this comment

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

make 8080 port configurable, playbook has marathon_port variable

@maxkarelov
Copy link
Contributor Author

updated

@ernestas-poskus
Copy link
Member

Thank you for contribution

@ernestas-poskus ernestas-poskus merged commit 54d42ed into AnsibleShipyard:master Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants