Skip to content

Commit 7363dce

Browse files
authored
Merge pull request #171 from bliss/patch-1
Document performance tuning for webshield
2 parents 294dfff + fdb8359 commit 7363dce

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/features/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,38 @@ Those who don’t need this type of overridable configs can continue using custo
835835

836836
This feature is backward compatible.
837837

838+
## Performance Tuning for High-Traffic Environments
839+
840+
By default webshield uses one worker, which is suitable for most cases and maintains a balance between resource consumption and performance. However, for high-load environments this might not be sufficient. To increase the number of workers, create a file with `.conf` extension in `/etc/imunify360-webshield/webshield-main.conf.d` folder, for instance, `/etc/imunify360-webshield/webshield-main.conf.d/tuning.conf` with the following content:
841+
<div class="notranslate">
842+
843+
```
844+
worker_processes auto;
845+
```
846+
</div>
847+
848+
:::warning Warning
849+
Make sure to keep the trailing semicolon.
850+
:::
851+
852+
Value `auto` seems to be a reasonable choice, as it will try to autodetect the number of CPU cores and set the value according to the number. Instead of `auto` you can set the number you find reasonable (typical value 2-8). After the file was created, restart webshield configuration with:
853+
854+
<div class="notranslate">
855+
856+
```
857+
# systemctl restart imunify360-webshield
858+
```
859+
</div>
860+
861+
To make sure that the changes took effect, the following command can be used:
862+
863+
<div class="notranslate">
864+
865+
```
866+
ps aux | grep im360
867+
```
868+
</div>
869+
838870

839871
## Scan of the system and user crontab files for malicious jobs <Badge text="Experimental" type="note"/>
840872

0 commit comments

Comments
 (0)