Skip to content

Commit 4bf36dc

Browse files
committed
For mongodb and jetty docker instances, run mongod directly as root instead of using sudo to ensure that the mongod process inherits the open files limits from the process that launches docker. When using sudo inside a docker container on Google VMs, the soft limit was defaulted to a very low 1024.
1 parent 4b59b8f commit 4bf36dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

render-ws-with-mongo-db/startup_mongodb_and_jetty.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# From https://github.com/saalfeldlab/render/blob/master/docs/src/site/markdown/render-ws.md
55

66
echo "starting mongodb"
7-
sudo -u mongodb /usr/bin/mongod -f /etc/mongod.conf &
7+
/usr/bin/mongod -f /etc/mongod.conf &
88

99
# default memory to 28g assuming that we have a 32g VM
1010
export RENDER_JETTY_MIN_AND_MAX_MEMORY=${1:-28g}

0 commit comments

Comments
 (0)