Enable couchdb persist_path in a distributed environment as well#4290
Merged
Conversation
bbb33fc to
351ebe7
Compare
Member
Author
|
@rabbah Please take a look at this. |
ff9bc7a to
518d106
Compare
518d106 to
2b870e4
Compare
rabbah
reviewed
Feb 16, 2019
| uri: | ||
| url: "{{ db.protocol }}://{{ ansible_host }}:{{ db.port }}/_cluster_setup" | ||
| method: GET | ||
| status_code: 200 |
Member
Author
There was a problem hiding this comment.
In case the cluster is not formed yet, it will return like this:
$ curl localhost:5984/_cluster_setup -v
* Trying ::1...
* Connected to localhost (::1) port 5984 (#0)
> GET /_cluster_setup HTTP/1.1
> Host: localhost:5984
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< X-CouchDB-Body-Time: 0
< X-Couch-Request-ID: 30fa78e069
< Server: CouchDB/2.1.2 (Erlang OTP/17)
< Date: Sun, 17 Feb 2019 13:59:41 GMT
< Content-Type: application/json
< Content-Length: 29
< Cache-Control: must-revalidate
<
{"state":"cluster_disabled"}
Member
Author
There was a problem hiding this comment.
Surely, it will return 401 Unauthorized in case the provided credentials are incorrect.
| uri: | ||
| url: "{{ db.protocol }}://{{ ansible_host }}:{{ db.port }}/_membership" | ||
| method: GET | ||
| status_code: 200 |
Member
Author
There was a problem hiding this comment.
For this,
style95ui-iMac:lambda style95$ curl localhost:5984/_membership -v
* Trying ::1...
* Connected to localhost (::1) port 5984 (#0)
> GET /_membership HTTP/1.1
> Host: localhost:5984
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: CouchDB/2.1.2 (Erlang OTP/17)
< Date: Sun, 17 Feb 2019 14:00:13 GMT
< Content-Type: application/json
< Content-Length: 66
< Cache-Control: must-revalidate
<
{"all_nodes":["nonode@nohost"],"cluster_nodes":["nonode@nohost"]}
rabbah
approved these changes
Feb 19, 2019
BillZong
pushed a commit
to BillZong/openwhisk
that referenced
this pull request
Nov 18, 2019
…che#4290) * Skip clustering when nodes are already in the cluster * Enable couchdb persist_path for a distributed environment as well
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is to enable CouchDB
persist_pathin a distributed environment as well.OW operators can freely redeploy CouchDB without any issue as it supports idempotency.
Also, in case new hosts are added in the inventory_host, they will also join the cluster on redeployment.
Related issue and scope
This is a subsequent PR from Allow persisted couchdb directory mount. #4250
My changes affect the following components
Types of changes
Checklist: