Increased default read rate limit

This commit is contained in:
Xavi Ramirez 2017-08-02 19:46:13 +00:00
parent 04042290f5
commit 7a7716e824

View file

@ -63,8 +63,9 @@ func withDefaults(config Config) Config {
config.DeployEnv = "unknown-env"
}
// Not totally clear we need this rate limit. The KCL may do rate limiting for us.
if config.ReadRateLimit == 0 {
config.ReadRateLimit = 300
config.ReadRateLimit = 1000
}
if config.ReadBurstLimit == 0 {
config.ReadBurstLimit = int(float64(config.ReadRateLimit)*1.2 + 0.5)