Skip to content

Updates AsyncMetrics cgroup-memory to support cgroupv2#45999

Merged
alexey-milovidov merged 17 commits intoClickHouse:masterfrom
sichenzhao:cgroup_v2
Apr 28, 2023
Merged

Updates AsyncMetrics cgroup-memory to support cgroupv2#45999
alexey-milovidov merged 17 commits intoClickHouse:masterfrom
sichenzhao:cgroup_v2

Conversation

@sichenzhao
Copy link
Copy Markdown
Contributor

@sichenzhao sichenzhao commented Feb 3, 2023

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Add support for CGroup version 2 for asynchronous metrics about the memory usage and availability. This closes #37983.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

This is an improvements over https://github.com/ClickHouse/ClickHouse/pull/45301/files, as previous PR supports only cgroupv1. This pr will fallback to cgroupv2 if cgroupv1 memory isn't defined.

  • Motivation: Why is this function, table engine, etc. useful to ClickHouse users?
  • This is useful for users who run Clickhouse in container, and wants to use AsyncMetrics table to track cgroup memory usages.

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

@robot-ch-test-poll robot-ch-test-poll added the pr-improvement Pull request with some product improvements label Feb 3, 2023
@alexey-milovidov alexey-milovidov self-assigned this Feb 15, 2023
@alexey-milovidov
Copy link
Copy Markdown
Member

Run Check — More than one changelog category specified: 'Improvement', '#37983'

@alexey-milovidov
Copy link
Copy Markdown
Member

@sichenzhao let's continue.

@mdonkers
Copy link
Copy Markdown
Contributor

The max value isn't handled, which would break the implementation. When no limit is set the cgroup file will contain literally max as value.

@sichenzhao sichenzhao requested review from alexey-milovidov and mdonkers and removed request for alexey-milovidov and mdonkers February 22, 2023 06:51
@sichenzhao sichenzhao requested review from alexey-milovidov and mdonkers and removed request for alexey-milovidov and mdonkers March 15, 2023 21:35
@sichenzhao sichenzhao requested review from alexey-milovidov and mdonkers and removed request for alexey-milovidov and mdonkers March 15, 2023 21:36
@alexey-milovidov
Copy link
Copy Markdown
Member

Ok. I didn't understand the changes, so I've rewritten it a little.

@alexey-milovidov
Copy link
Copy Markdown
Member

The changelog category was wrong, I have to edit it.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Apr 26, 2023
alexey-milovidov

This comment was marked as resolved.

@alexey-milovidov alexey-milovidov merged commit cd171be into ClickHouse:master Apr 28, 2023
yokofly added a commit to timeplus-io/proton that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AsynchronousMetrics: add info about the total memory amount with respect to cgroup limits.

4 participants