Skip to content

Commit 65e1d72

Browse files
committed
Add another level of automatic docker limit configuration for AWS
This is a bit of a hack, as the memory limits are different on AWS, but the time should still be 3600s by default.
1 parent ce8a509 commit 65e1d72

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readthedocs/doc_builder/constants.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
'memory': '7g',
5151
'time': 1800,
5252
})
53+
elif total_memory > 7000:
54+
# This is to catch AWS instances that actually only have 7.5G memory
55+
DOCKER_LIMITS.update({
56+
'memory': '6g',
57+
'time': 1800,
58+
})
5359
elif total_memory > 4000:
5460
DOCKER_LIMITS.update({
5561
'memory': '3g',

0 commit comments

Comments
 (0)