Required settings
- Database cluster with changefeed enabled
- Service account
Setup script
Creating a service account
Granting read-only access
Use the following script to grant read-only access to the service account. Make sure to replacepublic and your_schema with the appropriate schema name.
Configuring garbage collection
By default, gc.ttlseconds is configured to 4 hours. You can check this value and also configure this by running the following commands. We recommend setting this to be at least 12 hours, less for databases with small amount of data volume.Enabling changefeed
If you are on CockroachDB Basic or Standard,
kv.rangefeed.enabled is enabled by default.