-
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
Allow persisted couchdb directory mount. #4250
Conversation
@style95 I think this is something you might be interested in from PR history --- you tried to do something with this some time back. I could be missing something and would appreciate your insight. |
Codecov Report
@@ Coverage Diff @@
## master #4250 +/- ##
==========================================
- Coverage 85.35% 80.61% -4.74%
==========================================
Files 161 161
Lines 7532 7532
Branches 498 498
==========================================
- Hits 6429 6072 -357
- Misses 1103 1460 +357
Continue to review full report at Codecov.
|
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.
LGTM
Thanks a lot for this change. I will use it for my local installation instantly :)
f0b1ed3
to
3389c73
Compare
@rabbah Thank you for asking me. I have deployed CouchDB in a distributed environment with this change. I think we need to add some logic to skip setting up the cluster in case the cluster is already formed. If I redeploy CouchDB nodes, it tries to readd the nodes to the cluster.
As I mentioned above, one option could be to skip the clustering setup in case cluster is already enabled like this:
|
Are the two (this Pr for mounting a file and cluster setup) orthogonal? If so do you want to send a PR for the fix you mention above? |
@rabbah Anyway I will work on it. |
Ok then I will merge this PR then @style95. |
Ok, I will work on it from the merged version. |
Is there a predicate I can add to the mounting to make it ok now? |
For example: wskdev couchdb -d -e"db_persist_path=/home/couchd/openwhisk"
@rabbah I think we can add one predicate with the Maybe we can register the state and check while proceeding the clustering steps.
This is a simple solution, but it's not possible to add more nodes one the cluster is formed. How about simply adding above predicate to prevent error? |
As discussed with @style95 on Slack - we will merge this PR as is. |
For example: wskdev couchdb -d -e"db_persist_path=/home/couchd/openwhisk"
For example:
wskdev couchdb -d -e"db_persist_path=/home/couchd/openwhisk"
Also should fix #4236.(fix moved to #4262).Description
Related issue and scope
My changes affect the following components
Types of changes
Checklist: