-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable couchdb persist_path in a distributed environment as well #4290
Conversation
bbb33fc
to
351ebe7
Compare
@rabbah Please take a look at this. |
ff9bc7a
to
518d106
Compare
518d106
to
2b870e4
Compare
uri: | ||
url: "{{ db.protocol }}://{{ ansible_host }}:{{ db.port }}/_cluster_setup" | ||
method: GET | ||
status_code: 200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this error and return 40x?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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"}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same q.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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"]}
…che#4290) * Skip clustering when nodes are already in the cluster * Enable couchdb persist_path for a distributed environment as well
Description
This is to enable CouchDB
persist_path
in 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: