-
Notifications
You must be signed in to change notification settings - Fork 333
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
Comments
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. |
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! |
I want to use the bincode crate so that I can easily serialize metadata into binary data. However, I couldn't find it in the Cargo.toml. Can I import it ? |
I'm trying to accomplish this, but I noticed that the Admin HTTP implementation seems quite simple. It doesn't appear to support receiving a binary stream, which makes me unsure how to extract data from a backup binary file during the restore process. Does this require an extension? @WenyXu @zyy17 #[async_trait::async_trait]
pub trait HttpHandler: Send + Sync {
async fn handle(
&self,
path: &str,
method: http::Method,
params: &HashMap<String, String>,
) -> crate::Result<http::Response<String>>;
} |
We can use the CLI to create a |
You mean not using APIs during backup and restore, directly connecting via CLI instead? |
Yes. But adding |
If we are going to use APIs, I think we should extend the current HTTP implementation of the Admin. If we are using the CLI, would it require creating a new project? |
After careful consideration, I think this issue is not a reasonable request for the following reasons(actually, my initial requirement might have just needed a tool to dump metadata, which led to this issue):
Therefore, I have decided to close this issue. Thank you all for the discussion. |
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:
Implementation
We can add
backup
andrestore
API in metasrv admin API.Implementation challenges
No response
The text was updated successfully, but these errors were encountered: