Skip to content

Add log rotation and prevent noisy logs#87

Merged
kjoseph07 merged 1 commit intoopensearch-project:mainfrom
kjoseph07:karisjos-logging-bug-fix
Nov 9, 2021
Merged

Add log rotation and prevent noisy logs#87
kjoseph07 merged 1 commit intoopensearch-project:mainfrom
kjoseph07:karisjos-logging-bug-fix

Conversation

@kjoseph07
Copy link
Copy Markdown
Contributor

Signed-off-by: Karishma Joseph karisjos@amazon.com

Is your feature request related to a problem? Please provide an existing Issue # , or describe.
opensearch-project/performance-analyzer#80
#84

Describe the solution you are proposing
Rotate PerformanceAnalyzer.log and performance_analyzer_agent_stats.log files to avoid disk issue. Set the log level to debug (and not info) for the stats logs to prevent excessive noisy logs being piped to the console and opensearch.log file.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@kjoseph07 kjoseph07 requested a review from sruti1312 November 9, 2021 02:25
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 9, 2021

Codecov Report

Merging #87 (dc26b3b) into main (b3059e7) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main      #87   +/-   ##
=========================================
  Coverage     72.03%   72.03%           
+ Complexity     2948     2947    -1     
=========================================
  Files           376      376           
  Lines         18723    18723           
  Branches       1432     1432           
=========================================
  Hits          13487    13487           
  Misses         4650     4650           
  Partials        586      586           
Impacted Files Coverage Δ
...performanceanalyzer/collectors/StatsCollector.java 92.48% <100.00%> (ø)
...rg/opensearch/performanceanalyzer/hwnet/Disks.java 50.66% <0.00%> (-6.67%) ⬇️
...ceanalyzer/rca/store/rca/hotshard/HotShardRca.java 86.13% <0.00%> (-1.00%) ⬇️
...formanceanalyzer/PerformanceAnalyzerWebServer.java 74.62% <0.00%> (+5.97%) ⬆️
.../org/opensearch/performanceanalyzer/core/Util.java 70.83% <0.00%> (+8.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3059e7...dc26b3b. Read the comment docs.

sruti1312
sruti1312 previously approved these changes Nov 9, 2021
Signed-off-by: Karishma Joseph <karisjos@amazon.com>
@kjoseph07 kjoseph07 merged commit 571360e into opensearch-project:main Nov 9, 2021
kjoseph07 added a commit that referenced this pull request Nov 9, 2021
* Change main to 1.2

Signed-off-by: Karishma Joseph <karisjos@amazon.com>

* Update README.md (#88)

Signed-off-by: Sruti Parthiban <partsrut@amazon.com>

* Add log rotation and prevent noisy logs (#87)

Signed-off-by: Karishma Joseph <karisjos@amazon.com>

Co-authored-by: Sruti Parthiban <partsrut@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants