New Instructions for installing snap including enabling interfaces#37
New Instructions for installing snap including enabling interfaces#37sklassen wants to merge 19 commits intoapache:masterfrom
Conversation
Spelling and formatting improvements
Correct spelling mistake
More spelling errors
|
@sklassen please add the snap permissions steps to your FYI I will be publishing the 2.2.0 snap as an |
|
One more change: In this line: https://github.com/apache/couchdb-pkg/blob/master/snap/snap_run#L19 you change the order of ini file handling so that setting snap configurations persists correctly. You need to tell end users that you've changed CouchDB's config processing behaviour, otherwise the snap will not behave the same as we document here: http://docs.couchdb.org/en/stable/config/intro.html#configuration-files Please include a warning about this in |
|
@sklassen actually, I see more issues now. I should have read your other PR more carefully. |
wohali
left a comment
There was a problem hiding this comment.
Sorry, I rushed through your other PR. I think this one key rework is required.
I realize that you may already have CouchDB machines deployed with your other approach, and I'm sorry for that inconvenience. But if we can validate the approach I've suggested here, it'll be better for everyone in the long run. Matching behaviour of the other official releases is key.
This should be there already (line 14 in the new file) in correct order.
Sure, added to README and HOWTO.
I had a description of the configuration order, and I thought that the more familiar HTTP should supersede the new and less known snap set. But I have no fixed opinion. I can reverse it back. /etc/local.ini and then /etc/local.d/ and make that clear in the README.md I can move the couchdb.ini with the data directory into default.ini
/etc/local.d/local.ini was a typo: it should, of course, have been /etc/local.ini
Which may have been my idea of leave local.ini last in the list, if that is the file chosen by the http config writer. I can added sequence numbers if that turns out to be the case. My original idea was to code hook/configure so that it only changed vm.args and those items that had not been whitelisted for http configure, plus a few useful items. But the list of blacklists was long; while what I thought as useful kept growing. And I do need one file per section otherwise the bash script becomes too complicated (I tried to limit it to sed and not awk). But I'm happy to cut it back to the bare essentials and give some more examples of using HTTP configure for the other. HTTP configure does have the advantage of not requiring a restart. Do you have an opinion on which items to keep or numbers to order the configuration?
There's quite a few changes. I've started, but leave some for tomorrow and test against a fresh installation. I'll revert soon. |
|
Okay, all good suggestions, I have done, I believe, as requested.
I tested with an upload the edge channel of couchdb-sklassen Anything missed? |
|
@sklassen It'd be best if you could leave the |
|
Finally, you'll want to be aware of: which will change how the query servers are activated. This will land before 2.3.0 is released. That means your code will need changing again. |
Okay, I've done that in the install hook. Fresh installations will have it copied over; Updates will copy from the previous revision's /etc/local.ini.
Okay, noted. I'm a fan of the native erlang views. When I test the 2.3.0 snap, I will make the code change. |
|
@sklassen Why did you close the PR? I haven't merged it yet. Are you going to open a new one? Be careful you don't clobber the user's own You should check out mango indexes, in my recent testing they were even faster than erlang views. |
|
Opps. Sorry about that. I'm still getting used to github. Fresh PR#38
Yes, the install hook is only meant to run once, any refresh or upgrades
will copy the configuration files into the new version. That way you can
roll forward or revert quite elegantly. I did add a guard so not to clobber
local.ini. And if the user were to delete either vm.args
or local.ini, for what-ever reason, then in snap_run, I re-copy the vm.args
and I touch local.ini.
Yes, I like the mango indexes. But sometimes you need views for polymorphic
abstraction. And for big databases, erlang views speed improvement is worth
the effort. I did, however, notice some reliability issues, with regard to
timeouts, with the 2.x branch of erlang views that were not there in 1.6x.
It is hard re-create the error, but I'll put a test script together and
open an issue.
Cheers
…On Thu, Nov 8, 2018 at 2:03 AM Joan Touzet ***@***.***> wrote:
@sklassen <https://github.com/sklassen> Why did you close the PR? I
haven't merged it yet. Are you going to open a new one?
Be careful you don't clobber the user's own local.ini file. If they've
made their own changes, you don't want to overwrite it with the updated
version.
You should check out mango indexes, in my recent testing they were even
faster than erlang views.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGrF5X8f9SlFLWhWgKxdmKETp8Yn6NbOks5usyBygaJpZM4YOx47>
.
|
|
I found my old issue #1008 and have added a comment with an example erlang
view to showcase the timeout.
On Thu, Nov 8, 2018 at 3:30 AM Simon Klassen <simon.klassen@gmail.com>
wrote:
…
Opps. Sorry about that. I'm still getting used to github. Fresh PR#38
Yes, the install hook is only meant to run once, any refresh or upgrades
will copy the configuration files into the new version. That way you can
roll forward or revert quite elegantly. I did add a guard so not to clobber
local.ini. And if the user were to delete either vm.args
or local.ini, for what-ever reason, then in snap_run, I re-copy the
vm.args and I touch local.ini.
Yes, I like the mango indexes. But sometimes you need views for
polymorphic abstraction. And for big databases, erlang views speed
improvement is worth the effort. I did, however, notice some reliability
issues, with regard to timeouts, with the 2.x branch of erlang views that
were not there in 1.6x. It is hard re-create the error, but I'll put a test
script together and open an issue.
Cheers
On Thu, Nov 8, 2018 at 2:03 AM Joan Touzet ***@***.***>
wrote:
> @sklassen <https://github.com/sklassen> Why did you close the PR? I
> haven't merged it yet. Are you going to open a new one?
>
> Be careful you don't clobber the user's own local.ini file. If they've
> made their own changes, you don't want to overwrite it with the updated
> version.
>
> You should check out mango indexes, in my recent testing they were even
> faster than erlang views.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#37 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AGrF5X8f9SlFLWhWgKxdmKETp8Yn6NbOks5usyBygaJpZM4YOx47>
> .
>
|
Overview
I've reorganized the READ.md for the snap installation. I added an important note about permissions for interfaces. Build instructions have been moved to BUILD.md
Testing recommendations
No change to configuations
Checklist