MD Cluster Worker

Supported Operating Systems

OSVersion
Windows

Windows Server 2019, 2022, 2025

Windows 11 23H2, 24H2, 25H2

Ubuntu

Noble Numbat (24.04, LTS)

Jammy Jellyfish (22.04, LTS)

DebianBookworm (12.x)
Rocky9
RHEL9

Overview

This section describes how to install a MD Cluster Worker on a target machine by retrieving and executing an installation script from MD Cluster Control Center. After installation, administrators can monitor the health status of the installed worker.

Prerequisites

RequirementDescription
PrivilegesAdministrator privileges on Windows; Root or sudo access on Linux
NetworkMD Cluster Worker must be able to communicate with MD Cluster Control Center
PortDefault port 8893 must be open for MD Cluster Control Center to reach
DependenciesMeet System requirements

Allow Cross IP Sessions

  1. Sign in to MD Cluster Control Center console using your administrator account.
  2. From the sidebar, go to Settings > Security.
  3. Toggle Allow Cross IP Sessions.

Retrieve the installation script

  1. From the sidebar, go to to Inventory > Workers.
  2. Expand Add Workers and select Add by script.
  1. In Worker Installation, choose the appropriate platform (Windows or Linux).
  2. Enter the connection key provided by your administrator and leave the other settings as default.

Avoid using loopback addresses (such as localhost, 127.0.0.1, or ::1) when generating the installation script.

  1. Click Generate.
  2. Copy the generated script.

Execute the installation script

  1. Access the target machine.

  2. Run the copied command:

    • On Windows: open PowerShell as Administrator, paste and run the script.
    • On Linux: open a root shell (e.g., sudo su), paste and run the script.
  3. Once the installation completes, note the Worker ID displayed on the screen.

Bash
Copy

Verify the installation

  1. Sign in to MD Cluster Control Center console.
  2. From the sidebar, go to Inventory > Workers.
  3. Confirm that the worker with the previously collected Worker ID appears with the correct version and platform.

Service management

  • Stop the service:
Bash
Copy
  • Start the service:
Bash
Copy
  • Restart the service:
Bash
Copy

Customize the service configuration

During installation, MD Cluster Worker service generates a configuration file at

  • Windows: <installation_dir>\MetaDefender Cluster Worker\md_cluster_worker.yml
  • Linux: <installation_dir>/data/config/md_cluster_worker.yml

To customize the service behavior:

  1. Open the configuration file in a text editor.
  2. Modify the required settings according to your environment.
  3. Save the changes.
  4. Restart the service to apply the new settings.
Bash
Copy

Uninstall the service

  1. Navigate to MD Cluster Worker installation directory.
  2. Open PowerShell (Admin) on Windows or a sudo terminal on Linux.
  3. Run command:
Bash
Copy

Troubleshooting

CURL error 403 during installation

Possible causes:

  1. The session has expired.
  2. The user does not have deployment permission.

Solutions:

  1. Regenerate the installation script and run it again.
  2. Use an account with the required permissions or provide an API key with deployment access.

Configuration reference

Common configurations

  • Platform (Required)

    • Value: Windows or Linux
    • Description: The platform where the installation script will be run.
  • Connection Key (Required)

    • Value: String
    • Description: A 4-64 character string that contains only digits (0-9) and letters (a-z, A-Z) provided by system administrator.
  • Listen Host (Optional)

    • Value: String
    • Description: The host/interface the MD Cluster Worker listens on. Default is 0.0.0.0 (all IPv4).
  • Listen Port (Optional)

    • Value: Number
    • Description: The port number where MD Cluster Worker listens for requests. Default is 8893.

Advanced configurations

  • Worker added automatically during installation (Optional)

    • Value: String
    • Description: The worker host is automatically detected from the IP address used to connect to MD Cluster Control Center. To register the worker with a DNS or domain name instead, specify the hostname here.
  • Skip SSL verification when connecting to Control Center (Optional)

    • Value: Yes or No
    • Description: Use this option only for testing or when using self-signed certificates. For production, use a CA-signed certificate and keep SSL verification enabled.
  • Install Directory (Optional)

    • Value: a valid directory path.
    • Description: Specifies the location where MD Cluster Worker will be installed. The default is C:\Program Files\OPSWAT\MetaDefender Cluster Worker on Windows and /opt/md-cluster-worker/ on Linux.
  • API Key (Optional)

    • Value: String
    • Description: Use an API Key instead of Allow Cross IP Sessions for authentication during installation. This is the recommended alternative when you don’t want to enable Allow Cross IP Sessions.
  • Skip dependency installation (Optional, Linux only] :

    • Value: Yes or No
    • Description: Skip installing dependencies on Linux (e.g. when they are pre‑installed or managed by your OS image).
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard