-
Notifications
You must be signed in to change notification settings - Fork 96
Conversation
tools/common/lib.go
Outdated
// MinConsumedMessagesRetention is the minimum consumed retention | ||
MinConsumedMessagesRetention = 60 | ||
// MaxConsumedMessagesRetention is the maximum consumed retention | ||
MaxConsumedMessagesRetention = 100 * 24 * 3600 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think 100 days is too long, maybe change to 30 days?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for unconsumed retention
tools/common/lib.go
Outdated
// MaxUnconsumedMessagesRetention is the maximum unconsumed retention | ||
MaxUnconsumedMessagesRetention = 100 * 24 * 3600 | ||
// MinLockTimeoutSeconds is the minimum lock timeout seconds | ||
MinLockTimeoutSeconds = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too short? maybe 5 seconds
tools/common/lib.go
Outdated
// MinLockTimeoutSeconds is the minimum lock timeout seconds | ||
MinLockTimeoutSeconds = 0 | ||
// MaxLockTimeoutSeconds is the maximum lock timeout seconds | ||
MaxLockTimeoutSeconds = 100 * 24 * 3600 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be too long. I think generally lock timeout is in seconds. Maybe 1hr is more than enough
tools/common/lib.go
Outdated
// MaxLockTimeoutSeconds is the maximum lock timeout seconds | ||
MaxLockTimeoutSeconds = 100 * 24 * 3600 | ||
// MinMaxDeliveryCount is the minimum value for max delivery count | ||
MinMaxDeliveryCount = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min is 1
tools/common/lib.go
Outdated
// MinMaxDeliveryCount is the minimum value for max delivery count | ||
MinMaxDeliveryCount = 0 | ||
// MaxMaxDeliveryCount is the maximum value for max delivery count | ||
MaxMaxDeliveryCount = math.MaxInt32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need a cap. Maybe look at all cgs on prod, and find out what's the max we're using today
tools/common/lib.go
Outdated
// MaxUnconsumedMessagesRetention is the maximum unconsumed retention | ||
MaxUnconsumedMessagesRetention = 7 * 24 * 3600 | ||
// MinLockTimeoutSeconds is the minimum lock timeout seconds | ||
MinLockTimeoutSeconds = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be at least 10 seconds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Let me update.
tools/common/lib.go
Outdated
// MaxLockTimeoutSeconds is the maximum lock timeout seconds | ||
MaxLockTimeoutSeconds = 3600 | ||
// MinMaxDeliveryCount is the minimum value for max delivery count | ||
MinMaxDeliveryCount = 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, just see the comment :)
* Add input validation for cli tool * Add admin_mode to bypass input validation for admin tool * Update MinLockTimeoutSeconds and MinMaxDeliveryCount
No description provided.