yugabyte/yugabyte-db

[docdb] Better log rotation

開放

#3,604 建立於 2020年2月10日

 (6 則留言) (1 個反應) (0 位負責人)C (1,003 個分叉)batch import
area/docdbgood first issuehelp wantedkind/enhancementpriority/medium

倉庫指標

星標
 (8,229 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Jira Link: DB-2438 Hi

We need a better log rotation policy. 1 way is to keep static naming and allow another process to rotate: https://github.com/google/glog/pull/19 (patch https://github.com/google/glog/commit/58d7f873dcde8cf0fe6f37817643a7ff4e49e6d4)

Another way would be to add an option glog_delete_after and a simple bg thread to enforce the policy. For now, having glog_delete_after=<size> should be a good start. It will take us a day or two to implement and probably save us devops trouble in different environments (k8s sidecar comes to mind).

貢獻者指南