Problem/Motivation
There is an Acquia Knowledge Base article about flood control mechanism here. This explains what happens when the query limits have been reached. (e.g. The 'Flood protection has blocked request of type select.' is logged, and/or a message on the screen appears. This is thrown by the Flood helper, or the SearchSubscriber). The helper/subscriber however does not link to this article confusing site owners about the error - not knowing the config value behind this error can be changed and is there to protect from bot/DOS attacks or high value traffics targeting those queries.
Steps to reproduce
Use high traffic on search pages where acquia_search
is used, and reach the limit of flood control set.
Proposed resolution
Update the error message in Flood and in SearchSubscriber to involve the link to the article.
Remaining tasks
-
User interface changes
When the limit is reached, the message displayed on the screen changes, and includes a link to the KB article. Also, the error message logged has the link to the KB article.
API changes
-
Data model changes
-
Comment | File | Size | Author |
---|---|---|---|
#4 | Screenshot 2022-10-06 at 13.56.14.png | 67.64 KB | balintpekker |
#4 | Screenshot 2022-10-06 at 13.55.33.png | 75.34 KB | balintpekker |
#4 | Screenshot 2022-10-06 at 13.55.23.png | 49.31 KB | balintpekker |
#4 | Screenshot 2022-10-06 at 13.55.03.png | 72.62 KB | balintpekker |
Issue fork acquia_search-3313839
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
balintpekkerComment #4
balintpekkerPosting some before/after pictures here.
Comment #5
balintpekkerComment #6
balintpekkerComment #7
mglaman+1, I like it. Just some nits to simplify the message construction
Comment #8
balintpekkerComment #10
mglamanThanks!