This topic shows an example hardware/software configuration to support a LabKey installation. Your own configuration should be adjusted to suit your needs. Installation instructions and supported technologies can be found at the links below:
Assumptions
The configuration shown here is based on the following assumptions:
- For each environment (i.e., Production, test, development), Tomcat and PostgreSQL will be running on the same machine, or a virtual machine (M/VM)
- For Production environment the M/VM will have 2 CPU(core) and 4GB of memory
-
- As your Production environment sees more usage, we recommend increasing the amount of memory to 8GB at a minimum (and then increasing the memory used by Tomcat and PostgreSQL accordingly).
- Test Environment will use M/VM with same configuration as Production.
- PostgreSQL instead of MsSQL (Both work just fine.)
Oracle JAVA
Apache Tomcat
- Tomcat Version: 8.5.9
- Use Binary distribution which is available at https://tomcat.apache.org/download-70.cgi
- Configuration Settings:
-
- Start-up Parameters (usually configured via the service startup script):
-
- Server configuration
-
- We recommend using our sample configuration file. This configuration file contains our recommended settings described in our documentation.
- Download of sample configuration file from
-
- Change the Tomcat session timeout
-
PostgreSQL Configuration
- Version: 9.6.1
- Configuration Settings:
-
- Server configuration(postgresql.conf file located in PGDATA directory). Recommended settings:
-
- Shared Buffers: 1024MB
- Work mem: 10MB
- Maintenance work mem: 1024MB
- Checkpoint segments: 10
- Checkpoint timeout: 15min
- Random page count: 1.4
- Effective cache size: 3072MB
- join_collapse_limit: 10