Closed mzsanford closed 11 years ago
So you're using batching without well defined flush boundaries? That's an interesting approach.
The batch size is set by the application code (which best understands that) but the host and port configuration varies. It's defaulted in the app and then our configuration is actually Ruby code which configures things per-environment (similar to Rails). We needed to set the host in production and found it didn't work after an application added batching.
I have some code that configured Statsd programmatically. In order to use
Statsd::Batch
as a drop-in replacement (config-wise) it needs to support the host and port setters so I added them in the attached pull request.