Explorar o código

Merge pull request #6758 from overleaf/jpa-cut-ldap-memory-usage

[web] cut memory usage of ldap container

GitOrigin-RevId: 26bbab4f6f84ecaab7d92869259fdaafa72559c0
Timothée Alby %!s(int64=4) %!d(string=hai) anos
pai
achega
33b3d67753
Modificáronse 2 ficheiros con 14 adicións e 0 borrados
  1. 7 0
      services/web/docker-compose.ci.yml
  2. 7 0
      services/web/docker-compose.yml

+ 7 - 0
services/web/docker-compose.ci.yml

@@ -79,6 +79,13 @@ services:
   ldap:
     restart: always
     image: rroemhild/test-openldap:1.1
+    # Workaround large memory allocation (using the max-open-files-limit as socket buffer scale).
+    # REF: https://github.com/moby/moby/issues/8231#issuecomment-63877553
+    # REF: https://github.com/moby/moby/issues/8231#issuecomment-63871343
+    command:
+      - 'bash'
+      - '-c'
+      - 'ulimit -n 1024 && exec bash /run.sh'
 
   saml:
       restart: always

+ 7 - 0
services/web/docker-compose.yml

@@ -83,6 +83,13 @@ services:
   ldap:
     restart: always
     image: rroemhild/test-openldap:1.1
+    # Workaround large memory allocation (using the max-open-files-limit as socket buffer scale).
+    # REF: https://github.com/moby/moby/issues/8231#issuecomment-63877553
+    # REF: https://github.com/moby/moby/issues/8231#issuecomment-63871343
+    command:
+      - 'bash'
+      - '-c'
+      - 'ulimit -n 1024 && exec bash /run.sh'
 
   saml:
       restart: always