-
Notifications
You must be signed in to change notification settings - Fork 25
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
Performance #262
Comments
To add a little bit more detail, the request looks like:
The config looks like this:
When running without the WAF, 50 requests over 5 connections look like:
When running with the WAF, it looks like:
|
Hi @inssein , thanks for coming by. There are a few things you can try out and see more acurate results.
After that you can evaluate the performance hit and we can see what can we improve :). |
@jcchavezs thanks for the pointers, will test out a few more things today. What's clear from this mornings testing is that requests with a POST body (json payload) are way slower. |
Yes so inspecting a body is expensive so you better do that when needed. |
Alright, so my config now looks like:
The performance is still over 5x worse, just from inspecting a small json request body. @jcchavezs I hope that is the correct way of disabling rules by tag ( |
Also, do you know if we have benchmarked this project specifically? I can see that benchmarks exist for Coraza, but I am not sure if we are running up to issues with the wasm layer. |
@inssein Hello, I'm facing the same issues. Did you manage to figure out a way to optimize the performance of Coraza running as a WASM plugin? Or did you use something else as a WAF? |
I couldn't get the performance we expected out of it, it's still running but for a very small subset of our requests. |
I am trialling this project out to see if its feasible for us, and so far I am running into some fairly large performance related challenges and I want to make sure I am not doing something silly.
When I have a very simple, single rule, I see a negligible performance impact:
However, when I turn the default core rulesets on, I get almost a 5x hit on performance for our simple routes.
I noticed I forgot to include either the demo or the recommended settings file first, which I will do next, but starting this thread anyways incase its something else.
The text was updated successfully, but these errors were encountered: