Sentinel Dashboard UI support project's config export and import

x33g5p2x  于 2021-11-29  发布在  Java
关注(0)|答案(2)|浏览(300)

Issue Description

Type: feature request

Describe what happened (or what feature you want)

Sometime there are many environments, and those environments are isolated.

To make user migrates config across different environments more friendly, dashboard maybe consider that support config export and import by UI.

i.e

  1. User can export a project's config to a file by dashboard UI
  2. User can import a project's config from a file by dashboard UI

Describe what you expected to happen

Two button add to UI, like picture

User can import or export project's config by those buttons.

Tell us your environment

OS: Win 10.
Jdk: 1.8

Anything else we need to know?

yfjy0ee7

yfjy0ee71#

How about design like follow?
@sczyh30
@cdfive

Design

config synchronize

Every time dashboard export config to a .zip file, all config or part config in it.

When someone want to synchronize config from dashboard i to dashboard j

1. export config to a .zip file from dashboard i
graph LR
  dashboard_i --> |export|sentinel_config_export_2021_0314_08_00_42.zip
2. import config from a .zip file to dashboard j
graph LR
  sentinel_config_export_2021_0314_08_00_42.zip --> |import|dashboard_j

.zip structure

Like nacos alibaba/nacos#1222

The .zip file's structure like follow

graph LR
  sentinel_config_export_2021_0314_08_00_42.zip --> |one-to-one|flags.properties
  sentinel_config_export_2021_0314_08_00_42.zip --> |one-to-multiple|project.name.x
  project.name.x --> |one-to-one|AuthorityRule.json
  project.name.x --> |one-to-one|SystemRule.json
  project.name.x --> |one-to-one|DegradeRule.json
  project.name.x --> |one-to-one|ParamFlowRule.json
  project.name.x --> |one-to-one|FlowRule.json

xxxinxxx.json is determined by class name

flags.properties saves the information like version = xxx to make api more compatible with old version

knpiaxh1

knpiaxh12#

Please assign to me.

相关问题