Class RetentionConfig (1.10.0)

RetentionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The settings for a topic's message retention.

Attributes

Name Description
per_partition_bytes :noindex: int
The provisioned storage, in bytes, per partition. If the number of bytes stored in any of the topic's partitions grows beyond this value, older messages will be dropped to make room for newer ones, regardless of the value of period.
period :noindex: google.protobuf.duration_pb2.Duration
How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below per_partition_bytes.