Skip to content

Latest commit

 

History

History
107 lines (64 loc) · 2.6 KB

configuration.md

File metadata and controls

107 lines (64 loc) · 2.6 KB

Configuration

The system is configured via environment variables. These are the ones available:

LOG_LEVEL

required: No, default: info

The log level to use. Any message below the specified level will not be logged. See zerolog documentation for available levels.

RPC_IP

required: No, default: localhost

The IP address to listen for RPCs on.

RPC_PORT

required: No, default: 1234

The port to listen for RPCs on.

DUMP_PATH

required: no, default: /dumps

The path to the folder where dumps will be stored, either by direct dumps or from file transfers from other hosts.

FILE_TRANSFER_PORT

required: no, default: 22

The port from which to receive file transfers.

SSH_USER

required: yes

The name of the user to use when authenticating with ssh during file transfer.

SSH_USER

required: yes

The password of the user to use when authenticating with ssh during file transfer.

CRIU_TCP_ESTABLISHED

required: no, default: false

Whether or not to pass the AllowOpenTCP option to go-runc which in turn passes it as the --tcp-established option to CRIU while checkpointing. Needed for checkpointing TCP connections, see the CRIU documentation for more information. Parsed as a boolean, see strconv.ParseBool() for valid formats.

ENABLE_CONTINOUS_DUMPING

required: no, default: true

If set to false no dumps will be made during the runtime before a migration is initialized. Migrations will work as normal (but will effectively become regular pre-copy migrations), but failover will not work. Only intended to use for demonstration purposes.

DUMP_INTERVAL

required: no, default: 5

The length, in seconds, of the intervals between performing dumps.

CHAIN_LENGTH

required: no, default: 3

The length of each dump chain. The last dump of each chain will a full dump from which the process can be recovered. If DUMP_INTERVAL is set to m seconds and CHAIN_LENGTH is set to n then every m*nth second a full dump will be made.

PING_INTERVAL

required: no, default: 1

The length, in seconds, of the intervals between sending pings to nodes in the cluster.

PING_TIMEOUT

required: no, default: 5

The length, in seconds, of how long to wait for PING RPCs before considering the source to be down.

PING_TIMEOUT_SOURCE

required: no, default: 3

The length, in seconds, of how long to the source waits for the reply for any PING RPC that it sends, before considering the target to be down.