Skip to content

Commit d5308a1

Browse files
committed
feat: s3 update marker
1 parent 8bb7655 commit d5308a1

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

config/agent/lightningstream.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,22 @@ storage:
3030
region: ${S3_REGION}
3131
bucket: ${S3_BUCKET}
3232
endpoint_url: ${S3_ENDPOINT_URL}
33+
use_update_marker: true
3334

35+
cleanup:
36+
# Enable the cleaner
37+
enabled: true
38+
# Interval to check if snapshots need to be cleaned. Some perturbation
39+
# is added to this interval so that multiple instances started at exactly
40+
# the same time do not always try to clean the same snapshots at the same
41+
# time.
42+
interval: 1h
43+
# Snapshots must have been available for at least this interval before they
44+
# are considered for cleaning, so that slower instances have a chance to
45+
# download them.
46+
must_keep_interval: 24h
47+
# Remove stale instances without newer snapshots after this interval, but
48+
# only after we are sure this instance has downloaded and merged that
49+
# snapshot, and subsequently written a new snapshots that incorporates these
50+
# changes.
51+
remove_old_instances_interval: 168h # 1 week

config/overlays/agent-powerdns/lightningstream.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,20 @@ storage:
3131
bucket: ${S3_BUCKET}
3232
create_bucket: true
3333
endpoint_url: ${S3_ENDPOINT_URL}
34-
34+
cleanup:
35+
# Enable the cleaner
36+
enabled: true
37+
# Interval to check if snapshots need to be cleaned. Some perturbation
38+
# is added to this interval so that multiple instances started at exactly
39+
# the same time do not always try to clean the same snapshots at the same
40+
# time.
41+
interval: 1h
42+
# Snapshots must have been available for at least this interval before they
43+
# are considered for cleaning, so that slower instances have a chance to
44+
# download them.
45+
must_keep_interval: 24h
46+
# Remove stale instances without newer snapshots after this interval, but
47+
# only after we are sure this instance has downloaded and merged that
48+
# snapshot, and subsequently written a new snapshots that incorporates these
49+
# changes.
50+
remove_old_instances_interval: 168h # 1 week

0 commit comments

Comments
 (0)