tiup icon indicating copy to clipboard operation
tiup copied to clipboard

Can we introduce a suite concept for TiUP playground

Open lonng opened this issue 2 years ago • 1 comments

Feature Request

Is your feature request related to a problem? Please describe:

Currently, the TiUP playground runs a full cluster with TiDB/TiKV/TiFlash but without CDC. Can we introduce a suite concept for TiUP playground component?

Describe the feature you'd like:

$ tiup playground suite add kv --tiflash 0
$ tiup playground suite add cdc --tiflash 0 --ticdc 1
$ tiup playground suite add htap --tiflash 2 --kv 2
$ tiup playground suite list
suite    args
-----    ----
kv       --tiflash 0
cdc      --tiflash 0 --ticdc 1
httap    --tiflash 2 --kv 2
$ tiup playground --suite kv

Why the featue is needed:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

lonng avatar Jun 15 '22 17:06 lonng

Actually, we do have a --mode argument does exactly what you described. See the populateOpt() function in components/playground/main.go.

AstroProfundis avatar Jun 16 '22 07:06 AstroProfundis