Storage¶
Instances that share storage elect one primary. Other instances start in standby mode and wait until the primary releases its lock or its lock expires. Before becoming ready, a new primary reloads persisted state and reconstructs its queue. All instances must use the same configuration and the same STORAGE_BACKEND↰. See High Availability.
Two backends are supported: filesystem and s3.
Filesystem¶
With STORAGE_BACKEND=filesystem, mount the same DATA_PATH↰ on every instance.
S3¶
The bucket root is the data root.
Set STORAGE_S3_ENDPOINT_URL↰. Set STORAGE_S3_REGION when the storage needs an explicit region. Otherwise boto3 uses its normal region configuration.
To supply credentials for storage explicitly, set both STORAGE_S3_ACCESS_KEY_ID and STORAGE_S3_SECRET_ACCESS_KEY. When omitted, credentials use the standard boto3 credential chain.
Permissions¶
s3:ListBucketfor the buckets3:GetObject,s3:PutObject,s3:DeleteObjectfor its objects
Migrate to S3¶
- Stop all IMPulse instances.
- Copy the contents of
DATA_PATH↰ to the selected bucket's root, excluding.lock.d. - Enable the S3 backend.