Skip to content

Commit d93563d

Browse files
committed
Reserve 1Gb for Application Memory
We have noticed some strange behavior when trying to `create_container` and `remove_container` using the Docker API. For some reason we started getting ReadTimeout and I'm supposing that our Docker daemon has been restarted (because of OOM) or in a dumb state. This commit increases from 750 to 1000 Mb of RAM memory reserved for our application and OS processes. The user will get 7000Mb instead of 7200Mb in build-large instances and in build-default instances they will get 2400 intead of 2700Mb.
1 parent b3c54a1 commit d93563d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def _get_docker_memory_limit(self):
495495
"free -m | awk '/^Mem:/{print $2}'",
496496
shell=True,
497497
))
498-
return total_memory, round(total_memory - 750, -2)
498+
return total_memory, round(total_memory - 1000, -2)
499499
except ValueError:
500500
# On systems without a `free` command it will return a string to
501501
# int and raise a ValueError

0 commit comments

Comments
 (0)