Environment Variables

This section lists the environment variables that are associated with the Flogo Enterprise runtime environment.

Environment Variable Name Default Values Description
FLOGO_RUNNER_QUEUE 50 The maximum number of events from all triggers that can be queued by the app engine.
FLOGO_RUNNER_WORKERS 5 The maximum number of concurrent events that can be executed by the app engine from the queue.
FLOGO_HTTP_SERVICE_PORT N/A Used to set the port number to enable runtime HTTP service which provides APIs for healthcheck and statistics.
FLOGO_LOG_LEVEL INFO Used to set a log level for the Flogo app. Supported values are:
  • INFO
  • DEBUG
  • WARN
  • ERROR
FLOGO_LOG_FORMAT TEXT Used to switch logging format between text and JSON. For example, to use the JSON format, set FLOGO_LOG_FORMAT=JSON ./<app-name>
FLOGO_MAPPING_SKIP_MISSING False

When mapping objects, if one or more elements is missing in either the source or target object, the mapper throws an error when FLOGO_MAPPING_SKIP_MISSING is set to false.

Set this environment variable to true, if you would like to return a null instead of receiving an error.

FLOGO_APP_METRICS_LOG_EMITTER_ENABLE False If you set this property to True, the app metrics are displayed in the logs with the values set in FLOGO_APP_METRICS_LOG_EMMITTER_CONFIG. App metrics are not displayed in the logs if this environment variable is set to False. To set it to True, run: export FLOGO_APP_METRICS_LOG_EMITTER_ENABLE=true
FLOGO_APP_METRICS_LOG_EMITTER_CONFIG Both flow and activity This property can be set to either flow level or activity level. Depending on which level you set, the app metrics displays only for that level. Also, you can provide an (interval in seconds) at which to display the app metrics.

For example to set the interval to 30 seconds and get the app metrics for flow, run:

export FLOGO_APP_METRICS_LOG_EMITTER_CONFIG=‘{“interval”:“30s”,“type”:[“flow”]}’

To set the interval for 10 seconds and get the app metrics for both flow and activities, run:

export FLOGO_APP_METRICS_LOG_EMITTER_CONFIG=‘{“interval”:“30s”,“type”:[“flow”,“activity”]}’

FLOGO_APP_DELAYED_STOP_INTERVAL 10 seconds

When you scale down an instance, all inflight jobs are lost because the engine is stopped immediately. To avoid losing the jobs, delay the stopping of the engine by a specific duration so that inflight flow instances can complete within the specified duration. To delay the stopping of the engine, set the FLOGO_APP_DELAYED_STOP_INTERVAL variable to a value less than 60 seconds. When you scale down the instance, the process waits for the specified time interval before stopping the engine. The duration must not exceed 60 seconds.

GOGC 100

Sets the initial garbage collection target percentage.

Setting it to a higher value delays the start of a garbage collection cycle until the live heap has grown to the specified percentage of the previous size.

Setting it to a lower value, causes the garbage collector to be triggered more often as lesser new data can be allocated to the heap before triggering a collection.