diff --git a/conf/solr/update-fields.sh b/conf/solr/update-fields.sh index 386c1ee4e87..5dbe062026e 100755 --- a/conf/solr/update-fields.sh +++ b/conf/solr/update-fields.sh @@ -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)) diff --git a/doc/release-notes/11722-configbaker-bc-missing.md b/doc/release-notes/11722-configbaker-bc-missing.md new file mode 100644 index 00000000000..3a2074bbf44 --- /dev/null +++ b/doc/release-notes/11722-configbaker-bc-missing.md @@ -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 diff --git a/doc/sphinx-guides/source/installation/config.rst b/doc/sphinx-guides/source/installation/config.rst index b0c44865927..67621e5eb8c 100644 --- a/doc/sphinx-guides/source/installation/config.rst +++ b/doc/sphinx-guides/source/installation/config.rst @@ -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: diff --git a/modules/container-configbaker/Dockerfile b/modules/container-configbaker/Dockerfile index 6f4e0c066bc..5532cda1a9e 100644 --- a/modules/container-configbaker/Dockerfile +++ b/modules/container-configbaker/Dockerfile @@ -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