Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Instance tags #664

Merged
merged 33 commits into from
Jan 15, 2019
Merged

Instance tags #664

merged 33 commits into from
Jan 15, 2019

Conversation

shlomi-noach
Copy link
Collaborator

Work in progress to add tagging capabilities. This has come up by several use cases.

The user will be able to tag any instance by multiple tags.
Tags will be of tag_name=tag_value nature.

It will be possible to get the list of tags for an instance, list all instance which have a specific tag_name=tag_value or just happen to have tag_name regardless of the value.

It will be possible to set a tag (adds or replaces) or delete a tag.

@shlomi-noach
Copy link
Collaborator Author

@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster January 9, 2019 10:46 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster January 9, 2019 10:50 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster January 9, 2019 10:57 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster January 9, 2019 10:59 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster January 9, 2019 11:00 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster January 9, 2019 11:00 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster January 9, 2019 11:06 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/db-mysql-5df3eba January 9, 2019 11:06 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=concertmaster January 14, 2019 07:07 Inactive
@shlomi-noach shlomi-noach deployed to production/db-mysql-5df3eba January 14, 2019 07:07 Active
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_cluster=conductor January 14, 2019 07:15 Inactive
@shlomi-noach
Copy link
Collaborator Author

@shlomi-noach shlomi-noach merged commit 69f7bda into master Jan 15, 2019
@shlomi-noach shlomi-noach deleted the instance-tag branch January 15, 2019 07:34
@nickdelnano
Copy link
Contributor

nickdelnano commented Jul 8, 2019

hi @shlomi-noach , from my understanding of this PR and interacting with the "tags" CLI, it seems that this information is not integrated into the "orchestrator -c topology" command.

I am potentially interested in submitting a patch to add an option to the topology command in order to output the tags for all instances in the cluster for which the topology is requested.

For example,

orchestrator-client -c topology -alias main -tags
10-64-126-194-uswest1aprod:3306     [0s,ok,5.7.23-log,rw,ROW,>>,P-GTID] role=master, cluster=main
+ 10-64-70-25-uswest1aprod:3306     [0s,ok,5.7.23-log,ro,ROW,>>,P-GTID] role=replica, cluster=main
  + 10-64-101-83-uswest1aprod:3306  [0s,ok,5.7.23-log,ro,ROW,>>,P-GTID] role=replica, cluster=main

If I created this patch, could it be considered for merging into the project?

@shlomi-noach
Copy link
Collaborator Author

Hi @ndelnano,
This makes sense. Ideally it would look like this:

10-64-126-194-uswest1aprod:3306     [0s,ok,5.7.23-log,rw,ROW,>>,P-GTID,role=master,cluster=main]
+ 10-64-70-25-uswest1aprod:3306     [0s,ok,5.7.23-log,ro,ROW,>>,P-GTID,role=replica,cluster=main]
  + 10-64-101-83-uswest1aprod:3306  [0s,ok,5.7.23-log,ro,ROW,>>,P-GTID,role=replica,cluster=main]

We'd also want to make sure it's added to -c topology-tabulated. If you open a PR, I may experiment and modify the output formatting.

Two pro-tips:

  • Use three backtics to format code (see how I formatted your previous comment)
  • Open a new issue as opposed to commenting on a merged PR.

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

Successfully merging this pull request may close these issues.

2 participants