Max concurrent audio streams #272
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#272
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is more a safety feature. To avoid hardware damage we should make a limit on audio streams the bot can have running at the time. This will avoid 2 things, bottlenecking the bot due to CPU limitations. And possible physical hardware damage due to increase of temperature.
Your CPU will throttle on its own to decrease temperature, that's not something you need to add to a program. But I agree that it would be nice to limit audio streams to avoid lagging out the bot on a slower CPU.
There are hardware sound cards that won't fare as well if they are overheating. More so if the server doesn't have adequate cooling.
As far as I know, the sound card won't have anything to do with it. Since its just for the encoding. But seems like @tekulvw is making another solution. that strongly reduces CPU usage for cached songs.
Moving to #623
Dependant on #3157
It feels almost sacrilegious to close a 6 year old issue, but this was opened back in the day when the bot leveraged ffmpeg for audio playback and limiting that memory use was a very valid concern after multi-voice audio was introduced. Fun fact: prior to the multi-voice rewrite, audio was only usable in one server. Period.
These days, since we use Lavalink, I feel like people can limit memory usage using a maximum memory allocation pool jar flag on launch... that doesn't address the literal issue idea of limiting the amount of connected players but since memory concerns were the other half of this issue, I'll leave it at this for now.