Skip to content

reload the cpu/mem setting if cgroup config changed. - #18167

Merged
mergify[bot] merged 11 commits into
matrixorigin:mainfrom
xzxiong:dynamic_ncpu
Aug 19, 2024
Merged

mergify[bot] merged 11 commits into
matrixorigin:mainfrom
xzxiong:dynamic_ncpu

Conversation

@xzxiong

@xzxiong xzxiong commented Aug 16, 2024 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue # #16537

What this PR does / why we need it:

changed:

  1. reload the cpu / mem quota from cgroupv2 if cpu.max, memory.max is modified
  2. fill the metadata.CNService with logpb.CNStore's Resource setting.

no changed:

  1. the cn, which running compile, still use its own #cpu to setup others cn #cpu (which should be engine.Node.Mcpu)

@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Aug 16, 2024
@mergify
mergify Bot merged commit 76a4df8 into matrixorigin:main Aug 19, 2024
XuPeng-SH added a commit to XuPeng-SH/matrixone that referenced this pull request Aug 19, 2024
* make sharding support logtail (matrixorigin#18208)

Integrated sharding and logtail

Approved by: @triump2020

* refactor show Physical plan (matrixorigin#18164)

物理计划侧,pipeline经过重构后,算子流结构由原来的连式结构 更新为树形结构, 因此在调试打印pipeline的代码需要重构,示例如下:
```plpgsql
SQL:SELECT ROUND(SUM(distance), 2) AS total_distance from real_time_position WHERE time_stamp < 1694733800000
Scope 1 (Magic: Merge, mcpu: 1, Receiver: [4])
Pipeline: └── output
└── projection
└── projection
└── merge group
└── merge
PreScopes: {
Scope 1 (Magic: Merge, mcpu: 4, Receiver: [0, 1])
DataSource: cloud_device.real_time_position[time_stamp distance]
Pipeline: └── connect to MergeReceiver 4
└── merge group
└── merge
PreScopes: {
Scope 1 (Magic: Normal, mcpu: 4, Receiver: [])
DataSource: cloud_device.real_time_position[time_stamp distance]
Pipeline: └── connect to MergeReceiver 0
└── group
└── projection
└── filter
└── tablescan
Scope 2 (Magic: Normal, mcpu: 4, Receiver: [])
DataSource: cloud_device.real_time_position[time_stamp distance]
Pipeline: └── connect to MergeReceiver 1
└── group
└── projection
└── filter
└── tablescan
}
}
```

Approved by: @m-schen

* reload the cpu/mem setting if cgroup config changed. (matrixorigin#18167)

changed:
1. reload the cpu / mem quota from cgroupv2 if `cpu.max`, `memory.max` is modified
2. fill the metadata.CNService with logpb.CNStore's Resource setting.

no changed:
1. the cn, which running compile, still use its own `#cpu` to setup others cn `#cpu` (which should be `engine.Node.Mcpu`)

Approved by: @zhangxu19830126, @volgariver6, @XuPeng-SH

* fileservice: add IOVectorCache.Evict (matrixorigin#18199)

add Evict method to caches.

Approved by: @fengttt

---------

Co-authored-by: fagongzi <[email protected]>
Co-authored-by: qingxinhome <[email protected]>
Co-authored-by: Jackson <[email protected]>
Co-authored-by: reusee <[email protected]>
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
)

changed:
1. reload the cpu / mem quota from cgroupv2 if `cpu.max`, `memory.max` is modified
2. fill the metadata.CNService with logpb.CNStore's Resource setting.

no changed:
1. the cn, which running compile, still use its own `#cpu` to setup others cn `#cpu` (which should be `engine.Node.Mcpu`)

Approved by: @zhangxu19830126, @volgariver6, @XuPeng-SH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants