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.
ui: Compute longer Histogram Windows
Adds a derived configuration value "HistogramWindowDuration" to the server config, which specifies the approximate duration for which individual samples are retained in our sliding window histograms. Previously, histogram windows were initialized using the MetricSampleWindow value. However, this resulted in cockroachdb#12998; this is caused because the histogram window is rotated when querying a histogram, not when recording a sample. In many cases, the timing is such that all samples recorded are discarded right before the histogram is queried, resulting in a zero value. Because of this, and additionally issue cockroachdb#12835, we are lengthening the histogram window duration for all histogram metrics. This includes all existing histograms that were using MetricSampleWindow, and a few histograms which were using constant values of 1 minute. The new value is arbitrarily chosen to be six times the MetricSampleWindow configuration setting; under default settings, that equates to a window of one minute. The work here can be considered a temporary fix to alleviate the problems in a couple of issues; the histogram system is going to be greatly overhauled in issue cockroachdb#7896, part of which will be the removal of sliding-window histograms. Fixes cockroachdb#12835 Fixes cockroachdb#12998
- Loading branch information
Matt Tracy
committed
Feb 3, 2017
1 parent
c10e3e8
commit c15bfe6
Showing
13 changed files
with
89 additions
and
46 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
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
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
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
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
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
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
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
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
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
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
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
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