corrupt-mysql

command module
v0.0.0-...-ff59941 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 3 Imported by: 0

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

example

Make MySQL's CPU usage high

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL