jenkinsci / github-autostatus-plugin

Jenkins plugin to provide automatic status for multibranch jobs
https://plugins.jenkins.io/github-autostatus/
MIT License
52 stars 34 forks source link

Batch influxdb POST requests #93

Closed cPanelRicky closed 4 years ago

cPanelRicky commented 4 years ago

Rather then sending a request for each individual test case, I made a change that will batch the POST requests per test suite which will result in a single HTTP Post request being made that includes the test suite datapoint as well as all the test cases datapoints.

This follows the recommendation from influxdb to batch requests to the server with between 5-10K datapoints per request. This significantly reduces the number of writes InfluxDB has to perform as well as reduces overhead resulting from large numbers of HTTP requests coming in at one time.

jeffpearce commented 4 years ago

Thanks for the PR @cPanelRicky - this is incredibly useful