Ignite TcpClientChannel端口为什么不能大于49151?

huangapple go评论113阅读模式
英文:

Why Ignite TcpClientChannel port can not larger than 49151?

问题

Background: 我想使用testcontainers来进行与Apache Ignite的单元测试。

我目前正在使用Ignite客户端,并在Docker的端口映射功能的上下文中遇到了一个潜在问题。

在Docker中,端口映射涉及随机分配端口,这往往会超出Ignite客户端中的TcpClientChannel似乎可允许的范围。

是否有人可以提供一些关于为什么TcpClientChannel存在这些限制的见解?此外,在涉及Docker的情况下,应该如何管理端口映射是常见需求的情况,以考虑这些限制?

感谢您的时间和帮助。

https://github.com/apache/ignite/blob/8fb4c1ae873b70193726ba310a7f8837e61e68b0/modules/core/src/main/java/org/apache/ignite/internal/client/thin/TcpClientChannel.java#L691

英文:

Background: I want to use testcontainers to do unit tests with apache ignite

I am currently working with the Ignite client and have come across a potential issue with its port restrictions, specifically in the context of Docker's port mapping feature.

In Docker, port mapping involves randomly assigning ports, which can quite often exceed the range that seems to be permissible by the TcpClientChannel in the Ignite client.

Can anyone provide some insight into why these limitations exist within the TcpClientChannel? Additionally, how should we manage scenarios involving Docker, where port mapping is a common necessity, in light of these restrictions?

https://github.com/apache/ignite/blob/8fb4c1ae873b70193726ba310a7f8837e61e68b0/modules/core/src/main/java/org/apache/ignite/internal/client/thin/TcpClientChannel.java#L691

Thank you for your time and assistance.

答案1

得分: 2

1024 - 49151 被称为注册端口范围

然而,Ignite客户端中的限制毫无意义。我已经提交了一个工单并开始了讨论:https://issues.apache.org/jira/browse/IGNITE-20026。

英文:

1024 - 49151 is so-called registered port range.

However, the limitation in Ignite client does not make sense. I've filed a ticket and started a discussion: https://issues.apache.org/jira/browse/IGNITE-20026

huangapple
  • 本文由 发表于 2023年7月23日 15:03:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76746998.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定