-
Notifications
You must be signed in to change notification settings - Fork 251
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
Reload if HAProxy config has been changed #150
Conversation
I'm a little confused by the purpose of this patch. Synapse already reloads haproxy if it can't make the stats socket update. What is your concern with that approach? |
@che can you give more context? |
@jolynch you are right, but this is a fix for the situation when we need have only active servers in HAProxy config. If server is down - don't show this server in any case (for DOWN statuses). Thanx! |
@che the stats socket option should allow you to automatically down servers (put them in maint). Try setting |
@che I think that #94 has to do with a bad interaction in Docker, I don't believe that this change would fix it. The current master branch of Synapse can automatically MAINT backends (bring them down). If you want to reload every time a server goes down instead of MAINTing then you set |
I guess to get to the root of this, what is the problem you are observing that you are trying to fix? |
You are right, NET_ADMIN and qdisk solved our problems on Docker side. |
We have in config: do_writes: true, do_reloads: true, do_socket: true |
@che Are there any warnings or errors on the command line? My understanding of the logic is that if it can't talk over the stats socket then it will initiate a reload, so I'm slightly puzzled by this situation. Are you running this inside a docker container? If so what are you using as an init substitute? |
@che bump |
I'm going to close this because I don't think it's needed. Please re-open with more context if I'm wrong about that :-) |
No description provided.