pingcap / tiup

A component manager for TiDB
https://tiup.io
Apache License 2.0
409 stars 304 forks source link

Start multiple TiProxy by TiUP playground with a config file fails #2339

Closed djshow832 closed 6 months ago

djshow832 commented 6 months ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
touch cfg
tiup playground v7.5.0 --tiproxy 2 --tiproxy.config cfg --tiflash 0
  1. What did you expect to see?

The cluster starts successfully

  1. What did you see instead?

Only one TiProxy starts and another reports that the port is occupied. This is because TiUP writes the port to the cfg file and all the TiProxy share the same file. This is different for TiDB. TiUP won't write the TiDB config file.

  1. What version of TiUP are you using (tiup --version)?

v1.14.0

djshow832 commented 6 months ago

/assign @xhebox

ti-chi-bot[bot] commented 6 months ago

@djshow832: GitHub didn't allow me to assign the following users: xhebox.

Note that only pingcap members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. For more information please see the contributor guide

In response to [this](https://github.com/pingcap/tiup/issues/2339#issuecomment-1868683479): >/assign @xhebox Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.