change the default chunk size when recovering from the default 100kb to 500kb.
This commit is contained in:
parent
c0945831e8
commit
2b039bd0b0
|
@ -78,10 +78,12 @@ public class RecoverySource extends AbstractComponent {
|
|||
this.transportService = transportService;
|
||||
this.indicesService = indicesService;
|
||||
|
||||
this.fileChunkSize = componentSettings.getAsBytesSize("file_chunk_size", new ByteSizeValue(100, ByteSizeUnit.KB));
|
||||
this.fileChunkSize = componentSettings.getAsBytesSize("file_chunk_size", new ByteSizeValue(500, ByteSizeUnit.KB));
|
||||
this.translogBatchSize = componentSettings.getAsInt("translog_batch_size", 100);
|
||||
this.compress = componentSettings.getAsBoolean("compress", true);
|
||||
|
||||
logger.debug("using file_chunk_size [{}], translog_batch_size [{}], and compress [{}]", fileChunkSize, translogBatchSize, compress);
|
||||
|
||||
transportService.registerHandler(Actions.START_RECOVERY, new StartRecoveryTransportRequestHandler());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue