Customizing Solace Cache Configuration Files
Each installed Solace Cache Instance process receives its configuration parameters through two sources:
- a configuration file for the instance, specified at invocation (used to connect to the event broker)
- the Designated Router—the Solace Cache Instance learns additional configuration information from the Designated Router through the event broker message bus
Each Solace Cache Instance requires its own configuration file, which must be filled out with specifics for your configuration. The sampleConfig.txt file (included with the Solace Cache installation package) is provided as a template.
The parameters that are passed to an installed Solace Cache Instance through the Solace Cache Instance configuration file includes:
- the client username and password to use when connecting to the event broker
- the DNS name or IP address of the event broker to connect to and, optionally, the DNS name or IP address of a backup event broker to connect to if the preferred event broker is unreachable
- the Message VPN to join
- a unique name that is used to identify the Solace Cache Instance in Solace Event Broker CLI, and on the event broker message bus
- the local priority and network priority of the Solace Cache Instance (optional parameters).
- the Processor Mask (an optional parameter used to specify which computer processors the Solace Cache Instance can run on)
- the name of the file to use when backing up the Solace Cache Instance’s cached messages (see Performing Solace Cache Administrative Tasks)
To customize the Solace Cache Instance configuration file, perform these steps:
- Following the instructions provided within the
sampleConfig.txtfile, edit a copy of the file with the specifics for your Solace Cache Instance configuration.Ensure that the
CACHE_INSTANCE_NAMEis the same Solace Cache Instance name that was used for the matching Solace Cache Instance object configured through the Solace Event Broker CLI (see Configuring Solace Cache Instances). - Save the modified configuration file with a unique identifying file name to one of the following locations:
- If the Solace Cache Instance is to run on a Linux computer, save the file on that Linux computer.
- If the Solace Cache Instance is to run on an event broker, save the file to
/usr/sw/solcache/configon that event broker.
Changing Solace Cache Configuration Files While in Use
If you modify the configuration parameters for a Solace Cache Instance process, you can apply the changes using either of the following methods:
- Stop and restart the Solace Cache Instance process. When the Solace Cache Instance restarts, it uses the updated configuration parameters provided in the file.
- Use the Solace Cache service script's “service solcache reload” command to reload the Solace Cache Instance configuration parameters without stopping the Solace Cache Instance process. When you run this command, the script sends a SIGUSR1 signal to the Solace Cache Instance. Upon receiving the signal, the Solace Cache Instance re‑reads its configuration file and changes any properties that can be reloaded. See the
sampleConfig.txtconfiguration file (included with the Solace Cache Instance installation package) for information about which parameters are reloadable.