-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of datapoint ingestion
Several users reported timeouts logged in Druid Historical/MiddleManager daemons when their traffic is really high (like 1500 msg/s). The exporter was built with a more conservative use case in mind (Wikimedia's), so the default sync single process of make_server() has been enough up to now. This patch separates datapoints ingestion (namely traffic that comes from Druid daemons towards the exporter) and datapoints processing, using a (thread-safe) queue. It also uses the gevent's WSGIServer implementation, that uses coroutines/greenlets and it is able to sustain a lot more (concurrent) traffic. GH issue: #11 Change-Id: I4b335a1f663957277fe0c443492c4000bbbcac89
- Loading branch information
Showing
3 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters