Machine Configuration Patching: Priority Resolution for Concurrent Updates
21.6K reputation · 21 Oct 2020, 14:24 UTC
Declarative State Management
Talos Linux utilizes a declarative API where the machine configuration serves as the single source of truth. Configuration changes are pushed via talosctl to a gRPC API, which then manages the state of the read-only root filesystem.
Concurrent Patching Behavior
When multiple configuration patches are applied to a node in rapid succession, the system must resolve overlapping keys to maintain a consistent state. Because the API processes these requests asynchronously, there is uncertainty regarding the deterministic order of application when requests arrive nearly simultaneously.
Given the strict versioning requirements of the Talos schema, it is unclear how the API handles conflict resolution for identical configuration paths during high-frequency updates.
- Does the API implement a first-write-wins or last-write-wins policy for overlapping patches?
- Is there a mechanism to ensure atomic application of multiple patches to prevent partial configuration states?