How to setup 2 dispatchers in AEM local instance | Community
Skip to main content
Level 4
November 13, 2023
Solved

How to setup 2 dispatchers in AEM local instance

  • November 13, 2023
  • 2 replies
  • 1490 views

I've setup 2 publishers (4503 and 4504) and I've setup one dispatcher for 4503 via Apache HTTP web server. Now what I intend to do is setup another dispatcher for pub2 on 4504 and enable load balancing. Can anyone help me or provide me the instructions to accomplish this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ksh_ingole7

Hi @arindam6600 

 

As far as I understand you are talking about the below setup. Please confirm

 

A multi-legged topology would have one Dispatcher per Publish server. A dedicated (hardware) load balancer sits in front of the AEM infrastructure dispatching the requests to these two (or more) legs:

 
 

 

For each Dispatcher, configure the dispatcher.any file with the appropriate settings. This file is typically located in the Apache HTTP Server's conf directory. Below is an example snippet of a Dispatcher configuration:

 

  

 

/clientheaders { ... } /renders { /rend01 { ... /farm { /publish { /localhost { "hostname" "publish-instance1" "port" "4503" ... } /localhost { "hostname" "publish-instance2" "port" "4503" ... } ... } } } }

2 replies

Preetpal_Bindra
Community Advisor
Community Advisor
November 13, 2023

One dispatcher could potentially load balance both publish servers. Is there a specific use case that needs 2 dispatchers, one for each publish instance?

Level 4
November 14, 2023

Yes! There's a specific use case where I've to setup 2 dispatchers one for each publisher and setup load balancing. This is a sort of POC that I'm  working on.

ksh_ingole7
Community Advisor
ksh_ingole7Community AdvisorAccepted solution
Community Advisor
November 14, 2023

Hi @arindam6600 

 

As far as I understand you are talking about the below setup. Please confirm

 

A multi-legged topology would have one Dispatcher per Publish server. A dedicated (hardware) load balancer sits in front of the AEM infrastructure dispatching the requests to these two (or more) legs:

 
 

 

For each Dispatcher, configure the dispatcher.any file with the appropriate settings. This file is typically located in the Apache HTTP Server's conf directory. Below is an example snippet of a Dispatcher configuration:

 

  

 

/clientheaders { ... } /renders { /rend01 { ... /farm { /publish { /localhost { "hostname" "publish-instance1" "port" "4503" ... } /localhost { "hostname" "publish-instance2" "port" "4503" ... } ... } } } }
Level 4
November 14, 2023

Thanks @ksh_ingole7 . This is just what I had wanted.