The caching configuration in the Content Deployer and in the Content Service needs to contain database connection information, so that these microservices can be registered as nodes. Both microservices need to configure connection information for the same database. Configure the database server host, port and database name to point to the Content Data Store, which both services are already configured to interact with.
Procedure
- Find your Content Deployer caching configuration file.
- By default, the caching configuration file is cache-conf.xml in the config/ directory.
- If you have altered the value of the
spring.cache.jcache.config property in the application.properties file of the microservice, then check that value to find out the name and location of the caching configuration file.
- Resolve the following placeholders in the file as follows:
- Resolve the
dbclass property to point to the Java class that implements the connection to the Content Data Store.
- Resolve the
dbuser property to point to the account name of a user who can connect to the Content Data Store.
- Resolve the
dbpassword property to point to the password of the user indicated by dbuser.
- Resolve the
dbhost property to point to the host name of the Content Data Store.
- Resolve the
dbport property to point to the port number of the Content Data Store.
- Resolve the
dbname property to point to the database name of the Content Data Store.
You have probably already resolved these placeholders to these values when you configured the Storage Layer, as these placeholders also occur in the cd_storage_conf.xml file.
- Find your Content Service caching configuration file, and repeat the previous step.