tiup icon indicating copy to clipboard operation
tiup copied to clipboard

Store cluster metadata in git repository

Open kolbe opened this issue 4 years ago • 0 comments

Feature Request

Is your feature request related to a problem? Please describe:

When maintaining a cluster, it might be possible to lose some important configuration history or other information if a user accidentally removes files or the tiup management node becomes unavailable.

Describe the feature you'd like:

tiup should store cluster topology metadata and access credentials in a git repository. Each cluster should have its own git repository. If a remote is set for the git repository, tiup could push to the remote for each change made to the cluster.

Why the featue is needed:

Describe alternatives you've considered:

It's possible to implement something similar to this by initializing a git repository for the ~/.tiup/storage/cluster/clusters// directory and creating a systemd path unit to monitor that directory for changes.

Teachability, Documentation, Adoption, Migration Strategy:

kolbe avatar Oct 05 '21 19:10 kolbe