How to Keep the Cluster Running in the Background with tiup playground

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

Original topic: tiup playground 运行的集群怎么常驻后台

| username: TiDBer_Xys4hD00

[TiDB Usage Environment] /Test
[TiDB Version]
[Reproduction Path] None
[Encountered Problem: Problem Phenomenon and Impact] How to keep the cluster running in the background with tiup playground
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]

| username: TiDBer_QYr0vohO | Original post link

Try nohup

| username: 啦啦啦啦啦 | Original post link

Actually, if you want to use it continuously, it’s better to directly deploy a set with tiup cluster. It can be used on a single machine as well.

| username: DBAER | Original post link

Put it in screen :slight_smile:

| username: TiDBer_Xys4hD00 | Original post link

Yes, I used nohup.

| username: Jolyne | Original post link

It would be better to set all nodes to 1 and configure the simplest topology. Deploying with tiup cluster is more convenient than using the playground.

| username: zhaokede | Original post link

Execute command in the background

| username: zhanggame1 | Original post link

There’s absolutely no need to use tiup playground; deploying in single-machine mode is even simpler.

| username: TiDBer_RjzUpGDL | Original post link

Use nohup

| username: 柴米油酱 | Original post link

The playground is generally used for debugging. If the development resources are insufficient, it is recommended to use a single-node cluster.

| username: yytest | Original post link

  • Install screen (if not already installed).
  • Open a new screen session:
screen -S tidb_playground

Run tiup playground in the screen session:

tiup playground --version=vX.Y.Z
  • If you want to keep tiup playground running and detach from the screen session, press Ctrl + A then D (i.e., hold Ctrl and A, release them, and then press D).
  • To reconnect to the screen session, use the following command:
screen -r tidb_playground
| username: Kongdom | Original post link

Are you talking about persistence?