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

*: refactor storeInfo. #712

Merged
merged 3 commits into from
Aug 28, 2017
Merged

*: refactor storeInfo. #712

merged 3 commits into from
Aug 28, 2017

Conversation

disksing
Copy link
Contributor

Fix #634.
Now the outputs are:

  • Normal
{
  "store": {
    "id": 1,
    "address": "127.0.0.1:20160",
    "state": 0,
    "state_name": "Up"
  },
  "status": {
    "capacity": "229 GiB",
    "available": "80 GiB",
    "leader_count": 1,
    "region_count": 1,
    "start_ts": "2017-08-24T10:22:55+08:00",
    "last_heartbeat_ts": "2017-08-24T10:25:06.133247517+08:00",
    "uptime": "2m11.133247517s"
  }
}
  • Down
{
  "store": {
    "id": 1,
    "address": "127.0.0.1:20160",
    "state": 0,
    "state_name": "Down"
  },
  "status": {
    "capacity": "229 GiB",
    "available": "80 GiB",
    "region_count": 1,
    "start_ts": "2017-08-24T10:22:55+08:00",
    "last_heartbeat_ts": "2017-08-24T10:25:16.133257177+08:00",
    "uptime": "2m21.133257177s"
  }
}
  • Offline
{
  "store": {
    "id": 1,
    "address": "127.0.0.1:20160",
    "state": 1,
    "state_name": "Offline"
  },
  "status": {
    "capacity": "229 GiB",
    "available": "80 GiB",
    "region_count": 1,
    "start_ts": "2017-08-24T10:26:28+08:00",
    "last_heartbeat_ts": "2017-08-24T10:26:58.50635968+08:00",
    "uptime": "30.50635968s"
  }
}
  • Down + Offline + Restart PD
{
  "store": {
    "id": 1,
    "address": "127.0.0.1:20160",
    "state": 1,
    "state_name": "Offline"
  },
  "status": {
    "region_count": 1
  }
}

@disksing
Copy link
Contributor Author

Travis CI fails because etcd was too slow and pd was not able to bootstrap. I'm going to just restart it.

@huachaohuang
Copy link
Contributor

Good, LGTM

Copy link
Contributor

@nolouch nolouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@disksing disksing merged commit d092c8f into master Aug 28, 2017
@disksing disksing deleted the disksing/store-status branch August 28, 2017 03:30
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

Successfully merging this pull request may close these issues.

3 participants