Skip to content

Conversation

@scotwells
Copy link
Contributor

The previous clickhouse deployment was setup to run as a single node cluster preventing us from having a highly available deployment.

The database schema has been adjusted to create a replicated database so that Clickhouse will automatically replicate schema changes and data between replicas.

Important

This schema change is a breaking change so the environments will be re-created.

I've also adjusted the ordering of audit logs to use the timestamp as a secondary sort column so we can maintain strict ordering of audit logs. There's still benefits in maintaining the hourly bucketing so Clickhouse can skip over entire hours of data through indexes. The apiserver has been updated to use the new ordering.

The migration script will now wait for all replicas in the cluster to come up before executing migrations.


Relates to datum-cloud/enhancements#536

The previous clickhouse deployment was setup to run as a single node
cluster preventing us from having a highly available deployment.

The database schema has been adjusted to create a replicated database so
that Clickhouse will automatically replicate schema changes and data
between replicas.

This schema change is a breaking change so the environments will be
re-created.

I've also adjusted the ordering of audit logs to use the timestamp as a
secondary sort column so we can maintain strict ordering of audit logs.
There's still benefits in maintaining the hourly bucketing so Clickhouse
can skip over entire hours of data through indexes. The apiserver has
been updated to use the new ordering.

The migration script will now wait for all replicas in the cluster to
come up before executing migrations.
Need operational visibility into Clickhouse Keeper so we can monitor the
component and understand replication delay between cluster replicas.
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.

2 participants