Files
Yu XiaandGitHub f8cc7e6b39 Add rate limiter on low priority replication tasks (#7799)
## What changed?
Add rate limiter on low priority replication tasks

## Why?
This gives the ability to wire up rate limiter on replication stack.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)
2025-06-02 15:59:15 -07:00

25 lines
526 B
Go

package replication
import (
"go.temporal.io/server/common/quotas"
)
const (
taskSchedulerToken = 1
)
type (
ServerSchedulerRateLimiter quotas.RequestRateLimiter
ClientSchedulerRateLimiter quotas.RequestRateLimiter
)
func ClientSchedulerRateLimiterProvider() ClientSchedulerRateLimiter {
// Experiment with no op rate limiter
return quotas.NoopRequestRateLimiter
}
func ServerSchedulerRateLimiterProvider() ServerSchedulerRateLimiter {
// Experiment with no op rate limiter
return quotas.NoopRequestRateLimiter
}