Skip to content

Reserve 1Gb for Application Memory #7618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readthedocs/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def _get_docker_memory_limit(self):
"free -m | awk '/^Mem:/{print $2}'",
shell=True,
))
return total_memory, round(total_memory - 750, -2)
return total_memory, round(total_memory - 1000, -2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be a constant, or at least have a comment explaining the logic.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. I'm merging it for now so it goes out tomorrow, tho.

except ValueError:
# On systems without a `free` command it will return a string to
# int and raise a ValueError
Expand Down