vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.86k stars 1.21k forks source link

option to enable build-in log rotation enabled leveraging glog #5688 #5958

Closed E2ern1ty closed 1 month ago

E2ern1ty commented 1 month ago

What type of PR is this?

What problem(s) does this PR solve?

Issue(s) number:

5688

Description:

add option log_clean_days to enable build-in log rotation enabled leveraging glog

How do you solve it?

use google::EnableLogCleaner func

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Checklist:

Tests:

Affects:

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug .....

E2ern1ty commented 1 month ago

I turned off the ntp service in the test cluster and set the time through the date command. The log can be automatically cleared when the new log is refreshed.

wey-gu commented 1 month ago

Thanks for the great work :-D