Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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

Avatar

Employee Advisor

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