There are resource considerations to account for when running Kong in DBless mode.
Recommendations when running Kong in DBless mode
Uses:
Kong Gateway
TL;DR
Are there any resource considerations when running Kong in DBless mode?
Yes. Set nginx_worker_processes to at least two, provision enough compute for the added workers, size the in-memory cache with mem_cache_size in kong.conf, and keep declarative configuration small by using plugins efficiently.
Solution
Please follow these best practices to avoid request latency or performance issues.
- Set
nginx_worker_processesto a minimum of two (2) or more. Set thenginx_worker_processesdirective inkong.conf. - Provide enough Compute resources to handle the increased number of workers. One CPU per Worker Process
- Make sure that the in-memory cache is configured appropriately.
Set the
mem_cache_sizedirective inkong.conf. - Deploy Kong plugins efficiently to keep the K8s Declarative Configuration as small as possible.
Please refer to the latest documentation: