8000 try to raise file descriptors limit in local start scripts (#13540) · tylde/arangodb@d482ab0 · GitHub
[go: up one dir, main page]

Skip to content

Commit d482ab0

Browse files
authored
try to raise file descriptors limit in local start scripts (arangodb#13540)
1 parent 389342f commit d482ab0

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
devel
22
-----
33

4+
* Try to raise file descriptors limit in local start scripts (in `scripts/`
5+
directory - used for development only).
6+
47
* Fix error reporting in the reloadTLS route.
58

69
* Fix potential undefined behavior when iterating over connected nodes in an

scripts/startLeaderFollower.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
22
params=("$@")
33

4+
ulimit -H -n 131072 || true
5+
ulimit -S -n 131072 || true
6+
47
rm -rf active
58
if [ -d cluster-init ];then
69
echo "== creating cluster directory from existing cluster-init directory"
@@ -141,6 +144,7 @@ for aid in `seq 0 $(( $NRAGENTS - 1 ))`; do
141144
--server.statistics false \
142145
--log.file active/$PORT.log \
143146
--log.level $LOG_LEVEL_AGENCY \
147+
--server.descriptors-minimum 0 \
144148
$STORAGE_ENGINE \
145149
$AUTHENTICATION \
146150
$SSLKEYFILE \
@@ -170,6 +174,7 @@ start() {
170174
--javascript.module-directory $SRC_DIR/enterprise/js \
171175
--javascript.app-path active/apps$PORT \
172176
--log.level $LOG_LEVEL_CLUSTER \
177+
--server.descriptors-minimum 0 \
173178
$STORAGE_ENGINE \
174179
$AUTHENTICATION \
175180
$SSLKEYFILE \

scripts/startLocalCluster.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
22
params=("$@")
33

4+
ulimit -H -n 131072 || true
5+
ulimit -S -n 131072 || true
6+
47
rm -rf cluster
58
if [ -d cluster-init ];then
69
echo "== creating cluster directory from existing cluster-init directory"
@@ -154,6 +157,7 @@ for aid in `seq 0 $(( $NRAGENTS - 1 ))`; do
154157
--log.file cluster/$PORT.log \
155158
--log.force-direct false \
156159
--log.level $LOG_LEVEL_AGENCY \
160+
--server.descriptors-minimum 0 \
157161
$STORAGE_ENGINE \
158162
$AUTHENTICATION \
159163
$SSLKEYFILE \
@@ -180,6 +184,7 @@ for aid in `seq 0 $(( $NRAGENTS - 1 ))`; do
180184
--log.file cluster/$PORT.log \
181185
--log.force-direct false \
182186
--log.level $LOG_LEVEL_AGENCY \
187+
--server.descriptors-minimum 0 \
183188
$STORAGE_ENGINE \
184189
$AUTHENTICATION \
185190
$SSLKEYFILE \
@@ -236,6 +241,7 @@ start() {
236241
--javascript.app-path cluster/apps$PORT \
237242
--log.force-direct false \
238243
--log.level $LOG_LEVEL_CLUSTER \
244+
--server.descriptors-minimum 0 \
239245
--javascript.allow-admin-execute true \
240246
$SYSTEM_REPLICATION_FACTOR \
241247
$STORAGE_ENGINE \
@@ -262,6 +268,7 @@ start() {
262268
--log.force-direct false \
263269
--log.thread true \
264270
--log.level $LOG_LEVEL_CLUSTER \
271+
--server.descriptors-minimum 0 \
265272
--javascript.allow-admin-execute true \
266273
$SYSTEM_REPLICATION_FACTOR \
267274
$STORAGE_ENGINE \

scripts/startStandAloneAgency.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
ulimit -H -n 131072 || true
4+
ulimit -S -n 131072 || true
5+
36
function help() {
47
echo "USAGE: scripts/startStandAloneAgency.sh [options]"
58
echo ""
@@ -244,6 +247,7 @@ for aid in "${aaid[@]}"; do
244247
--log.force-direct false \
245248
$LOG_LEVEL \
246249
--log.use-microtime $USE_MICROTIME \
250+
--server.descriptors-minimum 0 \
247251
--server.authentication false \
248252
--server.endpoint $TRANSPORT://[::]:$port \
249253
--server.statistics false \

0 commit comments

Comments
 (0)
0