Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27259

Log the db sizes soon after startup, in an INFO line.

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Logging
    • Labels:
      None
    • Storage Execution
    • Fully Compatible

      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.

      Unable to find source-code formatter for language: txt. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      <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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            akira.kurogane Akira Kurogane
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: