mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 23:47:33 +00:00
Worker count, video-extraction slots and the shader thread pool read the host core count, so a container limited to 6 cores on a 32-vCPU host sized itself for 32. Read the cgroup CPU quota (v2 cpu.max, v1 cfs quota/period) next to the existing cgroup memory probe and use the smaller of it and availableParallelism().
54 lines
1.7 KiB
JSON
54 lines
1.7 KiB
JSON
{
|
|
"package": "@hyperframes/engine",
|
|
"subpaths": {
|
|
".": {
|
|
"source": "./src/index.ts",
|
|
"runtime": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"environments": ["bun", "node"]
|
|
},
|
|
"./alpha-blit": {
|
|
"source": "./src/utils/alphaBlit.ts",
|
|
"runtime": "./dist/utils/alphaBlit.js",
|
|
"types": "./dist/utils/alphaBlit.d.ts",
|
|
"environments": ["bun", "node"]
|
|
},
|
|
"./chrome-host-ceiling": {
|
|
"source": "./src/services/chromeHostCeiling.ts",
|
|
"runtime": "./dist/services/chromeHostCeiling.js",
|
|
"types": "./dist/services/chromeHostCeiling.d.ts",
|
|
"environments": ["bun", "node"]
|
|
},
|
|
"./system-cpu": {
|
|
"source": "./src/services/systemCpu.ts",
|
|
"runtime": "./dist/services/systemCpu.js",
|
|
"types": "./dist/services/systemCpu.d.ts",
|
|
"environments": ["bun", "node"]
|
|
},
|
|
"./system-memory": {
|
|
"source": "./src/services/systemMemory.ts",
|
|
"runtime": "./dist/services/systemMemory.js",
|
|
"types": "./dist/services/systemMemory.d.ts",
|
|
"environments": ["bun", "node"]
|
|
},
|
|
"./wsl-host": {
|
|
"source": "./src/services/wslHost.ts",
|
|
"runtime": "./dist/services/wslHost.js",
|
|
"types": "./dist/services/wslHost.d.ts",
|
|
"environments": ["bun", "node"]
|
|
},
|
|
"./shader-transitions": {
|
|
"source": "./src/utils/shaderTransitions.ts",
|
|
"runtime": "./dist/utils/shaderTransitions.js",
|
|
"types": "./dist/utils/shaderTransitions.d.ts",
|
|
"environments": ["browser", "bun", "node"]
|
|
},
|
|
"./package.json": {
|
|
"source": "./package.json",
|
|
"runtime": "./package.json",
|
|
"types": null,
|
|
"environments": ["browser", "bun", "node"]
|
|
}
|
|
}
|
|
}
|