Skip to content

Commit

Permalink
Merge pull request #10681 from owncloud/antivirus_and_memory
Browse files Browse the repository at this point in the history
[docs-only] Add memory considerations to the antivirus service
  • Loading branch information
mmattel authored Nov 29, 2024
2 parents 8f0d62f + ead01a2 commit 3f26e0f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions services/antivirus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

The `antivirus` service is responsible for scanning files for viruses.

## Memory Considerations

The antivirus service can consume considerably amounts of memory. This is relevant to provide or define sufficient memory for the deployment selected. To avoid out of memory (OOM) situations, the following equation gives a rough overview based on experiences made. The memory calculation comes without any guarantee, is intended as overview only and subject of change.

`memory limit` = `max file size` x `workers` x `factor 8 - 14`

With:
`ANTIVIRUS_WORKERS` == 1
```plaintext
50MB file --> factor 14 --> 700MB memory
844MB file --> factor 8,3 --> 7GB memory
```

## Configuration

### Antivirus Scanner Type
Expand Down

0 comments on commit 3f26e0f

Please sign in to comment.