Skip to main content

fl management-server

fl management-server is a mode where Flexify IO Engine registers on the Flexify IO Management Server and receives tasks from it.

To run flexify-engine in the management server mode, run fl management-server --help after Install on Linux (DEB and RPM). In most cases you would want to configure the flexify-engine to run a service with the configure.sh script.

The service-init.sh script automates flexify-engine installation and configuration.

Usage​

fl management-server [OPTION]...

For backward compatibility, the “management server” mode is automatically selected if URL of the management server is specified via the FLEXIFY_ENGINE_MANAGEMENT_URL environment variable.

Options​

Command line option

Environment variable

Description

--management-url

FLEXIFY_ENGINE_MANAGEMENT_URL

(required) URL of management server

--instance-id

FLEXIFY_ENGINE_INSTANCE_ID

(optional) ID of this engine instance

--passkey

FLEXIFY_ENGINE_PASSKEY

(required) Passkey for registering on the management server.

--secret-key

FLEXIFY_ENGINE_SECRET_KEY

Secret key from management server

--cloud-code

FLEXIFY_ENGINE_CLOUD_CODE

Code of the cloud where engine runs

--cloud-region

FLEXIFY_ENGINE_CLOUD_REGION

Region of the cloud where engine runs

--cloud-net-config

FLEXIFY_ENGINE_CLOUD_NET_CONFIG

Network configuration in which engine runs

--polling-interval

FLEXIFY_ENGINE_POLLING_INTERVAL

⚠️ Management server config polling interval (sec) [5]

--reporting-interval

FLEXIFY_ENGINE_REPORTING_INTERVAL

⚠️ Reporting to management server interval (sec) [5]

--mgmt-server-timeout

FLEXIFY_ENGINE_MGMT_SERVER_TIMEOUT

Request timeout for management server (sec) [90]

--log-level-sync

FLEXIFY_ENGINE_LOG_LEVEL_SYNC

Logging level for synchronization logs with management server.

Allowed values: ERROR, WARNING, INFO, DEBUG, or TRACE

Default: same as FLEXIFY_ENGINE_LOG_LEVEL

Examples​

To Connect to the Management Server you’ll need to have the --management-url and --passkey of the server for this example we’ll be using the test environment,

fl management-server \
--management-url https://api.flexify.io \
--passkey <passKey>

Check Flexify.IO Management UI, and go to All Engine page and check if your engine state is now ALIVE

image-20240125-120856.png