Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
(wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Oct 30, 2018
1 parent 80000fa commit 6d01ce3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,23 @@ start_services() {
sleep 1
done

# Tries to limit the max number of open files under the system limit
if [ "$OPEN_FILE_LIMIT" -lt 10240 ]; then
ulimit -Sn 10240
fi
cat - > "$TEST_DIR/tikv-config.toml" <<EOF
[rocksdb]
max-open-files = 4620
[raftdb]
max-open-files = 4620
EOF

echo "Starting TiKV..."
bin/tikv-server \
--pd 127.0.0.1:2379 \
-A 127.0.0.1:20160 \
--log-file "$TEST_DIR/tikv.log" \
-C "$TEST_DIR/tikv-config.toml" \
-s "$TEST_DIR/tikv" &
sleep 1

Expand Down

0 comments on commit 6d01ce3

Please sign in to comment.