Request limit (throttling)
Limit of active request instances
Limit of active request instances (so-called throttle) allows you to limit the number of simultaneously running requests of a given type on a specific server. After the limit is exceeded, the user cannot start another instance – instead, an information page is displayed.
This solution is especially useful in situations of increased system load or during maintenance work.
Configuration
The configuration of limits is done in the file:
/etc/eximee/webforms.xmlSample configuration in the .xml file:
<webforms>
<server>
<limits>
<forms>
<_uwmappertest>3</_uwmappertest>
<_demo_porownywarka_ofert>3</_demo_porownywarka_ofert>
</forms>
</limits>
</server>
</webforms>In the tag <forms> we define the requests covered by the limit:
Where:
FORMNAME– request name,LIMIT– maximum number of active instances.
Important rules:
each request name
FORMNAMEmust have the _ prefixno entry means no limit,
setting the value to 0 means complete blocking of the request.
Configuration examples
Complete blocking of the request
After opening the request, the user will see a page informing them that it is unavailable.
Limiting the number of instances
A third attempt to start the request will result in an error page being displayed.
Information page
The text on the information page can be set from Eximee Designer, in the Library → Content and by searching for formatted content error_page_formLimitExceeded.
You also need to update the file webforms-error-pages.xml by adding the fragment below:
Last updated
Was this helpful?
