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:
-
On your database-host, create a user with read-only access to the database.
-
Login as
escenic
onReadOnly1
. -
Open
/opt/tomcat/conf/context.xml
in an editor and changeusername
andpassword
to reflect the credentials created in step 1. -
Login as
escenic
onReadOnly2
and make the same change to/opt/tomcat/conf/context.xml
. -
Open
/etc/escenic/engine/host/ReadOnly2/ServerConfig.properties
in an editor and addreadOnly=true
-
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.)