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

Allow setting cluster Id explicitly #3883

Merged
merged 7 commits into from
Feb 4, 2023
Merged

Conversation

feedmeapples
Copy link
Contributor

@feedmeapples feedmeapples commented Feb 2, 2023

What changed?

Added a config option that allows to explicitly set Cluster ID through config

Why?

allow to temporal CLI that runs in in-memory mode to persist the ID between runs

How did you test it?

manually + in tests with temporalio/cli#96

Potential risks

Is hotfix candidate?

no

@feedmeapples feedmeapples requested a review from a team as a code owner February 2, 2023 00:50
@feedmeapples feedmeapples marked this pull request as draft February 2, 2023 00:50
temporal/fx.go Outdated Show resolved Hide resolved
temporal/fx.go Outdated Show resolved Hide resolved
temporal/fx.go Outdated Show resolved Hide resolved
@@ -104,6 +104,8 @@ type (
InitialFailoverVersion int64 `yaml:"initialFailoverVersion"`
// Address indicate the remote service address(Host:Port). Host can be DNS name.
RPCAddress string `yaml:"rpcAddress"`
// Cluster ID allows to explicitly set the ID of the cluster. Optional.
ClusterID string `yaml:"-"`
Copy link
Contributor

Choose a reason for hiding this comment

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

will it load it from config? if yes, use yaml:"clusterId"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's intentionally ignored #3883 (comment)

This is used by Temporal single binary

@feedmeapples feedmeapples merged commit 3ade263 into master Feb 4, 2023
@feedmeapples feedmeapples deleted the customize-cluster-id branch February 4, 2023 01:31
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.

3 participants