This is an automated email from the ASF dual-hosted git repository.

sciabarracom pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 0045691  fix couchdb boot: ulimit -n 1048576 + readiness probe
0045691 is described below

commit 0045691d1d8526c3b17593345f642fb31cf2198c
Author: Michele Sciabarra <[email protected]>
AuthorDate: Mon Jul 6 23:28:53 2026 +0200

    fix couchdb boot: ulimit -n 1048576 + readiness probe
    
    Wrap couchdb entrypoint with ulimit -n 1048576 to avoid erl_child_setup
    spinning on 2^31 fds when running under docker daemons that default to
    unlimited nofile (systemd default, WSL2 native docker, etc.). Add tcp
    readiness probe on 5984 so the pod doesn't advertise as ready before
    CouchDB actually accepts connections.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
---
 nuvolaris/templates/couchdb-set-tpl.yaml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/nuvolaris/templates/couchdb-set-tpl.yaml 
b/nuvolaris/templates/couchdb-set-tpl.yaml
index c37d50c..b7b1dc4 100644
--- a/nuvolaris/templates/couchdb-set-tpl.yaml
+++ b/nuvolaris/templates/couchdb-set-tpl.yaml
@@ -48,6 +48,11 @@ spec:
       containers:
       - name: couchdb
         image: "{{container_image}}"
+        command: ["/bin/bash", "-c"]
+        args:
+        - |
+          ulimit -n 1048576
+          exec tini -- /docker-entrypoint.sh /opt/couchdb/bin/couchdb
         {% if runtime == 'openshift' %}
         securityContext:
           capabilities:
@@ -69,6 +74,12 @@ spec:
         ports:
         - name: couchdb
           containerPort: 5984
+        readinessProbe:
+          tcpSocket:
+            port: 5984
+          initialDelaySeconds: 5
+          periodSeconds: 5
+          failureThreshold: 60
         env:
         - name: "COUCHDB_USER"
           valueFrom:

Reply via email to