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

Init timeseries database on connection acquisition #6878

Closed
wants to merge 4 commits into from

Conversation

plotnick
Copy link
Contributor

Depends on #6745, fixes #6826 on the client side. The current implementation is a quick & dirty prototype, and copies many pieces of impl Client; if we decide to pursue this (client-side) strategy, we can refactor more aggressively.

Base automatically changed from oximeter-qorb to main October 16, 2024 20:12
@plotnick
Copy link
Contributor Author

Closed in favor of the server-side approach in #6903, based on feedback in #6826 and discussion in the Update Sync of 2024-10-15.

@plotnick plotnick closed this Oct 18, 2024
plotnick added a commit that referenced this pull request Nov 19, 2024
Depends on #6894, replaces #6878, fixes #6826 on the server side.

Adds a new Dropshot server, `clickhouse-admin-single`, analogous to
`clickhouse-admin-keeper` and `clickhouse-admin-server` (which were
split off from `clickhouse-admin` in #6837). Its sole purpose is to
initialize the single-node ClickHouse database with the current Oximeter
schema. We use a single in-memory lock (a `tokio::sync::Mutex`) to
serialize initialization requests. Multi-node ClickHouse clusters will
need something analogous as a follow-up.

---------

Co-authored-by: Andrew J. Stone <[email protected]>
Co-authored-by: Karen Cárcamo <[email protected]>
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.

Need to initialize a fresh ClickHouse database without restarting Oximeter
2 participants