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

K8s worker Stats #9288

Closed
Dasio opened this issue May 2, 2024 · 2 comments
Closed

K8s worker Stats #9288

Dasio opened this issue May 2, 2024 · 2 comments

Comments

@Dasio
Copy link

Dasio commented May 2, 2024

Bug Description

When I look at individual worker stats, it displays stats about the whole node, instead of container one.
So e.g. I see Free Memory: 55.54GB / 62.81GB. Which is for whole node

To Reproduce

  1. Go to Settings -> Workers
  2. Look e.g. at Free Memory

Expected behavior

I expect to see actual Pod usage/limits.

Check cgroup v2

Operating System

Alpine Linux v3.19

n8n Version

1.39.1

Node.js Version

v18.19.1

Database

PostgreSQL

Execution mode

queue

@netroy
Copy link
Member

netroy commented May 2, 2024

This is working as currently implemented. n8n Worker stats simply report the data that is available to the node.js process using the os module.

While it'd be great to get this data from cgroups v2, and then also use that to optimize the max heap-size, unfortunately this won't be doable until we drop support for node.js 18.

@Joffcom
Copy link
Member

Joffcom commented May 15, 2024

As this is not currently seen as a bug I am going to move this to closed for now.

@Joffcom Joffcom closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants