modulepackage
0.0.0-20241121030104-ff59941716e4
Repository: https://github.com/bo-er/corrupt-mysql.git
Documentation: pkg.go.dev
# README
corrupt-mysql
Corrupting MySQL and testing how the monitoring system reacts.
how to build
for linux user
CGO_ENABLED=0 GOOS=linux go build -o corrupt_mysql .
Usages
Create a big ddl
./corrupt-mysql bigddl -H10.186.62.63 -P25690 -uuniverse_udb -p123
Create a deadlock
./corrupt-mysql deadlock -H10.186.62.63 -P25690 -uuniverse_udb -p123
Create a slow query log
./corrupt-mysql slowlog -H10.186.62.63 -P25690 -uuniverse_udb -p123
Create big transactions
./corrupt-mysql bt -H10.186.62.63 -P25690 -uuniverse_udb -p123 100MB
Make MySQL's CPU usage high
./corrupt-mysql hcpu -H10.186.62.63 -P25690 -uuniverse_udb -p123