There was an error while loading. Please reload this page.
1 parent 976d485 commit 599ddcaCopy full SHA for 599ddca
1 file changed
prometheus-metrics-core/src/main/java/io/prometheus/metrics/core/metrics/Buffer.java
@@ -21,7 +21,9 @@
21
*/
22
class Buffer {
23
private static final long bufferActiveBit = 1L << 63;
24
- private static final long DEFAULT_MAX_SPIN_WAIT_NANOS = TimeUnit.SECONDS.toNanos(1);
+ // Keep collection bounded without failing healthy scrapes during short periods of scheduler or
25
+ // CI-host contention.
26
+ private static final long DEFAULT_MAX_SPIN_WAIT_NANOS = TimeUnit.SECONDS.toNanos(5);
27
private static final int DEFAULT_MAX_BUFFER_SIZE = 1_000_000;
28
private static final int INITIAL_BUFFER_SIZE = 128;
29
0 commit comments