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:

  1. Increase the buffer

  2. Restart the database

  3. Perform some operations in the Gateway Manager

    • Something with a lot of database access, for example: Reloading Resources or Discover APIs

  4. Check the buffer utilisation

    1. 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
    2. 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