Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SL:70 Change logic for calculating server load #445

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

git-lama
Copy link
Contributor

Change the algorithm for calculating the load on every server:
New Logic: Server load calculation is now based on number of users, and the SL gives every meeting an assignment of 15 users when it starts, and then post that uses max(actual number of users, 15).

@git-lama git-lama force-pushed the server_load branch 3 times, most recently from 252742a to 54b2a85 Compare February 23, 2021 13:54
@git-lama git-lama requested a review from kepstin February 23, 2021 13:56
@pielonet
Copy link
Contributor

pielonet commented Feb 23, 2021

Hi, wouldn't it be even wiser to use this metric :
Sum up for each room the product : number of users in the room * (number of active webcams + 1 (if screen sharing))
It would be roughly the number of video flows treated by the server, which is IMHO what really "loads" the server.

README.md Outdated Show resolved Hide resolved
lib/tasks/poll.rake Outdated Show resolved Hide resolved
Comment on lines +151 to +152
* `LOAD_MIN_USER_COUNT`: Minimum user count of a meeting, used for calculating server load. Defaults to 15.
* `LOAD_JOIN_BUFFER_TIME`: The time(in minutes) until the `LOAD_MIN_USER_COUNT` will be used for calculating server load. Defaults to 15.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. The wording here is confusing or backwards - it implies that LOAD_MIN_USER_COUNT is not applied for the first 15 minutes, but then is applied afterwards.

I'm not sure the best way to word these help messages would be, maybe it would help to reverse the order, something like this?

Suggested change
* `LOAD_MIN_USER_COUNT`: Minimum user count of a meeting, used for calculating server load. Defaults to 15.
* `LOAD_JOIN_BUFFER_TIME`: The time(in minutes) until the `LOAD_MIN_USER_COUNT` will be used for calculating server load. Defaults to 15.
* `LOAD_JOIN_BUFFER_TIME`: During the buffer time after a meeting starts, the server load calculation accounts a boosted load value to the meeting to compensate for people who have not yet joined. Values is in minutes, defaults to 15.
* `LOAD_MIN_USER_COUNT`: The minimum number of people to assume a meeting will have during the join buffer time. Defaults to 15.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, may be @jfederico can help

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kepstin I would agree with you. I didn't get it with the readme explanation and had the need to look into the code.

@kepstin
Copy link
Member

kepstin commented Feb 26, 2021

Code looks ready to merge, I just want to make sure the documentation is clear so that users will understand how the new environment variables work.

@jfederico jfederico merged commit e62cc18 into blindsidenetworks:master Mar 1, 2021
@christmart
Copy link

If I read the pull request correctly you don't use the load_multiplier anymore.
But it is still needed to distinguish different capable servers.

berott added a commit to viralitygmbh/scalelite that referenced this pull request Mar 28, 2021
* scalelite/v1.0-stable:
  SL-99: Fixed issue processing BBB23 recordings and mounted on NFS (blindsidenetworks#484)
  Add bug fix for issue blindsidenetworks#471 (blindsidenetworks#472)
  use load multiplier to calculate load
  SL-86: added new variables to README (blindsidenetworks#465)
  SL-91: scaelite-nginx has an error on start (blindsidenetworks#463)
  Change logic for calculating server load (blindsidenetworks#445)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants