apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

能否增加配置导入导出的功能,用于升级或多数据中心的apisix之间进行迁移

Open tiger333777 opened this issue 6 years ago • 6 comments

Please answer these questions before submitting your issue.

  • Why do you submit this issue?

  • [ ] Other


Question

  • What do you want to know?

能否增加配置导入导出的功能,用于升级或多数据中心的apisix之间进行迁移

tiger333777 avatar Nov 11 '20 07:11 tiger333777

etcdctl provide snapshot save and snapshot restore, does it meet your requirements?

idbeta avatar Nov 11 '20 07:11 idbeta

cc @membphis

juzhiyuan avatar Nov 11 '20 09:11 juzhiyuan

This is the function we plan to do, and it is very useful for business users.

Do you have any thoughts on this feature?

membphis avatar Nov 18 '20 07:11 membphis

How about add two apis to export and import a config file? The config file saves all related data in etcd encoded. Another thing we need to consider is what to do if there is a conflict when import,do you have any expectation? @membphis @juzhiyuan

fregie avatar May 07 '21 10:05 fregie

LGTM, could you propose this feature?

juzhiyuan avatar May 08 '21 06:05 juzhiyuan

@juzhiyuan Yes, assign to me. Drafts need to be comfirmed:

  1. Conflict,if the resource need to keep the only alrealdy exists. Draft: return an error and not import if conflict by default.And provide a parameter to specify skip conflicting item, override conflicting item, or return an error and not import if conflict.

  2. Compatible,forward compatible and backward compatible. Draft: return an error and not import if there is a incompatible item.And provide two parameters, one is whether force import all compatible items,the another is whether to list all incompatible items.

fregie avatar May 08 '21 07:05 fregie