change the default chunk size when recovering from the default 100kb to 500kb.

This commit is contained in:
kimchy 2010-11-29 14:33:49 +02:00
parent c0945831e8
commit 2b039bd0b0
1 changed files with 3 additions and 1 deletions

View File

@ -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());
}