Configure System Resources for Pulse Agents

You can limit the CPU and memory resources used by Pulse agents by configuring the vars.yml file.

A new systemd section is available in vars.yml to define CPU and memory limits for each agent.

This enables you to:

  • Limit CPU and memory usage for Pulse agents
  • Prevent Pulse agents from consuming excessive system resources
  • Allocate resources consistently across cluster nodes
  • Improve overall cluster stability and performance
  • Adjust resource limits based on the systemd version on the host

Configure Resource Limits

To manage CPU and memory limits for Pulse agents, update the systemd field in vars.yml.

Bash
Copy

The applied keys depend on the systemd version available on the host.

Manage CPU Resources

Pulse supports the following CPU configuration parameters:

  • The default value for CPUShares is 1024. Valid range: 2–262144
  • The default value for CPUWeight is 100. Valid range: 1–10000

If no CPU value is provided in vars.yml, Pulse applies the default value.

Lower values allocate fewer CPU resources, while higher values allocate more.

Manage Memory Resources

Pulse supports the following memory configuration parameters:

  • Use suffixes K, M, G, or T to specify units:

    • K = Kilobytes
    • M = Megabytes
    • G = Gigabytes
    • T = Terabytes

If no value is provided for MemoryMax or MemoryLimit, Pulse applies the default value of 1G.

Assign the same memory value for both MemoryMax and MemoryLimit. The Hydra agent automatically applies the appropriate key based on the systemd version.

Only one systemd range applies per host. Pulse selects the correct range and applies the corresponding values.

For more information, see: systemd resource control documentation.

Increase System Resources

To increase CPU or memory limits, update the values in override.yml.

Bash
Copy

Modify the values as needed based on your environment.

Apply the Changes

After updating the configuration, run the following command:

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard