This is in continuation of my previous blogs where we discussed how to install CM and publisher on a dedicated machine and then, we saw how we can implement scale out content deployment using workers, ActiveMQ and Redis. Today, we are going to see how to configure Workes, ActiveMQ and Redis.
To read more about last two blogs in this series:-
To read more about last two blogs in this series:-
- Scaling SDL WEB 8.5 Installing CM and Publisher on Dedicated Machines
- Scaling Deployers in SDL WEB 8.5
In order to configure the scalable content deployment, we need Deployer(Endpoint) and Deployer-Worker.
Deployer Installation Media |
Pre-requisites, we need to install ActiveMQ and Redis
- How to install Redis please check my previous blogs.
- Download the Apache ActiveMQ
- Unzip the package in a suitable location and from command line execute command activemq start.
- Open your browser and navigate to the Admin Console at http://localhost:8161
Next step is to configure Deployer-Endpoint and Deployer-Workers Microservices.
- Both these services are required to update the deployer_conf.xml and Deployer-Workers required cd_storage_conf.xml.
- In the Deployer-Endpoint installation media open deployer_conf.xml.
- Here we need to update the <BinaryStorage> node and point this to Redis data store.
Configure Redis in Deployer-Endpoint - we need to configure the <State> node. so that workers know where to update the status of a job and the endpoint knows from where to get the status of the job.
Configure State - Next, is we need to configure ActiveMQ, we also need to make sure that all the other <Queue> entries related to FileSystem are commented out.
Configure Apache ActiveMQ JMS - Save and close the deployer-conf.xml file and use this same file for Workers as well.
- Next step is to configure the cd_storage_conf.xml for Deployer-Workers only.
- Here we need to update the <Storage> node with the Broker Database details. The worker will deploy the content on this DB.
- Update the License file path.
- Save and close the file and we can use this same file on the second Deployer-Worker.
- Now, we need to configure the ports for Deployer-Endpoint and Deployer-Workers.
- Last run the installService.ps1 from the Deployer-Endpoint folder and from Deployer-Worker. You need to run the command more than once depending upon the number of Deployer-Workers you want.
Deployer-Endpoint and Deployer-Workers are installed - We have all the services configure and up-running.
- The final step is to register your Deployer (Endpoint) with your Discovery Service and run the discovery-registration.jar.
Happy Coding and Keep Sharing