Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You’ll have to tell the dashboard where its database lives, what the session cookie name is and, if you want to use session sync, the tomcat cluster. Currently you’ll always need to edit at least 1 XML configuration file.

Using containers

On For containers you can configure part of it them using environment variables but you’ll still need to edit one XML file for now.

...

You can use environment variables to configure where the database lives:

PI_DB_HOST

Database host

PI_DB_PORT

Database port

PI_DB_USERNAME

Database username

PI_DB_PASSWORD

Database password

These can be specified as per the instructions on our Docker Deployments repository.

...

This should work on most cases, but if it doesn't suit your scenario see nginx's documentation about session persistence, or see the tomcat config below.

With tomcat (using synchronous session replication clustering)

Edit the tomcat’s server.xml on each of your nodes and add the following line under the <Engine> tag:

Code Block
languagexml
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" />

This should enable clustering for tomcat.