[RFE] scale node process
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- nodejs, typescript
- 领域
- backend
调研方向
从链接的 Node.js 集群文档开始,并检查 repository 当前的应用程序入口点;issue 未指定任何文件或测试。确定应如何为此 API 集成 clustering,包括 worker 启动和请求处理,然后验证 API 在多个进程之间仍能生成预期的响应。
由索引模型根据 Issue 内容生成。
描述
Nodejs has a built in clustering mechanism that manages multiple child processes spawn by a master process. This allows the app to scale across multiple processes on multiple threads/cores. the clustering process has a load balancer, but doesn't manage state. this works well for this simple api since no state is needed, just req -> resp.
this should be the first scaling initiative before scaling with docker/k8s.
https://nodejs.org/docs/latest-v16.x/api/cluster.html#cluster
https://blog.appsignal.com/2021/02/03/improving-node-application-performance-with-clustering.html
https://www.w3schools.com/nodejs/ref_cluster.asp
https://blog.logrocket.com/optimize-node-js-performance-with-clustering/
https://medium.com/tech-tajawal/clustering-in-nodejs-utilizing-multiple-processor-cores-75d78aeb0f4f
https://www.freecodecamp.org/news/scaling-node-js-applications-8492bd8afadc/amp/
- 主要语言
- TypeScript
- 星标
- 5
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
f5devcentral/f5-declaration-validator 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 20/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 35/100
f5devcentral/f5-declaration-validator#3 · 1 条评论 ·
查看 f5devcentral/f5-declaration-validator 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
chrisparsons83/flexspotff#215 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
vitest-dev/vitest#11633 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复