The purpose of this is to automatically setup the percona platform tools and run some test workloads in order to be able to quickly evaluate and demonstrate them.
It can also be very useful for automatic testing of new releases of our docker images and software.
This will setup:
- 2
percona server
servers, withpercona-agent
- 6 containers
mysqld_exporter
for prometheus monitoring of the mysql servers - 2 sysbench containers each running a benchmark on a
percona server
container - 1 prometheus node monitor (for OS Metrics)
- 1 percona platform (based on Daniel's docker container)
Ensure you have docker
and docker-compose
installed. This came automagically when installing Docker Toolbox
for OSX, available here: https://www.docker.com/docker-toolbox.
docker-compose build
docker-compose up -d
It takes a while before the whole environment is up and running, but just try to go to the different interfaces:
- Percona QAN will be listening on
http://192.168.99.100:8000
, where192.168.99.100
is the IP address of the machine running docker containers - Grafana is accessible on
http://192.168.99.100:3000/
, username:password isadmin:admin
. Note that some dashboards use themysqld-
hosts (MySQL Metrics), others thenode-
dashboards (OS Level Metrics). - Consul UI is available at
http://192.168.99.100:8500/ui
(used for service discovery).
Just run:
docker-compose stop
docker-compose rm
- This tool does not yet support stop and start,
percona-platform
actually fails on this