In which use case Multiple renderer is used in Dispatcher | Community
Skip to main content
Level 6
December 5, 2020
Solved

In which use case Multiple renderer is used in Dispatcher

  • December 5, 2020
  • 2 replies
  • 1267 views
 

I am trying to understand when it make sense to use multiple renderer in dispatcher.any configuration. For example I have this setup.

On Dispatcher-1 server:

 

 

/renders { /0001 { /hostname "https://publish-1.com" /port "8443" } /0002 { /hostname "https://publish-2.com" /port "8443" } }

 

 

On Dispatcher-2 server:

 

 

/renders { /0001 { /hostname "https://publish-1.com" /port "8443" } /0002 { /hostname "https://publish-2.com" /port "8443" } }

 

 

Now as per my understanding dispatcher will forward the traffic to either publish-1 or publish-2 server depending on the time taken by the respective publish server.

When I look into this page then I see there is no configuration which makes it possible to direct the traffic from Dispatcher-1 to Publish-2. It is always Dispatcher-1 to Publish-1 or Dispatcher-2 to Publish-2. If Publish-2 goes down then the request landing on Dispatcher-2 will not be processed.

Could you please clarify what is the use of only one-to-one setup and when it make sense to have one-to-many setup?

Thanks for your help!

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 BrianKasingli

Hello @sam205505050,

Your configuration looks correct, The following example /renders section distributes render requests equally among two AEM instances (Adobe documentation) :

 

/renders { /myFirstRenderer { /hostname "https://publish-1.com" /port "8443" } /mySecondRenderer { /hostname "https://publish-2.com" /port "8443" } }

 

We would need to further investigate your issue. From your AEM staging / development environment, you can change the apache web server's dispatcher configuration to show "error" logs. After the dispatcher is restarted, subsequent requests will be visible as new entries in the log file; you should be able to see detailed information about errors and requests here.
 
From a finger in the air guess, your dispatcher might not be able to access one of the publishers, therefore only one of the publishers can be resolved.
 
Regards,
Brian.

2 replies

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
December 5, 2020

Hello @sam205505050,

Your configuration looks correct, The following example /renders section distributes render requests equally among two AEM instances (Adobe documentation) :

 

/renders { /myFirstRenderer { /hostname "https://publish-1.com" /port "8443" } /mySecondRenderer { /hostname "https://publish-2.com" /port "8443" } }

 

We would need to further investigate your issue. From your AEM staging / development environment, you can change the apache web server's dispatcher configuration to show "error" logs. After the dispatcher is restarted, subsequent requests will be visible as new entries in the log file; you should be able to see detailed information about errors and requests here.
 
From a finger in the air guess, your dispatcher might not be able to access one of the publishers, therefore only one of the publishers can be resolved.
 
Regards,
Brian.
joerghoh
Adobe Employee
Adobe Employee
December 9, 2020

I wrote a blog article about this question some time ago: https://cqdump.wordpress.com/2015/01/12/connecting-dispatchers-and-publishers/