Manage influxDB Batches avoiding OutOfMemory Exception#4291
Manage influxDB Batches avoiding OutOfMemory Exception#4291yadvr merged 1 commit intoapache:4.13from
Conversation
|
@blueorangutan package |
|
@GabrielBrascher a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-1830 |
yadvr
left a comment
There was a problem hiding this comment.
lgtm, can't test it; can help run regression tests though
|
@blueorangutan test |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2585)
|
wido
left a comment
There was a problem hiding this comment.
LGTM
Running this in production (manual backport) at PCextreme and is working as expected
|
LGTM, merging based on smokettests and confirmation from @wido |
Description
After a few hours running with InfluxDB configured, CloudStack hangs due to OutOfMemoryException raised. The exception happens at com.cloud.server.StatsCollector.writeBatches(StatsCollector.java:1510):
Context on InfluxDB Batch: Enabling batch on InfluxDB is great and speeds writing but it requires caution to avoid Zombie threads.
Solution: This happens because the batching feature creates an internal thread pool that needs to be shut down explicitly; therefore, it is important to add:
influxDB.close().Types of changes
How Has This Been Tested?
OutOfMemoryExceptionhappens in less than 10 hours on the staging environment.