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

[Feature] Reduce Idle Load - collect data only uppon request #1050

Open
GAS85 opened this issue Mar 27, 2024 · 1 comment
Open

[Feature] Reduce Idle Load - collect data only uppon request #1050

GAS85 opened this issue Mar 27, 2024 · 1 comment

Comments

@GAS85
Copy link

GAS85 commented Mar 27, 2024

Description of the feature

Hey, very like your App!
I have a suggestion to for a feature - to reduce idle load and do not collect the data when no connections to http://FQDN/socket.io/... exist.
Currently even with 0 connections there is slightly constant CPU load:

CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT   MEM %     NET I/O          BLOCK I/O         PIDS
b1d219a4c042   dash      14.16%    45.64MiB / 200MiB   22.82%    2.24GB / 804MB   2.84GB / 65.5kB   15

Basically by adding 10 connections, there is no significant change in CPU load it is only slightly increased. For my tiny CPU it is always between 6 and 14 %.

It would be super cool if we can stop data collection when no socket.io connections exist to reduce CPU load to minimum.

Additional context

Example of another app that has 0 CPU usage when no connections exist and some usage under load:

CONTAINER ID   NAME       CPU %     MEM USAGE / LIMIT   MEM %     NET I/O           BLOCK I/O       PIDS
b07a0c07ab8e   organizr   0.00%     47.92MiB / 1GiB     4.68%     22.9MB / 12.8MB   341MB / 248MB   13
CONTAINER ID   NAME       CPU %     MEM USAGE / LIMIT   MEM %     NET I/O           BLOCK I/O       PIDS
b07a0c07ab8e   organizr   9.75%     61.92MiB / 1GiB     6.19%     22.9MB / 12.8MB   341MB / 248MB   13
@acmookey
Copy link

acmookey commented Apr 5, 2024

The screenshot below shows the Top10 CPU usage of many containers I am using (all services are basically not used). You can see that Dashdot take up the most CPU. It would be great to implement this feature to reduce the CPU usage when there is no HTTP connection!
image

PS: My dashdot service is deployed in Raspberry Pi 4B (8GB RAM)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants