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

exposing the tidb cluster states/changes as k8s events to users #1375

Closed
2 of 7 tasks
weekface opened this issue Dec 19, 2019 · 1 comment
Closed
2 of 7 tasks

exposing the tidb cluster states/changes as k8s events to users #1375

weekface opened this issue Dec 19, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers lifecycle/stale

Comments

@weekface
Copy link
Contributor

weekface commented Dec 19, 2019

Many users report that they cannot know what the tidb-operator is doing when failover occurs, which confuses them.

We need to expose the internal state of the cluster to users with the help of Events or ContainerConditions, or anything else, for example:

$ kubectl describe tc <tc-name>
...
Events:
  Type     Reason            Age                 From            Message
  ----     ------            ----                ----            -------
  Warning  StoreOffline  26s (x25 over 45s)  tidb-controler  store-1 is offline 2 minitues
  Warning  StoreDown     17s (x25 over 41s)  tidb-controler  store-1 is down 30 minutes
  Warning  Failover      17s (x25 over 41s)  tidb-controler  store-1 failover occurs now
  ...
@weekface weekface added the enhancement New feature or request label Dec 19, 2019
@weekface weekface self-assigned this Dec 31, 2019
@weekface weekface changed the title failover: exposing the internal state of the cluster to users when describing pod failover: exposing the internal state of the cluster to users when describing tidbcluster Jan 3, 2020
@weekface weekface changed the title failover: exposing the internal state of the cluster to users when describing tidbcluster exposing the tidb cluster states/changes as k8s events to users Jan 6, 2020
@weekface weekface added the good first issue Good for newcomers label Jan 6, 2020
@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers lifecycle/stale
Projects
None yet
Development

No branches or pull requests

1 participant