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

Lightning support for placement rules #32292

Open
Tracked by #18030
morgo opened this issue Feb 12, 2022 · 1 comment
Open
Tracked by #18030

Lightning support for placement rules #32292

morgo opened this issue Feb 12, 2022 · 1 comment

Comments

@morgo
Copy link
Contributor

morgo commented Feb 12, 2022

Lightning should be able to import a dumpling backup which has placement rules specified.

The default behavior is to ignore the placement rules, but in future we might add an option to import placement rules. This option will not be the default because lightning is a logical tool.

@lcwangchao
Copy link
Collaborator

lcwangchao commented Mar 4, 2022

We will a add new option to the lightning config file:

[lightning]
# "import": create associated placement policies in the target TiDB. If policies with the same name exist, ignore them.
# "ignore":  Ignore all policies in the source files. Default value.
tidb-placement-policy = "ignore" 

The behaviors of Lightning will be:

  • placement-policy = "import"
    • Lightning will create schema with policy configs and associated policies. Ignore If policies already exist.
    • Other policies not associated will be ignored.
  • placement-policy = "ignore" Default.
    • All policy configs and policies in the source files will be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants