当前位置:Gxlcms > 数据库问题 > TiDB 分布式数据库(二)

TiDB 分布式数据库(二)

时间:2021-07-01 10:21:17 帮助过:10人阅读

http://${host}:${port}/pd/api/v1/${api_name}

其中 port 默认为 2379,各类 api_name 详细信息参见 

https://cdn.rawgit.com/pingcap/docs/master/op-guide/pd-api-v1.html

[root@node1 ~]# curl 192.168.174.134:2379/pd/api/v1/stores
{
  "count": 3,
  "stores": [
    {
      "store": {
        "id": 1,
        "address": "192.168.174.138:20160",
        "state": 0,
        "state_name": "Up"
      },
      "status": {
        "store_id": 1,
        "capacity": "19 GB",
        "available": "17 GB",
        "leader_count": 1,
        "region_count": 1,
        "sending_snap_count": 0,
        "receiving_snap_count": 0,
        "applying_snap_count": 0,
        "is_busy": false,
        "start_ts": "2017-05-13T03:16:51+08:00",
        "last_heartbeat_ts": "2017-05-13T03:23:58.709890548+08:00",
        "uptime": "7m7.709890548s"
      }
    },
    {
      "store": {
        "id": 4,
        "address": "192.168.174.137:20160",
        "state": 0,
        "state_name": "Up"
      },
      "status": {
        "store_id": 4,
        "capacity": "19 GB",
        "available": "16 GB",
        "leader_count": 0,
        "region_count": 1,
        "sending_snap_count": 0,
        "receiving_snap_count": 0,
        "applying_snap_count": 0,
        "is_busy": false,
        "start_ts": "2017-05-12T18:17:02+08:00",
        "last_heartbeat_ts": "2017-05-13T03:24:00.555315502+08:00",
        "uptime": "9h6m58.555315502s"
      }
    },
    {
      "store": {
        "id": 5,
        "address": "192.168.174.136:20160",
        "state": 0,
        "state_name": "Up"
      },
      "status": {
        "store_id": 5,
        "capacity": "16 GB",
        "available": "13 GB",
        "leader_count": 0,
        "region_count": 1,
        "sending_snap_count": 0,
        "receiving_snap_count": 0,
        "applying_snap_count": 0,
        "is_busy": false,
        "start_ts": "2017-05-12T18:17:02+08:00",
        "last_heartbeat_ts": "2017-05-13T03:23:56.955220422+08:00",
        "uptime": "9h6m54.955220422s"
      }
    }
  ]
}
[root@node1 ~]#










本文出自 “Chauncey” 博客,请务必保留此出处http://cqwujiang.blog.51cto.com/10808946/1925169

TiDB 分布式数据库(二)

标签:tidb

人气教程排行