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 alt_host for graceful failover to our secondary clickhouse node #2407

Merged
merged 1 commit into from
Nov 20, 2020

Conversation

fuziontech
Copy link
Member

Changes

This is a simple backwards compatible update that will allow us to either have a CLICKHOUSE_URL be a single node or multiple comma delimited nodes.

If it is a , delimited list then if the clickhouse driver is unable to connect to the first node it will sequentially try all of the hosts listed in the alternate list which is composed of the nodes listed after the first hostname in the CLICKHOUSE_URL list.

This enables us to do live failover drills of our clickhouse nodes as well as taking the primary node down for maintenace.

@timgl timgl temporarily deployed to posthog-load-balance-6vpke821h November 17, 2020 04:32 Inactive
@fuziontech fuziontech merged commit 751b47c into master Nov 20, 2020
@fuziontech fuziontech deleted the load_balance branch November 20, 2020 05:18
fuziontech added a commit that referenced this pull request Nov 20, 2020
fuziontech added a commit that referenced this pull request Nov 20, 2020
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.

3 participants