Saga Documentation 0.9.434-4

Installation

Environment Variables

APP_NAME required

The unique name of the app, is used to prefix the name of keys in RabbitMQ and Redis. And it's used for the New Relic App Name if New Relic is enabled.

JWT_SECRET required

The JWT secret key used for Saga JWT tokens.

MONGOHQ_URL required

Format: https://docs.mongodb.com/manual/reference/connection-string/

CLOUDAMQP_URL required

Format: https://www.rabbitmq.com/uri-spec.html

REDIS_URL required

Format: https://metacpan.org/pod/URI::redis

NODE_ENV optional, default "development"

Set to production when running saga in staging of production https://dzone.com/articles/what-you-should-know-about-node-env

SCHEDULER_TICK optional, default=3000

This is the frequency in milliseconds the system checks for new Jobs to run.

MAX_CONCURRENT_SCRIPTS optional, default=null

The max amount of concurrent scripts per script process.

DISABLE_PACKAGE_INSTALL optional, default=false

When set to "true" it will disable dynamic npm package installs

NODE_SCRIPT_PROCESSES optional, default = number of CPU's available on machine

How many script processes run per per script container.

NODE_JOB_PROCESSES optional, default = number of CPU's available on machine

How many job processes run per per job container.

NODE_HTTP_PROCESSES optional, default = number of CPU's available on machine

How many http processes run per per http api container.

TOKEN_TTL optional, default=2592000000

Specifies the expiration of JWT Tokens, when no specific expiration has been set.

LOG_LEVEL optional, default: warn or info

The log level used by all saga components. If NODE_ENV is "production" the default level is "warn" otherwise "info" Available leves: "debug", "info", "warn", "error".

LOG_LEVEL optional, default: warn or info

The log level used by all saga components. If NODE_ENV is "production" the default level is "warn" otherwise "info" Available leves: "debug", "info", "warn", "error".

USER_REGISTER_REQUIRES_VERIFICATION optional

If true a '/actions/users/create' event is triggered that will handle the verification process.