Skip to main content
Version: 2.2.0

Prerequisite

DebeziumStream Retention Configuration

  1. Install nats-cli tool
  2. Create the DebeziumStream (skip to step 3 if the stream exists)
nats stream add DebeziumStream --storage=file -s nats://{host}:{port}
  1. 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

  1. Install minio client tool mc
  2. Set alias to the minio server (replace placeholder in with your environment setup)
mc alias set {name} {minio-server-url} {access-key} {secret-key}
  1. Use the alias created in step 2 to set the bucket expiry by day
mc ilm rule add --expire-days 7 {name}/{bucketname}

Postgresql

Postgres client and postgres server should be in the same version for better compatibility. In RnR, we use postgres client to backup and restore the live database through the pg_dump and pg_restore commands. It requires the postgres client version to be less than or equal to the postgres server version.

  • If the postgres client version is greater than the postgres server version, the restore operation may corrupt the operation.
  • Currently, we use the latest version of postgres client (17.5) in the RnR deployment.