[SERVER-27259] Log the db sizes soon after startup, in an INFO line. Created: 01/Dec/16  Updated: 06/Dec/22  Resolved: 18/Jan/18

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Akira Kurogane Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Participants:

 Description   

I thought it would be nice if the logs included db sizes when it's a log rotate, or a restart. (But not a first-time start, when the sizes would just be zero.)

E.g.

<timestamp> I STORAGE?CONTROL?  [<threadname>] current db sizes: admin 146249812 (0.14GB), local 248824000000 (240GB), epectmth 1425934976820 (1.35TB), epectd 7658893915420 (0.85TB)

If there's a good time to run a listDatabases command at some point early enough this line is likely to appear in the first screen whilst looking at the log file in an editor (i.e. in the first 40 ~ 60 lines) I think this would be pretty valuable for analysis.



 Comments   
Comment by Akira Kurogane [ 18/Jan/18 ]

Given the delay and log bloat this would cause when there is a huge number of databases I see more downsides than upsides. FTDC data has improved things for TSEs these days too.

I'll close this one.

Generated at Thu Feb 08 04:14:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.