Server Configuration
Folder Structure
File |
Description |
|---|---|
|
Contains one file, |
|
Compiled server libraries |
|
Contains log, by default one log file |
|
config files |
etc config files
There are the following config files
File |
Description |
|---|---|
|
Configuration used directly by quarkus. This can be standard quarkus configuration. May also hold configuration related to class loading and quarkus logging. |
|
Logging configuration, the possible switches are documented on the file. |
|
General configuration for openBIS-related logic |
application.properties
logging.properties
#############################################################
# JUL Log Levels (must use these exact names) and Log4j mapping
#
# OFF = no logging | Log4j: OFF
# SEVERE = serious failures, system errors | Log4j: ERROR
# WARNING = potential problems, recoverable | Log4j: WARN
# INFO = general informational messages | Log4j: INFO
# CONFIG = static configuration messages | Log4j: DEBUG
# FINE = general debugging/tracing | Log4j: DEBUG
# FINER = more detailed tracing | Log4j: TRACE
# FINEST = most detailed, very verbose | Log4j: TRACE
# ALL = enable all logging | Log4j: ALL
#############################################################
# Global logging level
.global.level=INFO
# List of handlers to configure
.global.handlerAliases=myFileHandler, resolvedPropertiesHandler
# Custom File Handler using your custom class
myFileHandler.class=ch.ethz.sis.shared.log.standard.handlers.DailyRollingFileHandler
myFileHandler.logFileName=log/ro_crate.log
myFileHandler.maxLogFileSize=10485760
myFileHandler.append=true
myFileHandler.level=INFO
myFileHandler.messagePattern=%d{yyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n
# Resolved Properties Handler
resolvedPropertiesHandler.class=ch.ethz.sis.shared.log.standard.handlers.SingleFileHandler
resolvedPropertiesHandler.level=INFO
resolvedPropertiesHandler.append=false
resolvedPropertiesHandler.maxLogFileSize=10048576
resolvedPropertiesHandler.filter=OPERATION.ExposablePropertyPlaceholderConfigurer
resolvedPropertiesHandler.logFileName=log/startup_properties.log
resolvedPropertiesHandler.messagePattern=%d %-5p [%t] %c - %m%n
service.properties (Mandatory)
The service.properties contains around two dozen properties that SHOULD NOT be modified on standard production environments.
Here are ONLY discussed the ones that SHOULD BE manually configured.
Property |
Description |
|---|---|
|
Port used by the quarkus instance |
|
Timeout for this server, e.g. |
|
This path is used to write temporary files used by the server. The subdirectories are based on openBIS sessions. |
|
For AFS |
|
For AFS |
|
URL for an openBIS application server instance, e.g. http://localhost:8080 |
|
Timeout for openBIS calls |
|
Time in minutes until downloaded RO-Crate are deleted. This is also used for input files for import and validate. Empty values default to 720: 12 h. |
|
Time in minutes exported RO-Crate are kept if they have not been downloaded. Empty values default to 1440: 24 h. |
application.properties (Optional)
This allows fine-grained control over quarkus settings. Notably,
quarkus.class-loading.parent-first-artifacts=stax:stax-api
is used to prevent class loading issues with libraries.