-
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
WIP: [Reconfigurator] Add new Clickhouse discretionary zones #6392
Changes from 9 commits
0f89ef9
6f51e00
5c5c689
6ee7102
63802cc
d05044a
8430330
1686176
97e546a
efbe428
c0255ab
7379931
8ebc4b6
cb9a9a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1512,6 +1512,19 @@ table! { | |
cockroachdb_fingerprint -> Text, | ||
|
||
cockroachdb_setting_preserve_downgrade -> Nullable<Text>, | ||
|
||
} | ||
} | ||
|
||
table! { | ||
bp_clickhouse_cluster_config (blueprint_id) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We really only want one of these for most blueprints, unless we are adding or removing clickhouse related zones. We should probably make the primary key |
||
blueprint_id -> Uuid, | ||
|
||
generation-> Int8, | ||
max_used_server_id -> Int8, | ||
max_used_keeper_id -> Int8, | ||
cluster_name -> Text, | ||
cluster_secret -> Text, | ||
} | ||
} | ||
|
||
|
@@ -1595,6 +1608,10 @@ table! { | |
disposition -> crate::DbBpZoneDispositionEnum, | ||
external_ip_id -> Nullable<Uuid>, | ||
filesystem_pool -> Nullable<Uuid>, | ||
|
||
clickhouse_keeper_id -> Nullable<Int8>, | ||
clickhouse_server_id -> Nullable<Int8> | ||
|
||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ use nexus_db_model::BpSledOmicronZones; | |
use nexus_db_model::BpSledState; | ||
use nexus_db_model::BpTarget; | ||
use nexus_types::deployment::Blueprint; | ||
use nexus_types::deployment::ClickhouseClusterConfig; | ||
use nexus_types::deployment::BlueprintMetadata; | ||
use nexus_types::deployment::BlueprintPhysicalDisksConfig; | ||
use nexus_types::deployment::BlueprintTarget; | ||
|
@@ -290,6 +291,11 @@ impl DataStore { | |
external_dns_version, | ||
cockroachdb_fingerprint, | ||
cockroachdb_setting_preserve_downgrade, | ||
clickhouse_cluster_generation, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove this, it's in a separate table |
||
clickhouse_max_used_server_id, | ||
clickhouse_max_used_keeeper_id, | ||
clickhouse_cluster_name, | ||
clickhouse_cluster_secret, | ||
time_created, | ||
creator, | ||
comment, | ||
|
@@ -632,6 +638,7 @@ impl DataStore { | |
external_dns_version, | ||
cockroachdb_fingerprint, | ||
cockroachdb_setting_preserve_downgrade, | ||
clickhouse_cluster_config: ClickhouseClusterConfig::new( | ||
time_created, | ||
creator, | ||
comment, | ||
|
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.
remove this, it's alll in a separate table now