The rasdaman-geo Web frontend (petascope) can be configured via changing
settings in /opt/rasdaman/etc/petascope.properties.
For changes to take effect, system Tomcat (if deployment is external)
or rasdaman (if deployment is embedded) needs to be restarted after
editing this file.
Database¶
spring.datasource.urlset the connectivity string to the database administered by rasdaman-geo- Default:
jdbc:postgresql://localhost:5432/petascopedb - Need to change: NO when PostgreSQL used, YES when other DMBS
(e.g.
H2database) used
- Default:
spring.datasource.usernameset the username for the above database- Default:
petauser - Need to change: YES when changed in the above database
- Default:
spring.datasource.passwordset the password for the above database. Recommendation: change the password after rasdaman installation.- Default:
petapasswd - Need to change: YES when changed in the above database
- Default:
spring.datasource.jdbc_jar_pathset the path to JDBC jar file for Spring datasource. If left empty, the default PostgreSQL JDBC driver will be used. To use a different DBMS (e.g. H2), please download the corresponding JDBC driver, and set the path to it.- Default:
- Need to change: YES when diferent DMBS than PostgreSQL used for Spring datasource
metadata_urlonly used for database migration. Set the connectivity string to the database administered by rasdaman-geo. This configuration is used as source database (whilespring.datasource.urlis target database) to either migratepetascopedbfrom one rasdaman version to a newer one (only used forv9.4tov9.5), or in same DBMS or to different DBMS (e.g.postgrestoH2) when executingmigrate_petascopedb.sh.- Default:
jdbc:postgresql://localhost:5432/petascopedb - Need to change: YES when migrating to a different DMBS
- Default:
metadata_userset the username for the above database- Default:
petauser - Need to change: YES when changed in the above database
- Default:
metadata_passset the password for the above database- Default:
petapasswd - Need to change: YES when changed in the above database
- Default:
metadata_jdbc_jar_pathset the path to JDBC jar file for Spring datasource. If left empty, the default PostgreSQL JDBC driver will be used. To use a different DBMS (e.g. H2), please download the corresponding JDBC driver, and set the path to it.- Default:
- Need to change: YES when diferent DMBS than PostgreSQL used for Spring datasource
General¶
server.contextPathset the prefix for controller in web application URL routing, e.g. the/rasdamaninhttp://localhost:8080/rasdaman/ows.Note
Work only when running rasdaman-geo in
embeddedmode.- Default:
/rasdaman - Need to change: NO
- Default:
secore_urlsset SECORE endpoints to be used by rasdaman-geo. Multiple endpoints (for fail safety) can be specified as comma-separated list, attempted in order as listed. By default,internalindicates that rasdaman-geo should use its ownSECORE.- Default:
internal - Need to change: NO
- Default:
xml_validationif set totrue, WCSPOST/SOAPXML requests will be validated againstOGC WCS 2.0.1schema definitions; when starting Petascope it will take around 1-2 minutes to load the schemas from the OGC server. Set tofalseby default;Note
Passing the OGC CITE tests also requires it to be set to
false.- Default:
false - Need to change: NO
- Default:
ogc_cite_output_optimizationoptimize responses in order to pass a couple of broken OGC CITE test cases. Indentation ofWCS GetCoverageandWCS DescribeCoverageresults will be trimmed.Note
Only set to
truewhen executing OGC CITE tests.- Default:
false - Need to change: NO
- Default:
petascope_servlet_urlset the service endpoint in<ows:HTTP>element ofWCS GetCapabilities. Change to your public service URL if rasdaman-geo runs behind a proxy; if not set then it will be automatically derived, usually tohttp://localhost:8080/rasdaman/ows.- Default:
- Need to change: YES when rasdaman-geo runs behind a proxy
allow_write_requests_fromaccept write requests such asWCS-T(InsertCoverage,UpdateCoverageandDeleteCoverage) only from the comma-separated list of IP addresses. By default127.0.0.1will allow locally generated requests, usually needed to import data withwcst_import.sh. Setting to empty will block all requests, while*will allow any IP address.Note
This setting (i.e. the origin IP) is ignored when a request contains basic auth credentials for a valid rasdaman user with
RWrights in the HTTP Authorization header.- Default:
127.0.0.1 - Need to change: YES when more IP addresses are allowed to send write requests
- Default:
max_wms_cache_sizeset the maximum amount of memory (in bytes) to use for cachingWMS GetMaprequests. This setting speeds up repeatingWMSoperaions over similar area/zoom level. Recommendation: consider increasing the parameter if the system has more RAM, but make sure to correspondingly update the-Xmxoption for Tomcat as well. The cache evicts last recently inserted data when it reaches the maximum limit specified here.- Default:
100000000(100 MB) - Need to change: NO
- Default:
uploaded_files_dir_tmpset server directory where files uploaded to rasdaman-geo by a request will be temporarily stored.- Default:
/tmp/rasdaman_petascope/upload - Need to change: NO
- Default:
full_stacktracesprint only stacktraces generated by rasdaman (false), or full stacktraces including all external libraries (true). Recommendation: set tofalsefor shorter exception stack traces inpetascope.log.- Default:
false - Need to change: NO
- Default:
Deployment¶
java_serverspecify how is petascope deployed:1. embeddedstart standalone with embedded Tomcat, listening onserver.portsetting as configured below.2. external-rasdaman.waris deployed inwebappsdir of external Tomcat. Recommendation:embedded, as there is no dependency on external Tomcat server,petascope.logcan be found in/opt/rasdaman/log, andstart/stopof petascope is in sync withstarting/stoppingrasdaman service.- Default:
embedded - Need to change: YES when deploying rasdaman-geo to external tomcat
- Default:
server.portset port on whichembeddedpetascope (java_server=embeddedabove) will listen when rasdaman starts. This setting has no effect whenjava_server=external.- Default:
8080 - Need to change: YES when port
8080is occupied by another process (e.g. external Tomcat)
- Default:
Rasdaman¶
rasdaman_urlset URL of the rasdaman database to which rasdaman connects. Normally rasdaman is installed on the same machine, so the bellow needs no changing (unless the defaultrasmgrport7001has changed).- Default:
http://localhost:7001 - Need to change: YES when changed in rasdaman
- Default:
rasdaman_databaseset the name of the rasdaman database (configured in/opt/rasdaman/etc/rasmgr.conf). Recommendation: use rasdaman standard name,RASBASE- Default:
RASBASE - Need to change: YES when changed in rasdaman
- Default:
rasdaman_userthis user is used to map read OGC requests to read-only rasql queries. Recommendation: specify a user with read-only access rights in rasdaman.- Default:
rasguest - Need to change: YES when changed in rasdaman
- Default:
rasdaman_passset the password for the rasdaman user above. Recommendation: change the default password forrasguestuser in rasdaman and update the value here.- Default:
rasguest - Need to change: YES when changed in rasdaman
- Default:
rasdaman_admin_userthis user is used to map updating OGC requests (e.g. during data import, or deleting coverages) to updating rasql queries. Additionally, these credentials are used internally for various tasks which require admin access rights in rasdaman.Generally, this user should be granted the
adminrasdaman role.- Default:
rasadmin - Need to change: YES when changed in rasdaman
- Default:
rasdaman_admin_passset the password for the rasdaman admin user above. Recommendation: change the default password forrasadminuser in rasdaman and update the value here.- Default:
rasadmin - Need to change: YES when changed in rasdaman
- Default:
rasdaman_retry_attemptsset the number of re-connect attempts to a rasdaman server in case a connection fails.- Default:
5 - Need to change: NO
- Default:
rasdaman_retry_timeoutset the wait time in seconds between re-connect attempts to a rasdaman server.- Default:
10(seconds) - Need to change: NO
- Default:
rasdaman_bin_pathset thet path to rasdamanbindirectory.- Default:
/opt/rasdaman/bin - Need to change: YES when changed in rasdaman
- Default:
HTTPS¶
Used only for embedded rasdaman-geo deployment.
security.require-sslallowembeddedpetascope to work with HTTPS from its endpoint- Default:
false - Need to change: NO
- Default:
INSPIRE¶
inspire_common_urlset the URL to an external catalog service for theINSPIREstandard, to be provided by the user. If not set then it will be automatically derived from thepetascope_servlet_urlsetting.- Default:
- Need to change: NO
Demo Web¶
static_html_dir_pathAbsolute path to a directory containing demo web pages (html/css/javascript). If set, rasdaman-geo will serve theindex.htmlin this directory at its endpoint, e.g.http://localhost:8080/rasdaman/. Changes of files in this directory do not require a rasdaman-geo restart. The system user running Tomcat (ifjava_server=external) or rasdaman (ifjava_server=embedded) must have read permission on this directory.- Default:
- Need to change: YES when demo web pages required under radaman-geo’s endpoint
Logging¶
rasdaman-geo uses log4j library version 1.2.17 provided by Spring Boot
version 1.5.2 to log information/error in petascope.log file.
See log4j 1.x document for more details.
- Configuration for petascope logging; by default only level
INFOor higher is logged, to bothfileandstdout. The valid incremental logging levels areTRACE,DEBUG,INFO,WARN,ERRORandFATAL. - Configuration for reducing logs from external libraries: Spring, Hibernate, Liquibase, GRPC and Netty.
- Configure
filelogging. The paths forfilelogging specified below should be write-accessible by the system user running Tomcat. If running embedded Tomcat, then the files should be write accessible by the system user running rasdaman. - Select one strategy for rolling files and comment out the other. Default it is rolling files by time interval.