forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server/status: de-spam system memory log
Until cockroachdb#28189, GetTotalMemory was only called at startup; that PR caused it to be called every 10s, filling the logs with spam on some platforms. This changes it to only log warnings on startup. The value could be cached so it only has to be called on startup, but it seems possible that the amount of RAM on the machine could change at runtime, and we'd want to reflect that in the Admin UI, which is where the results of the every-10s calls end up. Release note: None
- Loading branch information
Pete Vilter
committed
Aug 30, 2018
1 parent
b09f173
commit ac5254a
Showing
1 changed file
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters