Skip to content

[common] Move policy constants to their own module#6340

Merged
andrewjstone merged 2 commits into
mainfrom
policy-constants
Aug 15, 2024
Merged

[common] Move policy constants to their own module#6340
andrewjstone merged 2 commits into
mainfrom
policy-constants

Conversation

@andrewjstone

Copy link
Copy Markdown
Contributor

These constants really don't belong in address.rs as they are only tangentially related to addresses.

Also add policy for replicated clickhouse. This will be used in a follow up PR.

Fixes #6299

These constants really don't belong in `address.rs` as they are only
tangentially related to addresses.

Also add policy for replicated clickhouse. This will be used in a follow
up PR.

Fixes #6299

@davepacheco davepacheco left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this! Just found a few typos -- otherwise it's good.

Comment thread common/src/policy.rs Outdated
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

//! Feet policy related functionality used by both Reconfigurator and RSS.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//! Feet policy related functionality used by both Reconfigurator and RSS.
//! Fleet policy related functionality used by both Reconfigurator and RSS.

// when Nexus provisions Clickhouse.
// TODO(https://github.com/oxidecomputer/omicron/issues/4000): Set to 2 once we enable replicated ClickHouse
// TODO(https://github.com/oxidecomputer/omicron/issues/4000): Use
// omicron_common::policy::CLICKHOUSE_SERVER_REDUNANCY once we enable

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// omicron_common::policy::CLICKHOUSE_SERVER_REDUNANCY once we enable
// omicron_common::policy::CLICKHOUSE_SERVER_REDUNDANCY once we enable

// when Nexus provisions Clickhouse keeper.
// TODO(https://github.com/oxidecomputer/omicron/issues/4000): Set to 3 once we enable replicated ClickHouse
// TODO(https://github.com/oxidecomputer/omicron/issues/4000): Use
// omicron_common::policy::CLICKHOUSE_KEEPER_REDUDNANCY once we enable

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// omicron_common::policy::CLICKHOUSE_KEEPER_REDUDNANCY once we enable
// omicron_common::policy::CLICKHOUSE_KEEPER_REDUNDANCY once we enable

@karencfv

Copy link
Copy Markdown
Contributor

feet policy lol

@andrewjstone

Copy link
Copy Markdown
Contributor Author

feet policy lol

Lol. Just about to conk out for the night and noticed this. Off to dream about the American foot liberties union

@andrewjstone andrewjstone enabled auto-merge (squash) August 15, 2024 16:13
@andrewjstone andrewjstone merged commit 4543057 into main Aug 15, 2024
@andrewjstone andrewjstone deleted the policy-constants branch August 15, 2024 17:25
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.

[Reconfigurator] Add policy for clickhouse replicas

3 participants