Initial Configuration
The Releem Agent includes a command that recommends a base MySQL configuration for servers with default configuration. The script creates a configuration file with recommended parameters based on your server's hardware resources.
Use Case
This feature is for servers with default configuration. It provides a baseline configuration before workload-based recommendations become available.
Database server setup workflow:
- Install a database server.
- Install the Releem Agent.
- Run the initial command to set up baseline configuration based on the server's hardware characteristics.
- Deploy and start the application on the server.
- Releem will analyze the server's workload and recommend configurations tailored to the current workload.
caution
For servers with non-default configuration, use the standard configuration tuning process instead.
Usage
Generate and Apply Configuration
bash /opt/releem/mysqlconfigurer.sh -s initial
This command:
- Analyzes server hardware resources
- Generates
initial_config_mysql.cnf - Saves it to
/opt/releem/conf/ - Applies the configuration
Automatic MySQL Restart
Add RELEEM_RESTART_SERVICE=1 to automatically restart MySQL after applying the configuration:
RELEEM_RESTART_SERVICE=1 bash /opt/releem/mysqlconfigurer.sh -s initial
Configuration File Location
The initial configuration is saved as initial_config_mysql.cnf in the Releem agent's conf directory.
/opt/releem/conf/initial_config_mysql.cnf