Minimum Topology File for Deploying v7.5 with TiUP

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

Original topic: tiup 部署v7.5时最小拓扑文件

| username: TiDBer_微风轻吟

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version] v7.5.1
[Reproduction Path]
[Encountered Issues: Problem Phenomenon and Impact]
[Resource Configuration] Enter TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]
There are a few questions about the topology file:

  1. Is this minimal topology file configuration sufficient, or are there other parameters needed? Does anyone have a reference?
  2. Do the three configured servers need any prior setup? It seems like the documentation I read suggests that configuring the topology file is enough to start using it, but shouldn’t TiKV be downloaded first? If the servers have nothing on them, they probably won’t connect, right? :sob: Deploy and Maintain a TiDB Cluster Using TiUP | PingCAP Documentation Center Here is the documentation link.
| username: TiDBer_QYr0vohO | Original post link

No need to download, it will be downloaded during deployment.

| username: zhanggame1 | Original post link

This will work. If it can connect to the internet, it will automatically download the files during installation. If it cannot connect to the internet, offline deployment will be required.

| username: tidb菜鸟一只 | Original post link

  1. You can reduce the number of tidb_servers by one. If there are only 3 machines, don’t use TiFlash. If you need TiFlash, it must be deployed on a separate machine.
  2. If you can connect to the internet, you don’t need to do anything… it will download the images by itself. If you can’t connect to the internet, you need to download the images yourself for offline installation.
| username: TiDBer_微风轻吟 | Original post link

Okay, thank you. I have one more question: if these machines restart simultaneously, do I need to configure enable separately for each machine?

| username: zhanggame1 | Original post link

No, you don’t need to configure anything.

| username: TiDBer_微风轻吟 | Original post link

Boss, does this mean it will automatically restart, and this setting is already available in TiDB, right?

| username: zhaokede | Original post link

Is this for production environment deployment or test environment deployment?
You can have one less tidb_server; two are enough for high availability. For tiflash, consider whether you need three based on actual requirements.

| username: TiDBer_微风轻吟 | Original post link

Production environment expert

| username: zhanggame1 | Original post link

All components are self-starting, you don’t need to configure anything.

| username: tidb菜鸟一只 | Original post link

No need, all components are automatically started.

| username: DBAER | Original post link

If you’re playing by yourself, you can also use the playground. It has the same architecture as yours, both being single-node.

| username: TiDBer_微风轻吟 | Original post link

Uh, aren’t these three servers? Can this still be considered a single node? :sob:

| username: zhaokede | Original post link

There are only 6 servers in total;
High availability is basically tidb 2, pd 3, tikv 3, all on separate servers.

| username: 托马斯滑板鞋 | Original post link

In the production environment with 3 TiDB, 3 PD, and 3 TiKV, if there is a significant increase in AP business later, you can add a high-CPU machine to deploy TiFlash separately (or if the load on your three machines is very low, you can have 3 TiDB, 3 PD, 3 TiKV, and 3 TiFlash).

| username: wangkk2024 | Original post link

Awesome :+1:t2::+1:t2::+1:t2::+1:t2::+1:t2::+1:t2::+1:t2::+1:t2::+1:t2::+1:t2::+1:t2:

| username: dba远航 | Original post link

When the network is connected, it will download during deployment.

| username: 呢莫不爱吃鱼 | Original post link

It will automatically download when there is a network connection. You don’t need to worry about it.

| username: zhang_2023 | Original post link

If you have internet access, just install it directly.

| username: yulei7633 | Original post link

It is also possible to deploy on a single machine using different ports. Using tiup is quite convenient for one-click deployment.