-
Notifications
You must be signed in to change notification settings - Fork 11
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
scan speed low #2
Comments
this is related to this: malice-plugins/avast#2 (comment) The reason being that every scan creates a new docker container, which means that the virus-signature DB needs to be read into memory each time. A way to speed it up would be to start a container and then keep sending it samples. I believe if you used the plugin as a web-service it might scan faster https://github.com/malice-plugins/clamav/blob/master/docs/web.md However, there is a bit of a security trade off as running on scan per container means that if the malware can corrupt the docker container it will only break that container, but it will be discarded and not used a second time. FYI, these plugins aren't hardened yet, but they will be. Meaning I will turn on all the available docker security features to limit the risk the the host running docker in case of malware that tries to attack docker itself. |
Thank you for your response. I certainly used the plugin as a web-service. |
Ah yes sorry about that I am more tired than I thought. So I went into the container to just run clamav by itself without my Golang app frontend proxy service and saw this:
This means clamav is JUST slow. So the way to speed it up would be to run a lot of them in parallel and then use a reverse proxy like nginx in front of them OR you could run a bunch in a docker-swarm. |
@blacktop the main cost of scan progress is load clam-av db. |
Is it possible to use clamdscan instead of clamscan in web api?! |
scan a simple txt cost more than 14s seconds
The text was updated successfully, but these errors were encountered: