fruitful playground - tikv-slim mode #1269
Labels
category/usability
Categorizes issue or PR as a usability enhancement.
type/feature-request
Categorizes issue as related to a new feature.
Milestone
Feature Request
Feature Description
So far,
tiup playground
by default create a tidb-fullstack cluster with 1 tidb + 1 tikv + 1 pd + 1 tiflash deployment. It is good for tidb audience, but not great for tikv-only audience, who just wants tikv + pd.I'd like to introduce a tikv quickstart guide and recommend tiup as the defaulut, but it is an understanding burden for new user with current tiup he must set
--db 0 --tiflash 0
and likely asks "what db / tiflash is".Thus I propose we introduce a tikv-slim mode for playground which builds on the top of instance settings and provides fruitful feature for tikv-only audience, with which the experience becomes
... and it starts 1 tikv + 1 pd only.
Rough Technical Design
The interface above leads to a minimal change set of code. Generally specking tiup currently hardcode the default option as below.
tiup/components/playground/main.go
Lines 79 to 97 in fa0a7ce
We can introduce a new config named
mode
(consider it!) which has options "tidb-fullstack"(default), and "tikv-slim".tidb-fullatsack is the default and acts as current, while tikv-slim will populate the default config with "tikv.Num = 1" and "pd.Num = 1" only, without setting up tidb & tiflash. Other configs will be respected later one by one.
The text was updated successfully, but these errors were encountered: