Controller Database Configurations
You can make database configuration changes using:
- Database Configuration UI Page
- Enterprise Console CLI
Database Configuration UI Page
Use the Database Configuration UI page to edit your MySQL settings. This is helpful since you do not have to tweak the configuration file on the database host.
If your RAM memory is greater than 200 GB and you are using a NUMA based architecture, you can specify the Linux nodes (typically CPU socket numbers) from which both processes and memory will be allocated for each Splunk AppDynamics On-Premises component. For example on a two-socket motherboard, we recommend the following node configuration settings:
- Glassfish should should allocate its threads/processes and memory on the first node: 0.
- MySQL should allocate its threads/processes and memory on the second node: 1.
The configurations include:
-
DB Configuration Settings
Data Directory: You can change the datadir path and database port via this page.
Note: You cannot change certain configurations, such as the MySQL root directory, through the Enterprise Console. -
DB Root Password
The Enterprise Console allows you to reset the Controller MySQL root user password. See Change the Controller Database Root User Password.
Enterprise Console CLI
You can update the Controller database configuration programmatically using the Enterprise Console CLI. This enables you to preserve configuration settings during an upgrade.
- If you are using High Availability Toolkit (HATK), you must manually apply these settings on the secondary Controller and restart the secondary server.
- These instructions are specific to the UNIX operating system.
To update the database configuration using CLI:
- Copy the
db.cnf
file from your primary Controller host onto the Enterprise Console host, for exampledb.cnf.new
file. - Edit the
db.cnf.new
file to add new settings or update existing values. -
Load the
db.cnf.new
file into an environment variable:new_db_cnf=`cat db.cnf.new`
-
Go to the
platform-admin/bin
directory and log in:./platform-admin.sh login --user-name=admin --password=password
-
Run the following command on the Enterprise Console host:
bin/platform-admin.sh submit-job --service controller --job db-update-config --args mysqlCnfContent="$new_db_cnf"