Skip to content

v0.4.2

Choose a tag to compare

@pardnchiu pardnchiu released this 02 Jan 06:35
· 11 commits to master since this release

Summary

Add CPU and memory limit configuration for containers, providing finer resource control, and optimize default runtime count calculation logic.

FEAT

  • Add CPU limit configuration for containers, supporting MAX_CPUS_PER_CONTAINER environment variable to set CPU quota per runtime (default 0.25)
  • Add memory limit configuration for containers, supporting MAX_MEMORY_PER_CONTAINER environment variable to set memory limit per runtime (default 128MB)

UPDATE

  • Optimize default runtime count calculation from runtime.NumCPU() to runtime.NumCPU() * 2

Summary

新增 CPU 和記憶體限制配置,提供更精細的資源控制,並優化預設 runtime 數量計算邏輯。

FEAT

  • 新增 CPU 限制配置功能,支援環境變數 MAX_CPUS_PER_CONTAINER 設定 runtime 的 CPU 配額(預設 0.25)
  • 新增記憶體限制配置功能,支援環境變數 MAX_MEMORY_PER_CONTAINER 設定 runtime 的記憶體上限(預設 128MB)

UPDATE

  • 優化預設 runtime 數量計算邏輯,從 runtime.NumCPU() 調整為 runtime.NumCPU() * 2