Enabling Read-Only Mode

Enabling read-only mode is very simple: you just set up read-only access to the database and then add one property to a configuration file. You will usually need to add the property in the host configuration layer of each host you want to run in read-only mode (or possibly in a family configuration layer for a group of hosts that are all to run in read-only mode). For general information about configuration layers and how they are organized, see Configuration Layers.

See Escenic Content Engine Installation Guide for an explanation of the term database-host used in the following instructions.

To run two hosts called ReadOnly1 and ReadOnly2 in read-only mode:

  1. On your database-host, create a user with read-only access to the database.

  2. Login as escenic on ReadOnly1.

  3. Open /opt/tomcat/conf/context.xml in an editor and change username and password to reflect the credentials created in step 1.

  4. Login as escenic on ReadOnly2 and make the same change to /opt/tomcat/conf/context.xml.

  5. Open /etc/escenic/engine/host/ReadOnly2/ServerConfig.properties in an editor and add

    readOnly=true
  6. Make the same change to /etc/escenic/engine/host/ReadOnly1/ServerConfig.properties. (In a standard Escenic installation, the configuration layers in /etc/escenic/engine/ are stored in a shared file system, so you can edit all configuration layers from one machine.)