Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit 505b792

Browse files
resource_limits.conf: adds new update instruction
Bug 1196783 https://bugzilla.redhat.com/show_bug.cgi?id=1196783 When the memory_limit_in_bytes variable in resource_limits.conf is updated, the OPENSHIFT_GEAR_MEMORY_MB env variable does not get updated for existing gears. Now there is an additional note for users to run a workaround to update that variable for existing gears.
1 parent feaf88b commit 505b792

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

node/conf/resource_limits.conf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
# oo-pam-enable --with-all-containers
88
# oo-admin-ctl-tc restart
99
#
10+
# NOTE: If you change the memory_limit_in_bytes variable, run this command
11+
# to update existing gears. Replace 512 with the new value in megabytes.
12+
# Note the change in units from bytes to megabytes - memory_limit_in_bytes
13+
# expects the value in bytes, where OPENSHIFT_GEAR_MEMORY_MB expects the
14+
# value in megabytes.
15+
# for i in /var/lib/openshift/*/.env/OPENSHIFT_GEAR_MEMORY_MB; do echo 512 > "$i"; done
1016
#
1117
# Default Profile
1218
#
@@ -39,6 +45,13 @@ quota_blocks=1048576
3945
# be the defaults for a gear.
4046
#
4147
# memory (RAM)
48+
#
49+
# NOTE: If you change the memory_limit_in_bytes variable, run this command
50+
# to update existing gears. Replace 512 with the new value in megabytes.
51+
# Note the change in units from bytes to megabytes - memory_limit_in_bytes
52+
# expects the value in bytes, where OPENSHIFT_GEAR_MEMORY_MB expects the
53+
# value in megabytes.
54+
# for i in /var/lib/openshift/*/.env/OPENSHIFT_GEAR_MEMORY_MB; do echo 512 > "$i"; done
4255
memory_limit_in_bytes=536870912 # 512MB
4356
memory_memsw_limit_in_bytes=641728512 # 512M + 100M (100M swap)
4457
# memory_soft_limit_in_bytes=-1

0 commit comments

Comments
 (0)