Helio
07/18/2022, 7:25 AM/**
* Size of the queue to store [ApplicationCall] instances that cannot be immediately processed
*/
public var requestQueueLimit: Int = 16
/**
* Number of concurrently running requests from the same http pipeline
*/
public var runningLimit: Int = 32
I would like to know if you have any suggestion regarding what’s the best approach to test / update these parameters? We are currently running Ktor 2.0.3
.
Thanks for your help.e5l
07/18/2022, 9:44 AMHelio
07/18/2022, 9:50 AMRustam Siniukov
07/20/2022, 12:39 PMrequestQueueLimit
is not used in the current setup, so the value there can be ignored. runningLimit
should be configured depending on nature of your server. If you have large number of relatively small requests, you can increase it to 64 or larger. This limit is needed to avoid failing with OOM when too much requests are happening simultaneously. If you have enough memory, then it should be no problem to make it larger.Helio
07/21/2022, 1:44 AMRustam Siniukov
07/21/2022, 10:55 AMrunningLimit
shows how many connections can be run simultaneously in a single http pipeline. It doesn’t affect number of connections, but how much requests are handled in one connectionHelio
07/21/2022, 11:22 AM