# Deploying with TiUP Step 3 - Initialize the Cluster Topology File

__*TiDB deployment steps*__
__*TiUP topology file*__

![left](./student-guide/diagram/ClusterTopologyFile_en_001_20220614.png)
-------------------------------------------------------------
Edit the cluster initialization configuration file required by TiUP according to the different cluster topologies.

The cluster initialization configuration file can be used to create a YAML format configuration file on the control machine using the TiUP tool, such as topology.yaml:
tiup cluster template > topology.yaml

Execute vi topology.yaml to view the contents of the configuration file:
global:
  user: "tidb"
  ssh_port:22
  deploy_dir: "/tidb-deploy"
  data_dir: "/tidb-data"
server_configs: {}
pd_servers:
  - host: 10.0.1.4
  - host: 10.0.1.5
  - host: 10.0.1.6
tidb_servers:
  - host: 10.0.1.7
  - host: 10.0.1.8
  - host: 10.0.1.9
tikv_servers:
  - host: 10.0.1.1
  - host: 10.0.1.2
  - host: 10.0.1.3
monitoring_servers:
  - host: 10.0.1.4
grafana_servers:
  - host: 10.0.1.4
alertmanager_servers:
  - host: 10.0.1.4

Note:
Hybrid deployment scenario can also use the recommended topology template generated by tiup cluster template —full > topology.yaml
Cross-room deployment scenario can use the recommended topology template generated by tiup cluster template —multi-dc > topology.yaml.

For details, please refer to: https://docs.pingcap.com/zh/tidb/stable/production-deployment-using-tiup