What settings are available to tune the database performance for API Gateway?
API GATEWAY
Below are some settings that we have found to be beneficial (Note: You will need to restart the Gateway once the .properties and .cnf file changes have been made). Depending on the version you are running some may already be in place in the default code. Lastly, ensure that you have at the very least 4 GB of RAM assigned to each of the nodes but for higher performance 16 GB is recommended.
We added the following properties to the jdbc connection
maxIdleTime 0 //c3p0 setting
maxConnectionAge 0 //c3p0 setting
idleConnectionTestPeriod 600 //c3p0 setting
EnableCancelTimeout true
If you disable timeouts and connection max ages, ensure you have 8MB of memory per pooled connection to account for cached query data on top of the amount required for "normal" traffic processing.