RELEEM HELP CENTER
Documentation
Installation and Usage
Installation
Releem Agent Installation
Use this instruction to install Releem Agent on every database server. Releem Agent will automatically collect metrics and recommend configuration.

1. Run our easy one-step install:
RELEEM_API_KEY=[KEY] bash -c "$(curl -L https://releem.s3.amazonaws.com/install.sh)" 
2. Create ~/.my.cnf file with the following content:
[client] 
user=root
password=[your password]
3. Run Releem Agent manually to send first metrics from your server:
After first execution you can see current MySQL Performance Score of this server on Metrics page.
/bin/bash /opt/releem/mysqlconfigurer.sh -k [KEY]
4. Add Releem Agent in crontab to get better recommendations:
10 */12 * * * PATH=/bin:/usb/bin:/usr/sbin /bin/bash /opt/releem/mysqlconfigurer.sh -k 
[KEY]
After this step Releem periodically will collect metrics and recommend performance-optimized configuration taillored for this server.

Use this instruction to install Releem Agent on every database server. Releem Agent will automatically collect metrics and recommend configuration.
How to apply the Recommended Configuration
Steps to apply the Recommended configuration manually
Releem Agent automatically stores Recommended Configuration at
/tmp/.mysqlconfigurer/z_aiops_mysql.cnf

To apply Recommended Configuration perform the following steps:
1. Copy Recommended Configuration to MySQL configuration folder:
cp /tmp/.mysqlconfigurer/z_aiops_mysql.cnf /etc/mysql/conf.d/ 
In CentOS instead /etc/mysql/conf.d you should use /etc/my.cnf.d/ folder.

2. Restart MySQL to apply configuration:
service mysqld restart
In case of change 'innodb_log_file_size' only in MySQL 5.6.7 or earlier perform the following commands:
mysql -e"SET GLOBAL innodb_fast_shutdown = 1" 
service mysql stop
mv /var/lib/mysql/ib_logfile[01] /tmp
service mysql start