Bug 7039 - ThinLinc load balancing does not balance load properly during mild "login storms"
Summary: ThinLinc load balancing does not balance load properly during mild "login sto...
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Server (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.19.0
Assignee: Samuel Mannehed
URL:
Keywords: prosaic
Depends on:
Blocks:
 
Reported: 2017-09-07 12:21 CEST by Karl Mikaelsson
Modified: 2025-04-08 10:20 CEST (History)
2 users (show)

See Also:
Acceptance Criteria:


Attachments

Description Karl Mikaelsson cendio 2017-09-07 12:21:45 CEST
The load balancer is not equipped to handle mild cases of "login storms", where many users log in at roughly the same time, it will not pick up changing load across machines fast enough and use stale data to distribute the users over the agents.

The user sessions also does not produce 100% of their load from moment the session was created, which also can lead to the load balancer distributing the load unevenly.
Comment 3 Samuel Mannehed cendio 2025-04-03 15:53:03 CEST
This has been all but fixed as of bug 4429 where the load balancer now makes its decisions on the number of sessions reported by the sessionstore.

There is still a theoretical issue where if many people login at exactly the same time, the number in the sessionstore isn't accurate. The user session is only saved in sessionstore once the agent has reported back that it successfully created a session.

However, testing on tl.cendio.se shows that this window is less than a second. This is a massive improvement compared to before where we could potentially have very outdated load information.

Considering this bug fixed.
Comment 4 Samuel Mannehed cendio 2025-04-03 15:54:27 CEST
vsmserver.log that confirms that this window is very small:
> 2025-04-03 15:48:30 INFO vsmserver.session: User with uid 4036 (samuel) requested a new session
> 2025-04-03 15:48:30 INFO vsmserver.session: Session tl.cendio.se:17 created for user samuel

Note You need to log in before you can comment on or make changes to this bug.