Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
* An extension to thread pool executor, which tracks statistics for the task execution time.
*/
public final class TaskExecutionTimeTrackingEsThreadPoolExecutor extends EsThreadPoolExecutor {
public static final int QUEUE_LATENCY_HISTOGRAM_BUCKETS = 18;
// 20 buckets means the upper bound on the largest bound bucket will be 2^18 ms (~= 4 minutes 20 seconds)
public static final int QUEUE_LATENCY_HISTOGRAM_BUCKETS = 20;
private static final int[] LATENCY_PERCENTILES_TO_REPORT = { 50, 90, 99 };

private final Function<Runnable, WrappedRunnable> runnableWrapper;
Expand Down