Skip to content

Commit

Permalink
set tikv region size from 96M to 1M (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
marsishandsome authored Aug 16, 2019
1 parent e799863 commit 9551f7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/integration_test.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ def call(ghprbActualCommit, ghprbCommentBody, ghprbPullId, ghprbPullTitle, ghprb
killall -9 tikv-server || true
killall -9 pd-server || true
sleep 10
bin/pd-server --name=pd --data-dir=pd &>pd.log &
bin/pd-server --name=pd --data-dir=pd --config=go/src/github.com/pingcap/tispark/config/pd.toml &>pd.log &
sleep 10
bin/tikv-server --pd=127.0.0.1:2379 -s tikv --addr=0.0.0.0:20160 --advertise-addr=127.0.0.1:20160 &>tikv.log &
bin/tikv-server --pd=127.0.0.1:2379 -s tikv --addr=0.0.0.0:20160 --advertise-addr=127.0.0.1:20160 --config=go/src/github.com/pingcap/tispark/config/tikv.toml &>tikv.log &
sleep 10
ps aux | grep '-server' || true
curl -s 127.0.0.1:2379/pd/api/v1/status || true
Expand Down
1 change: 1 addition & 0 deletions config/tikv.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ address = "pushgateway:9091"
# bit smaller.
# region-max-size = "144MB"
# region-split-size = "96MB"
region-split-size = "1MB"

[rocksdb]
# Maximum number of concurrent background jobs (compactions and flushes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ object SharedSQLContext extends Logging {

sparkConf.set("spark.tispark.write.allow_spark_sql", "true")
sparkConf.set("spark.tispark.write.without_lock_table", "true")
sparkConf.set("spark.tispark.tikv.region_split_size_in_mb", "1")

if (isHiveEnabled) {
// delete meta store directory to avoid multiple derby instances SPARK-10872
Expand Down

0 comments on commit 9551f7d

Please sign in to comment.