SLV Install - TiDB
SLV Install - TiDB

Waarom TiDB (MySQL Cluster)?
TiDB is een horizontaal schaalbare, cloud-native HTAP-database die het MySQL-protocol spreekt. Veel managed databaseservices rekenen per lees- en schrijfactie af, wat voor latency-kritieke Solana-workloads al snel onbetaalbaar wordt. Met
slv install kun je je eigen single-node TiDB op één host opzetten, de rate limits van providers omzeilen en de doorvoer hoog houden zonder dat de rekening onverwacht uit de hand loopt.In het kort
- TiDB: https://www.pingcap.com/tidb/
- Een MySQL-compatibel netwerkprotocol plus automatische sharding, zodat je vertrouwde clients blijft gebruiken en tegelijk horizontaal kunt opschalen.
- Met het ingebouwde TiUP-beheer en TiDB Dashboard heb je direct inzicht in de gezondheid van je cluster.
Start de installer
Geef de hosts op waarop het cluster moet draaien en kies daarna TiDB in de lijst met componenten.
bash
$ slv install -i 1.1.1.1,
🚀 Installing software components...
? Select Software Component to Install (Redis)
Redis
❯ TiDB (MySQL Cluster)
Grafana
Prometheus
Node Exporter
Kafka Cluster$ slv install -i 1.1.1.1,
🚀 Installing software components...
? Select Software Component to Install (Redis)
Redis
❯ TiDB (MySQL Cluster)
Grafana
Prometheus
Node Exporter
Kafka ClusterOpmerking: vervang1.1.1.1door het IP-adres van je eigen server.
Bekijk de details
Voordat Ansible start, toont
slv het playbook-pad en de inventory, zodat je de doelhosts van het cluster nog eens kunt controleren. De CLI wijst je er ook op dat het inrichten van TiDB, afhankelijk van de hardware, enkele minuten kan duren.bash
🚀 Installing software components...
? Select Software Component to Install (Redis) › TiDB (MySQL Cluster)
✅ You selected: TiDB (MySQL Cluster)
📋 Installation Details:
Software: TiDB (MySQL Cluster)
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-tidb.yml
⚠️ a few minutes to 10 minutes may be required for TiDB installation depending on your server performance.
? Do you want to proceed with the installation? (y/N) › 🚀 Installing software components...
? Select Software Component to Install (Redis) › TiDB (MySQL Cluster)
✅ You selected: TiDB (MySQL Cluster)
📋 Installation Details:
Software: TiDB (MySQL Cluster)
Inventory: 1.1.1.1,
Playbook: /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-tidb.yml
⚠️ a few minutes to 10 minutes may be required for TiDB installation depending on your server performance.
? Do you want to proceed with the installation? (y/N) › Opnieuw uitvoeren verwijdert de bestaande TiDB
Standaard stopt en vernietigt dit playbook een bestaand TiDB-cluster en verwijdert het de bijbehorende datamappen voordat het TiDB opnieuw installeert. Voer hetzelfde commando niet opnieuw uit op een host waarop TiDB is geïnstalleerd.
Volg de uitvoering door Ansible
Na je bevestiging draagt
slv de uitvoering over aan Ansible, dat op elke host de TiDB-componenten en ondersteunende services opbouwt.bash
🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-tidb.yml
PLAY [Install and configure TiDB cluster] ************************************************************
TASK [Gathering Facts] *******************************************************************************🚀 Running ansible: ansible-playbook -i 1.1.1.1, -u solv /Users/fumi/.slv/template/0.9.800/ansible/cmn/software/install-tidb.yml
PLAY [Install and configure TiDB cluster] ************************************************************
TASK [Gathering Facts] *******************************************************************************Controleer de endpoints
Zodra het inrichten klaar is, toont de CLI de verbindingsgegevens, zodat je TiDB meteen aan je apps kunt koppelen en kunt controleren of het dashboard bereikbaar is.
bash
✅ Installation completed successfully!
🌐 Access Information:
TiDB Endpoint: 1.1.1.1:4000 (MySQL Protocol)
Dashboard http://1.1.1.1:7301/dashboard/#/signin (HTTP Protocol)
🔑 Default credentials
Username: root
Password: <empty>✅ Installation completed successfully!
🌐 Access Information:
TiDB Endpoint: 1.1.1.1:4000 (MySQL Protocol)
Dashboard http://1.1.1.1:7301/dashboard/#/signin (HTTP Protocol)
🔑 Default credentials
Username: root
Password: <empty>Dashboard
Log in op TiDB Dashboard via
http://1.1.1.1:7301/dashboard/#/signin met de standaardinloggegevens hierboven. Daar kun je de belasting van het cluster volgen, SQL-statements inspecteren en de gezondheid van de componenten controleren.