You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/05/25 12:31:15 UTC

[GitHub] [couchdb-helm] colearendt opened a new issue, #78: Changed erlang cookie

colearendt opened a new issue, #78:
URL: https://github.com/apache/couchdb-helm/issues/78

   
   **Describe the bug**
   
   The auto-generated erlang cookie (#68) changes on each helm deployment. As a result, it causes issues with rolling over the cluster.
   
   **Version of Helm and Kubernetes**: 3.8.3 and 1.21
   
   
   **What happened**: Each time we roll over the cluster (i.e. deploy config changes), it short circuits on replication failure b/c the two CouchDB nodes are running with different cookies. As a result, it never completes roll-over and stops with one restarted unhealthily:
   
   ```
   NAME                READY   STATUS    RESTARTS   AGE
   couch-1-couchdb-0   1/1     Running   0          105m
   couch-1-couchdb-1   0/1     Running   0          61m
   ```
   
   
   **What you expected to happen**: Roll over the cluster happily
   
   
   **How to reproduce it** (as minimally and precisely as possible): Deploy helm chart twice
   
   
   **Anything else we need to know**:
   
   Potentially related to #77 
   
   Possible fix is to use a stateful generation pattern like #74 
   
   Alternatively, could make clear in the docs that setting the `erlangFlags.setcookie` value is required in order for "rollover" to happen cleanly, change the update policy for the chart, etc.
   
   Related: if you set this variable, then it passes as a command line argument and not as a secret env var. This should be able to be toggled independently IMO (since an HA cluster being able to restart safely / consistently depends on consistency here)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb-helm] willholley closed issue #78: Changed auto-generated erlang cookie causes cluster restart issues

Posted by GitBox <gi...@apache.org>.
willholley closed issue #78: Changed auto-generated erlang cookie causes cluster restart issues
URL: https://github.com/apache/couchdb-helm/issues/78


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org