Fill in the config.sh
according to the template file (config-template
):
cp config-template config.sh
vim config.sh
Initialize the link between machines:
bash connection_setup.sh
If there is an unmounted local disk, mount it first (please modify the script yourself):
bash ssd_setup.sh
Transfer the scripts to the central node and initialize the machines in the cluster:
bash copy_to_central.sh
source config.sh
ssh ${USER}@${HOST_CENTRAL} "bash central_setup.sh"
The next steps will be done on the central control node.
ssh ${USER}@${HOST_CENTRAL}
source config.sh
Generate a topology file used by tiup
:
bash generate_topology.sh
Check the environment and deploy cluster:
tiup cluster check -u ${USER} topology.yaml
tiup cluster deploy tikv-min v6.2.0 -u ${USER} topology.yaml
tiup cluster start tikv-min --init
The next steps will be done on the ycsb worker node.
ssh ${USER}@${HOST_CENTRAL}
source config.sh
ssh ${USER}@${HOST_YCSB}
Generate config.sh
according to the template (bench/config-template
):
cp bench/config-template bench/config.sh
vim config.sh
Do it:
bash bench/do.sh