Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 如何获取tikv的store id
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?
You can use the pd-ctl tool to view the store IDs corresponding to all stores.
Complete: tiup ctl:v5.2.0 pd store -u http://192.168.2.160:2379
By checking information_schema.TIKV_STORE_STATUS, you can obtain the store id of TiKV.
This topic will be automatically closed 60 days after the last reply. No new replies are allowed.