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

Add the backup and restore API for metasrv #5085

Open
zyy17 opened this issue Dec 3, 2024 · 3 comments
Open

Add the backup and restore API for metasrv #5085

zyy17 opened this issue Dec 3, 2024 · 3 comments
Labels
C-enhancement Category Enhancements good first issue Good for newcomers

Comments

@zyy17
Copy link
Collaborator

zyy17 commented Dec 3, 2024

What type of enhancement is this?

Refactor

What does the enhancement do?

Background

The metadata that metasrv manages is vital for the whole cluster management. Like other data, we also need to add the backup and restore API for metasrv:

  1. Add the abstraction for metadata backup and restore: Although we can backup and restore metadata for backend storage of metasrv, it's not the best operation practice. It should be better to handle in the metasrv;
  2. For disaster recovery: If we back up the metadata period, it's easy to recover from a disaster. Actually, we always back up the etcd data scheduled;
  3. Easy to troubleshoot: It will be easy to dump the raw metadata to debug the problem;

Implementation

We can add backup and restore API in metasrv admin API.

Implementation challenges

No response

@zyy17 zyy17 added C-enhancement Category Enhancements good first issue Good for newcomers labels Dec 3, 2024
@ozewr
Copy link
Contributor

ozewr commented Dec 13, 2024

Hello, I want to give this a try. Could you tell me which part of the code I should read, or provide some other relevant information?

@zyy17
Copy link
Collaborator Author

zyy17 commented Dec 13, 2024

Hello, I want to give this a try. Could you tell me which part of the code I should read, or provide some other relevant information?

👍 Maybe @fengjiachun and @WenyXu can give you some tips.

@WenyXu
Copy link
Member

WenyXu commented Dec 13, 2024

Hi @ozewr, thank you for your interest in this good first issue! To get started, you can take a look at this file, which provides some context on how metadata is structured in our system.

The first task involves dumping and restoring the metadata. Additionally, we aim to design a format to store the exported metadata, ensuring its compatibility and flexibility for future use.

Let us know if you have any questions or need further guidance. We're here to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category Enhancements good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants