eXist-db / docker-existdb

Docker image builder for eXist-db
GNU Affero General Public License v3.0
11 stars 6 forks source link

Further configuration tweaks to conf.xml #41

Closed duncdrum closed 5 years ago

duncdrum commented 5 years ago

The following line is giving me pause:

<watchdog output-size-limit="1000000" query-timeout="-1"/>

Similarly,

<recovery enabled="yes"  group-commit="no"   journal-dir="webapp/WEB-INF/data"
                  size="100M" sync-on-commit="no"  force-restart="no"  consistency-check="yes"/>
adamretter commented 5 years ago

Regards query-timeout="-1" I think we need to be clear what it actually means.

If will only abort a query that is in a healthy and running state, there are other reasons why a query may lock up, and in those instances query-timeout won't have any effect.

Actually query-timeout is rather dangerous as you can end up with unexpected inconsistencies if a query running an XQuery Update or XUpdate is aborted. The database itself won't be corrupted, but only some of the changes will have been applied, which means that your data may not be consistent.

Also if a database has locked up, you should not terminate it and try and continue. That will likely just result in a corrupted database.

Regards sync-on-commit I think its description is misleading. The sync happens asynchronously to the commit. So there is no guarantee of anything.

Regards force-restart... it should never be the default!

duncdrum commented 5 years ago

If will only abort a query that is in a healthy and running state

that settles query-timeout then, let's keep it as is. as for the others thats why I was looking for feedback thanks @adamretter

let's keep them as well.