-
Notifications
You must be signed in to change notification settings - Fork 422
docs(network): Document compute-node port allocation ranges #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+20
−0
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -270,6 +270,16 @@ CubeVS 完全在内核态执行逐沙箱的出站网络策略,使用 LPM(最 | |
|
|
||
| Go API 提供了 `AddPortMapping()`、`DelPortMapping()`、`ListPortMapping()` 和 `GetPortMapping()`,用于在运行时管理映射关系。 | ||
|
|
||
| ### 6.4 计算节点端口分配 | ||
|
|
||
| 为避免不同子系统之间的端口冲突,计算节点上的可用端口被划分为三段: | ||
|
|
||
| | 端口范围 | 用途 | 分配者 | | ||
| |----------|------|--------| | ||
| | `10000`--`19999` | `ip_local_port_range`(宿主机临时端口) | 由 network-agent 启动时修改 | | ||
| | `20000`--`29999` | CubeProxy 访问沙箱所用的端口范围 | 由 network-agent 在创建沙箱时分配 | | ||
|
Comment on lines
+277
to
+280
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 与英文版建议一致:可考虑在此处添加对 §6.3 管理的交叉引用,说明 |
||
| | `30000`--`65535` | 沙箱出站报文经主机 NAT 时使用的端口范围 | 由 CubeVS 在 SNAT 时分配 | | ||
|
|
||
| --- | ||
|
|
||
| ## 7. TAP 设备生命周期 | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Consider adding a brief cross-reference to §6.3 here. The
AddPortMapping()API from §6.3 allocates host ports from the20000–29999range documented in this row. A small note like "see §6.3 Management for the API" would help readers connect the allocation range to the API that consumes it.