How to Specify Data Directories for Each Component When Deploying a Test Environment with TiUP Playground

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

Original topic: tiup playground部署测试环境,如何指定各个组件数据目录

| username: TiDBer_QYr0vohO

[TiDB Usage Environment] Production Environment / Testing / Poc
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
tiup playground v7.1.0 --db 1 --pd 1 --kv 1
How to specify the installation directory for TiDB, PD, and TiKV, as well as the directory for subsequent data usage
[Resource Configuration] Enter TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachment: Screenshot/Logs/Monitoring]

| username: TiDBer_QYr0vohO | Original post link

Found it, --tag

| username: TiDBer_QYr0vohO | Original post link

The --tag parameter can currently only set the directory name, and this directory is fixed under .tiup/data. Custom directories are not supported.

| username: 源de爸 | Original post link

We use YAML to deploy, even for testing and single-node setups. The configuration items are convenient and intuitive.

| username: zhanggame1 | Original post link

tiup playground is different from real deployment, it is recommended not to use it. Testing with single-node deployment mode is just as convenient, and there are also issues with the official version.

| username: Kamner | Original post link

You can customize the installation directory:
export TIUP_HOME=/tidb/tiup

| username: ShawnYan | Original post link

Just create a link.

| username: TiDBer_QYr0vohO | Original post link

It is indeed a solution.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.