allowing reducing the priority of concurrent requests

Description

Allow to reduce priorities of concurrent request with the same remote ip, by reducing the java thread pririty and force a nap before execution.

Activity

Show:

Pothys - MitrahSoft 19 October 2022 at 08:31

Michael Offner 2 August 2022 at 17:01

this can be controlled as following:

setting the system property/env var to “lucee.request.limit.concurrent.maxnormprio=5“ / ”LUCEE_REQUEST_LIMIT_CONCURRENT_MAXNORMPRIO=5”, if now more than 4 request having the same remote ip, Lucee will reduce the thread priority of this this.

setting the system property/env var to “lucee.request.limit.concurrent.maxnosleep=20“ / ”LUCEE_REQUEST_LIMIT_CONCURRENT_MAXNOSLEEP=20”, if now more than 19 request having the same remote ip, Lucee will force a nap on every new request, before starting execution. nap time is defined in ms with system property/env var to “lucee.request.limit.concurrent.sleeptime=100“ / ”LUCEE_REQUEST_LIMIT_CONCURRENT_SLEEPTIME=100

 

Good thing about this changes, it will not disrupt any existing code that has this feature enabled, because it does not block any request. Same way Lucee reduces prio of threads running more than 10 seconds.

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 2 August 2022 at 16:31
Updated 26 October 2022 at 09:52
Resolved 10 October 2022 at 08:39

Flag notifications