apply review comments from @bleskes
This commit is contained in:
parent
12f905a675
commit
db15682b3c
|
@ -120,7 +120,7 @@ public class RecoverySettings extends AbstractComponent implements Closeable {
|
||||||
rateLimiter = new SimpleRateLimiter(maxBytesPerSec.mbFrac());
|
rateLimiter = new SimpleRateLimiter(maxBytesPerSec.mbFrac());
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.debug("using max_bytes_per_sec[{}], concurrent_streams [{}], file_chunk_size [{}], translog_size [{}]",
|
logger.debug("using max_bytes_per_sec[{}], concurrent_streams [{}]",
|
||||||
maxBytesPerSec, concurrentStreams);
|
maxBytesPerSec, concurrentStreams);
|
||||||
|
|
||||||
nodeSettingsService.addListener(new ApplySettings());
|
nodeSettingsService.addListener(new ApplySettings());
|
||||||
|
|
|
@ -547,7 +547,7 @@ public class RecoverySourceHandler {
|
||||||
|
|
||||||
private void sendNextChunk(long position, BytesArray content, boolean lastChunk) throws IOException {
|
private void sendNextChunk(long position, BytesArray content, boolean lastChunk) throws IOException {
|
||||||
final TransportRequestOptions chunkSendOptions = TransportRequestOptions.builder()
|
final TransportRequestOptions chunkSendOptions = TransportRequestOptions.builder()
|
||||||
.withCompress(false)
|
.withCompress(false) // lucene files are already compressed and therefore compressing this won't really help much so we are safing the cpu for other things
|
||||||
.withType(TransportRequestOptions.Type.RECOVERY)
|
.withType(TransportRequestOptions.Type.RECOVERY)
|
||||||
.withTimeout(recoverySettings.internalActionTimeout())
|
.withTimeout(recoverySettings.internalActionTimeout())
|
||||||
.build();
|
.build();
|
||||||
|
|
Loading…
Reference in New Issue