-
Notifications
You must be signed in to change notification settings - Fork 40
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
[reconfigurator] Retrieve keeper cluster config information #6606
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
let path = parent_dir.join(format!("{prefix}-oximeter-clickward-test")); | ||
std::fs::create_dir(&path)?; | ||
|
||
// We use the default ports in `test_schemas_disjoint` and must use a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: We should probably indicate that there are now multiple tests here using clickward and we need to ensure they all use distinct ports.
/// Host of the keeper server | ||
pub host: ClickhouseHost, | ||
/// Keeper server raft port | ||
pub raft_port: u16, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep this and other comments to 80 char lines please?
Overview
This commit implements a new clickhouse-admin endpoint to retrieve and parse information from the ClickHouse virtual node
/keeper/config
which contains the last committed cluster configuration.Purpose
The main purpose of retrieving this information is to have the ability to populate the inventory's
raft_config
inClickhouseKeeperClusterMembership
.omicron/nexus/types/src/inventory.rs
Lines 499 to 503 in 453311a
In a follow up PR an endpoint that specifically retrieves all information to populate
ClickhouseKeeperClusterMembership
. This will be done by making several calls to theclickhouse keeper-client
and using the parsing function here to populateraft_config
.The endpoint itself will be useful to retrieve information for debugging.
Manual testing
Related: #5999