Merge pull request #14 from Clever/increase-default-read-rate

Increased default read rate.
This commit is contained in:
Xavi 2017-08-22 11:43:05 -07:00 committed by GitHub
commit a559c33272

View file

@ -53,9 +53,8 @@ func withDefaults(config Config) Config {
config.BatchSize = 4 * 1024 * 1024 config.BatchSize = 4 * 1024 * 1024
} }
// Not totally clear we need this rate limit. The KCL may do rate limiting for us.
if config.ReadRateLimit == 0 { if config.ReadRateLimit == 0 {
config.ReadRateLimit = 1000 config.ReadRateLimit = 2500
} }
if config.ReadBurstLimit == 0 { if config.ReadBurstLimit == 0 {
config.ReadBurstLimit = int(float64(config.ReadRateLimit)*1.2 + 0.5) config.ReadBurstLimit = int(float64(config.ReadRateLimit)*1.2 + 0.5)