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

feat: add '--store-key-prefix' to support multiple meta instances can use the same etcd backend #2988

Merged
merged 2 commits into from
Dec 25, 2023

Conversation

zyy17
Copy link
Collaborator

@zyy17 zyy17 commented Dec 25, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

When deploying multiple clusters, it's more convenient and cost-effective to re-use the same etcd cluster.

In this PR, I added --store-key-prefix which is specified by the admin in the metasrv to support that multiple metasrv instances can use the same etcd cluster without key confliction.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@zyy17 zyy17 requested review from waynexia, killme2008, sunng87, fengjiachun and fengys1996 and removed request for waynexia December 25, 2023 01:39
@zyy17 zyy17 force-pushed the feat/add-store-key-prefix branch from a0a1844 to a7741aa Compare December 25, 2023 01:48
Copy link

codecov bot commented Dec 25, 2023

Codecov Report

Attention: 63 lines in your changes are missing coverage. Please review.

Comparison is base (06fd7fd) 85.87% compared to head (60f55d8) 85.28%.
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2988      +/-   ##
===========================================
- Coverage    85.87%   85.28%   -0.60%     
===========================================
  Files          780      780              
  Lines       126184   126248      +64     
===========================================
- Hits        108356   107666     -690     
- Misses       17828    18582     +754     

Copy link
Collaborator

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@fengys1996 fengys1996 left a comment

Choose a reason for hiding this comment

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

Rest LGTM

@zyy17 zyy17 force-pushed the feat/add-store-key-prefix branch from a7741aa to 5f0d5cf Compare December 25, 2023 07:01
@fengys1996 fengys1996 enabled auto-merge December 25, 2023 09:31
@fengys1996 fengys1996 added this pull request to the merge queue Dec 25, 2023
Merged via the queue into GreptimeTeam:develop with commit 0d42651 Dec 25, 2023
13 checks passed
@killme2008
Copy link
Contributor

Question: it this parameter only be passed by the command line arg? Can the users configure it in metasrv.toml? @zyy17 @fengjiachun

@fengjiachun
Copy link
Collaborator

Oh, it seems that it cannot be configured through the toml file, I think we need a way with toml. @zyy17

@zyy17 zyy17 deleted the feat/add-store-key-prefix branch December 25, 2023 12:42
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.

4 participants