Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(pubsublite): specify ranges for TopicConfigToUpdate values #3774

Merged
merged 1 commit into from
Mar 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions pubsublite/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type TopicConfig struct {
// 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 `RetentionDuration`. Must be > 0.
// value of `RetentionDuration`. Must be >= 30 GiB.
PerPartitionBytes int64

// How long a published message is retained. If set to `InfiniteRetention`,
Expand Down Expand Up @@ -120,17 +120,21 @@ type TopicConfigToUpdate struct {
// "projects/PROJECT_ID/locations/ZONE/topics/TOPIC_ID". Required.
Name string

// If non-zero, will update the number of partitions in the topic. The number
// of partitions can only be increased, not decreased.
// If non-zero, will update the number of partitions in the topic.
// Set value must be >= 1. The number of partitions can only be increased, not
// decreased.
PartitionCount int

// If non-zero, will update the publish throughput capacity per partition.
// Set value must be >= 4 and <= 16.
PublishCapacityMiBPerSec int

// If non-zero, will update the subscribe throughput capacity per partition.
// Set value must be >= 4 and <= 32.
SubscribeCapacityMiBPerSec int

// If non-zero, will update the provisioned storage per partition.
// Set value must be >= 30 GiB.
PerPartitionBytes int64

// If specified, will update how long a published message is retained. To
Expand Down