Prerequisite
DebeziumStream Retention Configuration
- Install nats-cli tool
- Create the DebeziumStream (skip to step 3 if the stream exists)
nats stream add DebeziumStream --storage=file -s nats://{host}:{port}
- Edit the stream to write to file system & limit the retention period (for example: 7 days)
nats stream edit DebeziumStream --max-age=7d -s nats://{host}:{port}
Minio Object Expiry Configuration
- Install minio client tool mc
- Set alias to the minio server (replace placeholder in with your environment setup)
mc alias set {name} {minio-server-url} {access-key} {secret-key}
- Use the alias created in step 2 to set the bucket expiry by day
mc ilm rule add --expire-days 7 {name}/{bucketname}