APIIDA API Gateway Manager
Performance Problems - Buffer Pool
If both the loading of resources from a gateway and the AAGM interface are very slow, the problem could be that the Gateway Manager's database buffer is too low.
We recommend a buffer of at least 1 GB.
You can also take a step-by-step approach:
Increase the buffer
innodb_buffer_pool_size
is a read_only variable. You have to shut down the database first.SHOW VARIABLES LIKE 'innodb_buffer_pool_size';
--innodb_buffer_pool_size=1G
See all recommended settings here: Installation | Start the Containers Using Docker Compose
Restart the database
Perform some operations in the Gateway Manager
Something with a lot of database access, for example: Reloading Resources or Discover APIs
Check the buffer utilisation
SELECT FLOOR((SELECT variable_value FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE variable_name = 'Innodb_buffer_pool_bytes_data') * 100 / (SELECT variable_value FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name = 'innodb_buffer_pool_size')) AS BufferPoolUsageInPercent
Start again at step 1 if the utilisation of the buffer is higher than 80 percent.
https://mariadb.com/kb/en/innodb-buffer-pool/
If you have a lot of gateways with a lot of APIs, the following settings are a good place to start.
--innodb_buffer_pool_size=4G
--query_cache_size=2G
--max_allowed_packet=536870912