How to Obtain the Store ID of TiKV

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 如何获取tikv的store id

| username: Hacker007

Boss, I need to restart a Pending Offline TiKV node. Should I use the command curl -X POST http://192.168.2.160/pd/api/v1/store/{store_id}/state?state=Up? How do I get this store_id?

| username: HACK | Original post link

You can use the pd-ctl tool to view the store IDs corresponding to all stores.

| username: Hacker007 | Original post link

Complete: tiup ctl:v5.2.0 pd store -u http://192.168.2.160:2379

| username: Raymond | Original post link

By checking information_schema.TIKV_STORE_STATUS, you can obtain the store id of TiKV.

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.