是否有一种方法可以配置Cassandra将端口7000用于节点通信,但使用端口443连接到其他节点?

发布于 2025-02-10 09:24:11 字数 692 浏览 1 评论 0原文

有没有办法告诉Cassandra:“听端口7000进行节点内连接,但是当您尝试连接到其他Cassandra主机时,请使用其他端口,例如443?”

基本上与elasticsearch在其中拥有http.porthttp.publish_port elasticsearch configuration

我们的场景是:

  • 使用Bitnami Helm图表
  • 我们现在有一个在Openshift中部署在openshift中的Cassandra群集,现在我们想 来展开其他Cassandra在另一个OpenShift群集中的戒指/DC
  • ,然后我们要将部署在2个不同的OpenShift群集中的2个Cassandra环连接在一起,
  • 我们有一个限制:我们必须使用OpenShift路线来公开OpenShift群集外的流量,而OpenShift路线仅工作在端口443上,但我无法在Docker/Cassandra中配置端口443,因为那是一个特权端口

Is there a way to tell cassandra to: "listen to the port 7000 for intra node connection but when you try to connect to other cassandra hosts use another port like 443?"

Basically same as Elasticsearch where you have http.port and http.publish_port Elasticsearch configuration

Our scenario is:

  • we have a cassandra cluster deployed in Openshift using the bitnami helm chart
  • now we want to deploy other cassandra ring/dc in another Openshift cluster
  • then we want to connect together the 2 cassandra rings deployed in 2 different Openshift clusters
  • we have a restriction: we have to use an openshift route to expose the traffic outside an openshift cluster, and the openshift route works only on port 443 but I cannot configure the port 443 in docker/cassandra since that is a privileged port

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

成熟的代价 2025-02-17 09:24:11

Cassandra Nodes使用八卦协议进行Interdode Communications,并且默认使用端口7000

storage_port: 7000

此端口专门用于私有通信在节点之间,通常在私人地址/网络上配置的节点(lincer_address)。

应用程序/客户端使用一个完全独立的端口(CQL客户端端口9042)连接到群集,该集群通常在完全独立的公共网络rpc_address ):

native_transport_port: 9042

您可以在conf/cassandra.yaml中配置您想要/需要的任何端口。干杯!

Cassandra nodes use the gossip protocol for internode communications and by default uses port 7000:

storage_port: 7000

This port is exclusively used for private communications between nodes which is typically configured on a private address/network (listen_address).

Apps/clients use a completely separate port (CQL client port 9042) to connect to the cluster which is usually on a completely separate public network (rpc_address):

native_transport_port: 9042

You can configure whatever port you want/need in conf/cassandra.yaml. Cheers!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文