microsoftgraph / microsoftgraph/microsoft-graph-comms-samples
Application Hosted Media Bots VM autoscaling
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 253
- Forks
- 275
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 1
Description
Describe the issue
We have successfully developed and deployed an application-hosted bot within an Azure Service Fabric cluster. Our bot is consuming Audio/Video events in a similar way than PolicyRecordingBot. We are now starting to analyse how to set up an autoscaling policy. Our concern is related to the nature of the call meetings. if I am not wrong, once a call has been set up, that call will be handled by the same VM till the call ends. But the resources consumed during a call might vary. Let me share an example:
Imagine we set up a meeting with X participants. The call starts, bot joins and none of the participants are sharing video. Everything is fine at that moment. But at some point, people starts to share Video, and the CPU usage increases. The more people sharing, the more CPU, and we could reach the limit supported by that single VM. At that point we have experienced different issues related to video/audio frames loss due to probably that instance type is not able to handle so many events when they come. On the other hand, Service Fabric may auto-scale at that point, and add a new VM, but the call would remain in the initial VM which is not able to handle it (actually any VM of that type might handle the call).
Expected behavior
Cluster VMs should scale in order to be able to handle any type of call.
Additional context
Is there any way of scaling a single VM in terms of CPU/Memory while a service is running in order to avoid these kind of issues, or should we just be aware of the limitations of the node types configured for our cluster before setting up calls?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Azure Service Fabric cluster configuration and the PolicyRecordingBot deployment context mentioned in the issue. Determine whether a running call can move to a larger VM or whether scaling only adds nodes; done means documenting the supported autoscaling behavior and the relevant limitation or recommendation for call capacity.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100