VM Setup

Before executing the setup, please ensure the service's Minimum System Requirements are met and that any necessary dependencies are installed.

Setup order requirement

MetaDefender Distributed Cluster consists of the following components along with their corresponding default ports.

StepComponentHow to install (short name)Default port
1Redis Caching ServerRedis6379
2RabbitMQ Message BrokerRabbitMQ5672
3PostgreSQL Database ServerPostgres5432
4MetaDefender Distributed Cluster File StorageMDDC File Storage8890
5MetaDefender Distributed Cluster Identity ServiceMDDC Identity Service8891
6MetaDefender Distributed Cluster Control CenterMDDC Control Center8892
7MetaDefender Distributed Cluster WorkerMDDC Worker8893

The system administrator should adhere to the following service installation sequence to prevent conflicts:

  1. Install Redis, RabbitMQ, Postgres, MDDC File Storage, MDDC Identity Service.
  2. Install MDDC Control Center.
  3. Install MDDC Worker on the targeted machines (for deploying MDDC API Gateway or MetaDefender Core).

An exception rule for the firewall needs to be created to permit both incoming (inbound) and outgoing (outbound) connections to every component.

While many components can be set up on a single machine, they should be installed individually on different machines according to their features. Kindly consult Best practices for further information.

Install Redis Caching Server

Redis version 7.0 or higher is required.

Only Redis on Linux is officially recommended.

  1. Follow steps to install Redis Caching server.
  2. Access Redis configuration file/etc/redis/redis.conf for editing.
  3. Comment out the bind setting and set protected-mode option to no.
redis.conf
Copy
  1. Restart the service.
Bash
Copy

Install RabbitMQ Message Broker

RabbitMQ version 3.13.0 or higher is required.

RabbitMQ functions effectively only with specific supported versions of Erlang. Please refer to the link for the Erlang-RabbitMQ compatibility matrix.

Windows

  1. Download Erlang and follow the instructions to install Erlang.
  2. Download RabbitMQ for Windows.
  3. Run the executable file as administrator, follow instructions to complete the RabbitMQ installation.
  4. In Command Prompt, change working directory to <RabbitMQ installation folder>/rabbitmq_server-<version>/sbin and run the following command:
None
Copy

Linux

  1. Download Erlang and follow the instructions to install Erlang and its dependencies.
  2. Download RabbitMQ for Red Hat/Rocky or Debian/Ubuntu .
  3. In Terminal, run the following command:
Bash
Copy
  1. In Terminal, run the following command:
None
Copy

Install PostgreSQL Database Server

PostgreSQL version 14.18 or higher is required.

pg_trgm extension is required for PostgreSQL running on Linux.

  1. Download PostgreSQL Database Server.
  2. Follow steps to setup Postgres Database Server to allow connections from external applications.
  3. Restart Postgres Database Server.

Install MetaDefender Distributed Cluster File Storage

  1. Build Ignition file for MDDC File Storage service.
  2. Start Command Prompt as Administrator on Windows or Terminal on Linux and run the following command:
Bash
Copy
  1. Check the service status.

Install MetaDefender Distributed Cluster Identity Service

  1. Build Ignition file for MDDC Identity Service.
  2. Start Command Prompt as Administrator on Windows or Terminal on Linux and run the following command:
Bash
Copy
  1. Check the service status.

Install MetaDefender Distributed Cluster Control Center

  1. Build Ignition file for MDDC Control Center service.
  2. Start Command Prompt as Administrator on Windows or Terminal on Linux and run the following command:
Bash
Copy
  1. Check the service status.

Setup Data Lake and Data Warehouse

  1. Go to C:\Program Files\OPSWAT\MetaDefender Distributed Cluster Control Center directory in Windows Command Prompt or /usr/sbin directory in Linux Terminal.
  2. Run the following command:
Bash
Copy

Make sure the postgres-user possesses superuser rights to successfully create the database.

Install MetaDefender Distributed Cluster Worker

You need to prepare at least 2 VMs for Worker: one for MetaDefender Core and one for API Gateway.

  1. Build Ignition file for MDDC Worker service.
  2. Start Command Prompt as Administrator on Windows or Terminal on Linux and run the following command:
Bash
Copy
  1. Check the service status.
  2. Repeat the above steps for other MDDC Workers.

Configurations

When all the Workers are installed successfully, it marks a completed installation. Now, heading to essential configuration steps.

Connect essential services

Essential services for the Distributed Cluster includes Redis, Postgres, RabbitMQ, and File Storage.

The system is operational only when MDDC Control Center can effectively connect to all essential services.

  1. Sign in to MDDC Control Center web console with the initial administrator user account that you created in Install MetaDefender Distributed Cluster Identity Service.
  2. Go to Inventory > Services and select Add Service.
  3. Choose the service type and fill out the fields required by the services.
  4. Click Save.
  1. Check status of the service connections.

Submit MetaDefender Core and MDDC API Gateway packages

The packages are installation files of MetaDefender Core and MDDC API Gateway, which will be subsequently deployed on MDDC Worker remotely by MDDC Control Center.

Various versions of installation files may be submitted to MDDC Control Center. The correct version to install will be chosen during Deployment phase.

  1. Sign in to MDDC Control Center web console with the initial administrator user account that you created in Install MetaDefender Distributed Cluster Identity Service.
  2. Go to Inventory > Packages and select Upload package.
  3. Select MetaDefender Core/MDDC API Gateway installation files.
  4. Click Upload.

Connect to MDDC Workers

  1. Sign in to MDDC Control Center web console with the initial administrator user account that you created in Install MetaDefender Distributed Cluster Identity Service.
  2. Go to Inventory > Workers and select Add workers.
  3. Complete the required fields to add new workers and select Submit.
  1. Check the status of the Worker connections.

Deploy MetaDefender Core and API Gateway instances

  1. Sign in to MDDC Control Center web console with the initial administrator user account that you created in Install MetaDefender Distributed Cluster Identity Service.
  2. Go to Inventory > Workers and select Deploy workers.
  3. Choose the workers for deployment and decide which package will be deployed on the workers.

The license to activate MetaDefender Core instances can be selected in this phrase.

Advanced settings (enable HTTPS, select log level, define engine parallel count, etc.) are configurable.

  1. Choose Next.
  2. Confirm the deployment details, then click Deploy and Finish.
  3. Hold off until the deployment is completed successfully.
  1. Once the system is up, MDDC API Gateway can efficiently accept scan requests.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard