Which loadbalancing Algorithm(s) are used in AEM Dispatcher ?

Avatar

Avatar

ajaykp

Avatar

ajaykp

ajaykp

03-11-2019

I want to know which loadbalancing algorithm(s) are used in AEM dispatcher ?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Nirmal_Jose

MVP

Avatar

Nirmal_Jose

MVP

Nirmal_Jose
MVP

03-11-2019

The load balancing is not performed based on the number of requests attended by each server, but on the time it took to process them for the category they belong to.

Reference  :
How is Load Balancing performed

experience-manager-dispatcher.en/dispatcher.md at master · AdobeDocs/experience-manager-dispatcher.e...

Answers (1)

Answers (1)

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

05-11-2019

Also, you can change the load balancing process by defining some statistics,unavailablePenalty and

stickyConnectionsFor

/statistics section defines categories of files for which Dispatcher scores the responsiveness of each render. Dispatcher uses the scores to determine which render to send a request.

Each category that you create defines a glob pattern. Dispatcher compares the URI of the requested content to these patterns to determine the category of the requested content:

  • The order of the categories determines the order in which they are compared to the URI.

  • The first category pattern that matches the URI is the category of the file. No more category patterns are evaluated.

The /unavailablePenalty property sets the time (in tenths of a second) that is applied to the render statistics when a connection to the render fails. Dispatcher adds the time to the statistics category that matches the requested URI.

The /stickyConnectionsFor property defines one folder that contains sticky documents; this will be accessed using the URL. Dispatcher sends all requests, from a single user, that are in this folder to the same render instance. Sticky connections ensure that session data is present and consistent for all documents. This mechanism uses the

renderid

cookie.

More details at [1]

[1] Configuring Dispatcher