View Source ProcessHub.Strategy.Migration.Base protocol (ProcessHub v0.1.0-alpha)

The migration strategy protocol provides API functions for migrating child processes.

Summary

Functions

Migrates processes from the local to the remote node.

Types

Functions

Link to this function

handle_migration(struct, hub_id, child_spec, added_node, sync_strategy)

View Source

Migrates processes from the local to the remote node.

Process migration happens when a new node joins the ProcessHub cluster, and some of the local processes are moved to the newly connected node. This also requires the processes to be terminated on the local node.

The redundancy strategy will deal with scenarios where processes are not terminated locally and are duplicated on the new node.