Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 9ec7e8d)
- Loading branch information
Showing
5 changed files
with
148 additions
and
32 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
Oops, something went wrong.