Is it feasible to mount object storage on TiKV machines for local server backups?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TIKV机器将对象存储挂载在服务器本地备份可行吗

| username: TiDBer_freGslX6

【TiDB Usage Environment】Production Environment
【TiDB Version】4.0.13
【Reproduction Path】
【Encountered Issues: Problem Symptoms and Impact】
【Resource Configuration】
【Attachments: Screenshots/Logs/Monitoring】

| username: TiDBer_freGslX6 | Original post link

Due to special reasons, we can only back up to Tencent Cloud Object Storage now. We plan to mount the object storage on the KV node server for backup. Is this feasible? Are there any risks?

| username: tidb菜鸟一只 | Original post link

Feasible, recommend using this method.

| username: TiDBer_freGslX6 | Original post link

Yes, I saw someone in the forum using the S3 protocol to back up to Tencent Cloud Object Storage. Which method is better, mine or that one?

| username: 大飞哥online | Original post link

Sure. If each KV has storage, then data recovery will involve manual merging of backup data.

| username: zhimadi | Original post link

Sure, I am using Alibaba Cloud OSS.

| username: 大飞哥online | Original post link

It would be best to back it up to a storage, so you don’t have to manually merge it during recovery.

| username: cassblanca | Original post link

Of course, as long as the protocol is compatible.

| username: TiDBer_freGslX6 | Original post link

Each KV is mounted to the same object storage, so the data is merged.

| username: TiDBer_freGslX6 | Original post link

Did you also mount OSS on the TiKV server?

| username: 大飞哥online | Original post link

Then it’s OKK :grinning:

| username: zhimadi | Original post link

Yes, each node needs to be mounted. The node executing tiup also needs to be mounted.

| username: TiDBer_freGslX6 | Original post link

I didn’t expect that the node executing tiup would also need it, but I mounted it while doing the experiment anyway, haha.

| username: zhanggame1 | Original post link

Sure.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.