Skip to content

Commit

Permalink
increase default batchSize from 100 to 1000 for better throughput
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Hoschek committed Jun 24, 2013
1 parent 58242f1 commit d1baf4e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SOLR_LOCATOR : {
collection : ${SOLR_COLLECTION}
zkHost : ${ZK_HOST}
solrHomeDir : ${SOLR_HOME_DIR}
# batchSize : 100
# batchSize : 1000
}
SOLR_LOCATOR : ${?ENV_SOLR_LOCATOR}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ SOLR_LOCATOR : {
zkHost : ${ZK_HOST}
solrUrl : ${SOLR_URL}
solrHomeDir : ${SOLR_HOME_DIR}
# batchSize : 100
# batchSize : 1000
}
SOLR_LOCATOR : ${?ENV_SOLR_LOCATOR}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ SOLR_LOCATOR : {
collection : ${SOLR_COLLECTION}
zkHost : ${ZK_HOST}
solrHomeDir : ${SOLR_HOME_DIR}
# batchSize : 100
# batchSize : 1000
}
SOLR_LOCATOR : ${?ENV_SOLR_LOCATOR}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SOLR_LOCATOR : {
zkHost : "127.0.0.1:2181/solr"

# The maximum number of documents to send to Solr per network batch (throughput knob)
# batchSize : 100
# batchSize : 1000
}

# Specify an array of one or more morphlines, each of which defines an ETL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
SOLR_LOCATOR : {
collection : collection1
zkHost : "127.0.0.1:2181/solr"
# batchSize : 100
# batchSize : 1000
}

morphlines : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class SolrLocator {
private String zkHost;
private String solrUrl;
private String solrHomeDir;
private int batchSize = 100;
private int batchSize = 1000;

private static final String SOLR_HOME_PROPERTY_NAME = "solr.solr.home";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/
public class MorphlineSink extends AbstractSink implements Configurable {

private int maxBatchSize = 100;
private int maxBatchSize = 1000;
private long maxBatchDurationMillis = 1000;
private String handlerClass;
private MorphlineHandler handler;
Expand Down

0 comments on commit d1baf4e

Please sign in to comment.