Comment 20 for bug 1673865

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/30178
Committed: http://github.org/Juniper/contrail-controller/commit/7f5a1a1889a7272059a632256102bc978a3e96c7
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 7f5a1a1889a7272059a632256102bc978a3e96c7
Author: mkheni <email address hidden>
Date: Tue Apr 4 09:49:47 2017 -0700

contrail-logs command does not complete in time and process hogs memory.

If run in a scale setup and for a longer time period (i.e. 5-6h or more), contrail-logs would take a lot of memory and go to D state due to waiting
for IO. This fix divides the query in multiple queries of 10 min so that contrail-logs does not take a lot of memory and have a smaller amount of
data to write to the disk. Moreover, this fix would fetch the results for the next query while writing the results for the current query to the disk
in parallel because writing to the disk may take some time.

Change-Id: Ib68c7058e970e853288d8236ea4239bdb471b313
Closes-bug: #1673865
(cherry picked from commit 9ec7e8d1d2f34149556b4bf8e874445aa2ebfd68)