Skip to main content
Level 4
Nov 13, 2023 8:30 PM UTC
Solved

How to setup 2 dispatchers in AEM local instance

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.
ksh_ingole7
ksh_ingole7Accepted solution
Community Advisor
Nov 14, 2023 5:35 AM UTC

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" ... } ... } } } }

4 replies

Preetpal_Bindra
Community Advisor
Community Advisor
Nov 13, 2023 11:14 PM UTC

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

Translate
Level 4
Nov 14, 2023 2:17 PM UTC

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.

Translate
ksh_ingole7
Community Advisor
ksh_ingole7Community AdvisorAccepted solution
Community Advisor
Nov 14, 2023 5:35 AM UTC

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" ... } ... } } } }
Translate
Level 4
Nov 14, 2023 6:31 PM UTC

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

Translate