Skip to content
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

increase default payara request timeout #6996

Merged
merged 6 commits into from
Jun 30, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 11 additions & 2 deletions doc/sphinx-guides/source/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -918,8 +918,8 @@ Before going live, you might want to consider setting up integrations to make it

.. _jvm-options:

JVM Options
-----------
JVM (and other) Options
-----------------------
donsizemore marked this conversation as resolved.
Show resolved Hide resolved

JVM stands for Java Virtual Machine and as a Java application, Payara can read JVM options when it is started. A number of JVM options are configured by the installer below is a complete list of the Dataverse-specific JVM options. You can inspect the configured options by running:

Expand Down Expand Up @@ -1150,6 +1150,15 @@ Please note that there are other reasons why download URLs may not be included f

For more on Schema.org JSON-LD, see the :doc:`/admin/metadataexport` section of the Admin Guide.

http.request-timeout-seconds
++++++++++++++++++++++++++++

To facilitate large file upload and download, the Dataverse installer bumps the Payara **server-config.network-config.protocols.protocol.http-listener-1.http.request-timeout-seconds** setting from its default 900 seconds (15 minutes) to 3600 (1 hour). Should you wish to shorten or lengthen this window, issue:

``./asadmin set server-config.network-config.protocols.protocol.http-listener-1.http.request-timeout-seconds=nnn``
donsizemore marked this conversation as resolved.
Show resolved Hide resolved

and restart Payara to apply your change.

.. _database-settings:

Database Settings
Expand Down
5 changes: 5 additions & 0 deletions scripts/installer/as-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# GLASSFISH_DOMAIN
# ASADMIN_OPTS
# MEM_HEAP_SIZE
# GLASSFISH_REQUEST_TIMEOUT
#
# database configuration:
# DB_PORT
Expand Down Expand Up @@ -114,9 +115,13 @@ function preliminary_setup()
./asadmin $ASADMIN_OPTS create-jvm-options "\-Ddoi.mdcbaseurlstring=$DOI_MDCBASEURL_ESC"

./asadmin $ASADMIN_OPTS create-jvm-options "-Ddataverse.timerServer=true"

# enable comet support
./asadmin $ASADMIN_OPTS set server-config.network-config.protocols.protocol.http-listener-1.http.comet-support-enabled="true"

# bump the http-listener timeout from 900 to 3600
./asadmin $ASADMIN_OPTS set server-config.network-config.protocols.protocol.http-listener-1.http.request-timeout-seconds="${GLASSFISH_REQUEST_TIMEOUT}"

./asadmin $ASADMIN_OPTS delete-connector-connection-pool --cascade=true jms/__defaultConnectionFactory-Connection-Pool

# no need to explicitly delete the connector resource for the connection pool deleted in the step
Expand Down
1 change: 1 addition & 0 deletions scripts/installer/default.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ GLASSFISH_DIRECTORY = /usr/local/payara5
GLASSFISH_ADMIN_USER = admin
GLASSFISH_ADMIN_PASSWORD = secret
GLASSFISH_HEAP = 2048
GLASSFISH_REQUEST_TIMEOUT = 1800

[database]
POSTGRES_ONLY = false
Expand Down
1 change: 1 addition & 0 deletions scripts/installer/installAppServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def runAsadminScript(config):
os.environ['HOST_ADDRESS'] = config.get('glassfish','HOST_DNS_ADDRESS')
os.environ['GLASSFISH_ROOT'] = config.get('glassfish','GLASSFISH_DIRECTORY')
os.environ['MEM_HEAP_SIZE'] = config.get('glassfish','GLASSFISH_HEAP')
os.environ['GLASSFISH_REQUEST_TIMEOUT'] = config.get('glassfish','GLASSFISH_REQUEST_TIMEOUT')

os.environ['DB_PORT'] = config.get('database','POSTGRES_PORT')
os.environ['DB_HOST'] = config.get('database','POSTGRES_SERVER')
Expand Down