Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 746 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 746 Bytes

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

example

Make MySQL's CPU usage high

./corrupt-mysql hcpu -H10.186.62.63 -P25690 -uuniverse_udb -p123