Shutting Down a Node in a TiDB Cluster

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

Original topic: tidb 关闭集群中某节点

| username: xiaohetao

[TiDB Usage Environment] Production Environment
[TiDB Version] v4.0.6
If there are multiple KVs on one server and you want to stop all services on this node,

Can you use tiup cluster stop <cluster-name> -N tikv1-ip?
Or do you have to use tiup cluster stop <cluster-name> -N tikv1-ip:20160,tikv1-ip:20161,tikv1-ip:20162 like this?

| username: 小龙虾爱大龙虾 | Original post link

Use tiup cluster stop -N tikv1-ip:20160,tikv1-ip:20161,tikv1-ip:20162

| username: TiDBer_小阿飞 | Original post link

It needs to include the port number.

| username: Fly-bird | Original post link

tiup cluster stop -N ip:port

| username: xiaohetao | Original post link

Thank you all for your replies.

| username: zhanggame1 | Original post link

tiup cluster stop -N tikv1-ip:20160,tikv1-ip:20161,tikv1-ip:20162

| username: andone | Original post link

tiup cluster stop -N ip:port

| username: swino | Original post link

tiup cluster stop -N ip:port

| username: dba远航 | Original post link

This is more appropriate.

| username: oceanzhang | Original post link

ip:port is used to specify a node