-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add configuration variable to limit mongors available memory (c…
…lose #221)
- Loading branch information
1 parent
d7685d7
commit 7ff619b
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
#!/bin/bash | ||
|
||
envsubst '${MONGORS_NAME}' < deploy/mongors.yml.tpl > deploy/mongors.yml | ||
if [ -z "${MONGORS_MEMORY_LIMIT}" ]; then | ||
echo [mongors] MONGORS_MEMORY_LIMIT variable is mandatory but is not set, stopping now. | ||
exit 1 | ||
fi | ||
|
||
envsubst '${MONGORS_NAME}' < deploy/mongors.yml.tpl > deploy/mongors.yml |