Skip to content

Scaling based on Host System Load (CPU/RAM) #1

@iyashjayesh

Description

@iyashjayesh

Goal: Prevent scaling up if the host system is already under heavy load.

The pool currently scales based on queue utilization. To improve safety, we should integrate system-level monitoring.
Workers should only scale up if the host machine has sufficient CPU and Memory available, preventing the pool from starving other processes.

  • Integrate a system monitoring check inside checkScaling().
  • Check CPU utilization and Resident Set Size (RSS) memory.
  • Auto scale if system is under heavy load

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions