Increase RamAccountingTermsEnum flush size from 1mb to 5mb

Reduces the number of logs when TRACE logging is turned on for the
circuit breaker
This commit is contained in:
Lee Hinman 2014-03-03 14:27:45 -07:00
parent 2f48be597e
commit 51f869cfc2
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ import java.io.IOException;
*/
public final class RamAccountingTermsEnum extends FilteredTermsEnum {
// Flush every 1mb
private static final long FLUSH_BUFFER_SIZE = 1024 * 1024;
// Flush every 5mb
private static final long FLUSH_BUFFER_SIZE = 1024 * 1024 * 5;
private final MemoryCircuitBreaker breaker;
private final TermsEnum termsEnum;