Partitions
Armory writes its data to a series of files called partitions.
This section describes configuration options available to tune a Backup’s behaviour when generating these files.
Partition size
When a partition reaches a certain size, it is closed and a new partition is opened.
The size of these partitions can be configured with the .spec.partitionRolloverTriggers.size
setting:
apiVersion: kannika.io/v1alphakind: Backupmetadata: name: backupspec: sink: "sink" source: "source" partitionRolloverTriggers: size: 10 MiB
Periodic Rollover
Slow streams may not fill an entire partition for a long time, thus leaving old data uncommitted to persistent storage for a while.
You can force a Backup to perform a rollover after some duration if the max partition size has not yet been reached:
apiVersion: kannika.io/v1alphakind: Backupmetadata: name: backupspec: sink: "sink" source: "source" partitionRolloverTriggers: # Close a partition once it reaches 25MiB ... size: 25 MiB # ... or after 1h, whichever happens first. timeoutSeconds: 3600