Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions conf/solr/update-fields.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ while getopts ":hp" opt; do
done

# Check for ed and bc being present
exists ed || error "Please ensure ed, bc, sed + awk are installed"
exists bc || error "Please ensure ed, bc, sed + awk are installed"
exists awk || error "Please ensure ed, bc, sed + awk are installed"
exists sed || error "Please ensure ed, bc, sed + awk are installed"
exists ed || error "Please ensure ed, bc, sed + awk are installed (ed is missing)"
exists bc || error "Please ensure ed, bc, sed + awk are installed (bc is missing)"
exists awk || error "Please ensure ed, bc, sed + awk are installed (awk is missing)"
exists sed || error "Please ensure ed, bc, sed + awk are installed (sed is missing)"

# remove all the parsed options
shift $((OPTIND-1))
Expand Down
1 change: 1 addition & 0 deletions doc/release-notes/11722-configbaker-bc-missing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
When following the container demo tutorial, it was not possible to update Solr fields after adding additional metadata blocks. This has been fixed. See #11722 and #11723
21 changes: 21 additions & 0 deletions doc/sphinx-guides/source/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,28 @@ Logging & Slow Performance
- When set to true, all JDBC calls will be logged allowing tracing of all JDBC interactions including SQL.
- ``false``

Database Configuration Tips
+++++++++++++++++++++++++++

In this section you can find some example scenarios of advanced configuration for the database connection that can improve service performance and availability.

Database Connection Recovery
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Consider the following scenario: if there is no advanced configuration for the database connection and the Dataverse server loses that connection, for example if the database host is down, the server will be "dead" even after the database server is back to normal.
The only solution to recover Dataverse would be to restart the service. To avoid this situation, the following settings can be used to configure validation of the database connection.
This way, the database connection can be automatically recovered after a failure, improving the server availability. For a Docker installation, it is suggested to create an init.d script so that if the container needs to be recreated, these settings will always be configured.

.. code-block:: bash

# Enable database connection validation
asadmin create-jvm-options "-Ddataverse.db.is-connection-validation-required=true"
# Configure to use a database table as the validation method
asadmin create-jvm-options "-Ddataverse.db.connection-validation-method=table"
# Configure the "setting" table to be used for connection validation, but any tables can be used
asadmin create-jvm-options "-Ddataverse.db.validation-table-name=setting"
# Configure a validation period of 60 seconds, but different values may be used
asadmin create-jvm-options "-Ddataverse.db.validate-atmost-once-period-in-seconds=60"

.. _file-storage:

Expand Down
2 changes: 1 addition & 1 deletion modules/container-configbaker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ENV SCRIPT_DIR="/scripts" \
ENV PATH="${PATH}:${SCRIPT_DIR}" \
BOOTSTRAP_DIR="${SCRIPT_DIR}/bootstrap"

ARG PKGS="curl dnsutils dumb-init ed jq netcat-openbsd postgresql-client"
ARG PKGS="bc curl dnsutils dumb-init ed jq netcat-openbsd postgresql-client"
# renovate: datasource=github-releases depName=wait4x/wait4x
ARG WAIT4X_VERSION="v3.2.0"
# renovate: datasource=pypi depName=awscli
Expand Down
Loading