Shared DB - Linux

These results should be viewed as guidelines and not performance guarantees, since there are many variables that affect performance (file set, network configurations, hardware characteristics, etc.). If throughput is important to your implementation, OPSWAT recommends site-specific benchmarking before implementing a production solution.

Environment

Using AWS environment with the specification below:

MetaDefender Core

OSAWS instance typevCPUMemory (GB)Network bandwidth (Gbps)Disk type
MetaDefender Core #1Linux CentOS 7c5.4xlarge1632Up to 10SSD
MetaDefender Core #2Linux CentOS 7c5.4xlarge1632Up to 10SSD

Database Server

OSAWS instance typevCPUMemory (GB)Network bandwidth (Gbps)Disk type
Windows Server 2022c5.4xlarge1632Up to 10SSD

Deployment Model

Using a AWS Load Balancer to distribute files sent from the client tool to two (2) different MetaDefender Core servers applying Round Robin algorithm. With this algorithm, each MetaDefender Core server is supposed to receive same number of requests.

Client tool

A simple tool written in Python to collect files in a designated folder and submit requests to Load Balancer mentioned above.

Python
Copy
OSAWS instance typevCPUMemory (GB)Network bandwidth (Gbps)Disk type
CentOS 7c5.2xlarge816Up to 10SSD

Dataset

Detailed information of dataset below will be used for testing:

File categoryFile typeNumber of filesTotal size (MB)Average file size (MB)
AdobePDF370385 MB1.0 MB
ExecutableEXE45309.5 MB6.9 MB
MSI1545.75 MB3.1 MB
ImageBMP80515 MB6.4 MB
JPG420237.5 MB0.6 MB
PNG345169 MB0.5 MB
MediaMP3135865 MB6.4 MB
MP450500 MB10.0 MB
OfficeDOCX235190 MB0.8 MB
DOC225486 MB2.2 MB
PPTX365860 MB2.4 MB
PPT3551950 MB5.5 MB
XLSX340283.5 MB0.8 MB
XLS335284.5 MB0.8 MB
TextCSV100236 MB2.4 MB
HTML107576 MB0.1 MB
TXT500210 MB0.4 MB
ArchiveZIP

Compressed files: 10

Extracted files: 270

Compressed size: 125.5 MB

Extracted size: 156.5 MB

Avg compressed size: 12.6 MB

Avg extracted size: 0.6 MB

Summary (compressed)50007728.5 MB1.55 MB average file size
Summary (extracted)52607759.5 MB1.48 MB average file size

Product Information

Product versions:

  • MetaDefender Core version 5.6.0
  • Engines:
    • 10 AV engines: Ahnlab, Avira, ClamAV, ESET, Bitdefender, K7, Quick Heal, IKarus, Cyren, Tachyon (nProtect)
    • Deep CDR: 6.6.2
    • Proactive DLP: 2.16.0
    • Archive: 6.3.2
    • File type analysis: 6.3.2
    • File-based vulnerability assessment: 4.2

MetaDefender Core settings

General settings

  • Turn off data retention
  • Turn off engine update

Archive extraction settings

  • Max recursion level: 99999999
  • Max number of extracted files: 99999999
  • Max total size of extracted files: 99999999
  • Timeout: 10 minutes
  • Handle archive extraction task as Failed: true
    • Extracted partially: true

Metascan AV settings

  • Max file size: 99999999
  • Scan timeout: 20 minutes
  • Per engine scan timeout: 5 minutes

Performance test results

Summary

MetaDefender Core with single engine (technology):

Use caseScan duration (minutes)Avg. CPU usage - MD Core 1(%)Avg. CPU usage - MD Core 2(%)Avg. Memory usage - MD Core 1 (%)Avg. Memory usage - MD Core 2 (%)Avg. Network speed - MD Core 1 (KB/s)Avg. Network speed - MD Core 2 (KB/s)Throughput (processed objects/hour)Avg. processing time (seconds/object)Avg. processing time (seconds/file)
Metascan (10 AV)15.563.173.325.225.8Receive: 4555.9 Send: 694.4Receive: 4516.2 Send: 692.4492,620.50.0070.186
Deep CDR9.7050.751.231.932.5Receive: 7062.9 Send: 623.2Receive: 6653 Send: 654.1786,189.60.0050.116
Proactive DLP7.235.235.027.927.5Receive: 9047.4 Send: 802.4Receive: 9859.8 Send: 787.51,055,110.80.0030.086
Vulnerability5.045.749.324.424.5Receive: 13,585.7 Send: 966.7Receive: 13,505.8 Send: 987.41,519,562.10.0020.060

MetaDefender Core with common engine packages:

Use caseScan duration (minutes)Avg. CPU usage - MD Core 1(%)Avg. CPU usage - MD Core 2(%)Avg. Memory usage - MD Core 1 (%)Avg. Memory usage - MD Core 2 (%)Avg. Network speed - MD Core 1 (KB/s)Avg. Network speed - MD Core 2 (KB/s)Throughput (processed objects/hour)Avg. processing time (seconds/object)Avg. processing time (seconds/file)
Metascan (10 AV) + Deep CDR19.979.177.634.034.2Receive: 3785.9 Send: 573.8Receive: 3663.1 Send: 577.7382,7160.0090.238
Metascan (10 AV) + Deep CDR + Proactive DLP21.680.381.537.744.4Receive: 3305.6 Send: 543.3Receive: 3414.3 Send: 556.2353,694.90.0100.259
Metascan (10 AV) + Deep CDR + Proactive DLP + Vulnerability22.584.279.837.944.7Receive: 3267.9 Send: 554.9Receive: 3398.2 Send: 553.8338,507.60.0110.270

Recommendations

Controlling total processing time of each MD Core server:

In this deployment model, we should organize and send files in the way that it best utilizes the load of each MD Core server. It is not a good practice if one Core server is free while the other one is busy. By optimizing the distribution of files, we can ensure that each Core server is utilized efficiently, thereby improving overall system performance. Furthermore, this approach can help prevent bottlenecks and minimize the chances of system overload.

Adding proper number of MD Core servers to the cluster:

Adding more Core servers to this model will increase more load on the shared database. When adding a new MD Core server, users should monitor performance of database server such as memory/CPU consumption, disk usage, network bandwidth, request response time and so on… to see if it still can handle the load. This is important in order to maintain optimal performance and ensure that the database server can continue to efficiently serve the needs of the system.

Optimizing database server for better performance:

Continuing to add more Core servers to this model may result in increased strain on the shared database. As such, it is crucial to ensure that the database is optimized to handle the additional load effectively. Users can consider adjusting default database settings of PostgresSQL to optimize for more data load if needed. Here is where we can adjust PostgresSQL database settings: <PostgreSQL install location\version>\data\postgresql.conf.

Besides that, MD Core also supports a parameter (db_connection) for users to specify max connections that MD Core can handle, take a look at this guideline:

https://docs.opswat.com/mdcore/configuration/metadefender-configuration#internal

System resource utilization charts

MetaDefender Core with Metascan (8 AV engines):

Memory usage

MD Core #1

MD Core #2

CPU usage

MD Core #1

MD Core #2

Network usage

MD Core #1

MD Core #2

MetaDefender Core with Metascan (8 AV engines) + Deep CDR:

Memory usage

MD Core #1

MD Core #2

CPU usage

MD Core #1

MD Core #2

Network usage

MD Core #1

MD Core #2

MetaDefender Core with Metascan (8 AV engines) + Deep CDR + Proactive DLP:

Memory usage

MD Core #1

MD Core #2

CPU usage

MD Core #1

MD Core #2

Network usage

MD Core #1

MD Core #2

MetaDefender Core with Metascan (8 AV engines) + Deep CDR + Proactive DLP + Vulnerability:

Memory usage

MD Core #1

MD Core #2

CPU usage

MD Core #1

MD Core #2

Network usage

MD Core #1

MD Core #2

MetaDefender Core with Deep CDR:

Memory usage

MD Core #1

MD Core #2

CPU usage

MD Core #1

MD Core #2

Network usage

MD Core #1

MD Core #2

MetaDefender Core with Proactive DLP:

Memory usage

MD Core #1

MD Core #2

CPU usage

MD Core #1

MD Core #2

Network usage

MD Core #1

MD Core #2

MetaDefender Core with Vulnerability:

Memory usage

MD Core #1

MD Core #2

CPU usage

MD Core #1

MD Core #2

Network usage

MD Core #1

MD Core #2

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard