Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fail2ban] Reject requests with 15 facets, rather than 20 #5760

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

sandbergja
Copy link
Member

@christinach and I found that the current fail2ban configuration is stressing our load balancers -- maxing out 2 CPUs and it is having trouble keeping up with the volume.

While testing locally with fail2ban-regex, looking for 15 facets applied is more than 20 times faster than looking for 20 facets. This reduces the number of facets accordingly, while relaxing the number of such requests that an IP needs to make before being banned.

@christinach and I found that the current fail2ban configuration is
stressing our load balancers -- maxing out 2 CPUs and it is having
trouble keeping up with the volume.

While testing locally with fail2ban-regex, looking for 15 facets
applied is more than 20 times faster than looking for 20 facets.
This reduces the number of facets accordingly, while relaxing the
number of such requests that an IP needs to make before being
banned.
Copy link
Member

@christinach christinach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sandbergja 🍄 !

@christinach christinach merged commit 4a5c203 into main Jan 17, 2025
72 checks passed
@christinach christinach deleted the 15_facets branch January 17, 2025 15:07
@kayiwa
Copy link
Member

kayiwa commented Jan 17, 2025

Bye 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants