Skip to content

Conversation

@jolynch
Copy link
Collaborator

@jolynch jolynch commented Oct 3, 2015

This allows operators to declare that particular backends are backups, should have different failure modes (fall/rise), healthcheck rates, etc ... We need to add support to nerve to be able to pass these through, but this should help with #100.

If you want restarts to be forced when the state changes, you must use
the state file.

If you want restarts to be forced when the state changes, you must use
the state file.
@jolynch jolynch force-pushed the custom_server_options branch from 7731400 to c05817a Compare October 4, 2015 01:51
@Jaykah Jaykah mentioned this pull request Oct 6, 2015
@Jaykah
Copy link
Contributor

Jaykah commented Oct 6, 2015

That was fast, thanks! Was just about to address this.

Have tested this and can confirm that it is working as expected with all of the options I need.

Also, worth noting that if someone wants to do http checks on custom ports, they will have to add - "option httpchk /" to haproxy section, in addition to haproxy_server_options: "check port 1234"

@jnb
Copy link
Collaborator

jnb commented Oct 6, 2015

👍

I like using the state file instead of querying haproxy. In the future I think it might be worth abstracting this component out some more.

jolynch added a commit that referenced this pull request Oct 6, 2015
Allow arbitrary haproxy_server_options to be supplied to HAProxy.
@jolynch jolynch merged commit 98e79a9 into master Oct 6, 2015
@Jaykah
Copy link
Contributor

Jaykah commented Nov 24, 2015

Just tested airbnb/nerve#75 and wanted to follow up on this pull request - for some reason, when Synapse is getting data from Zookeeper that includes haproxy_server_options it does not use them, generating a Haproxy config without those options.

@jolynch
Copy link
Collaborator Author

jolynch commented Nov 25, 2015

Did you enable the state file?

@Jaykah
Copy link
Contributor

Jaykah commented Nov 25, 2015

@jolynch No, state cache is not enabled.

@jolynch
Copy link
Collaborator Author

jolynch commented Nov 25, 2015

@Jaykah Heh I forgot to merge #144 . I've merged it now and can start testing on our infra next week (after thanksgiving).

Remember to enable the state_file_path from https://github.com/airbnb/synapse#configuring-haproxy so that when the haproxy server options change synapse will restart haproxy.

@panchr panchr deleted the custom_server_options branch March 11, 2020 22:08
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.

4 participants