【问题标题】:jgroup_bind_addr in Docker containerDocker 容器中的 jgroup_bind_addr
【发布时间】:2022-01-19 14:38:27
【问题描述】:

我正在将一个应用程序从服务器移动到 Azure 基础架构中的 docker。如何为不断变化的 pod ip 映射 jgroup_bind_addr?

 <TCP bind_port="${jgroups.bind_port}"
     bind_addr="${jgroups.bind_addr}"
 >

【问题讨论】:

  • 通常在 Docker 容器中运行的应用程序需要绑定到 0.0.0.0,“everywhere”,如果需要,您可以使用 Docker 级别的控件将它们映射到仅特定的主机接口。 Deploying a minimal flask app in docker - server connection issues 可能是我能想到的最突出的具体实例,但答案对于在 Docker 中运行的任何东西都是通用的。

标签: docker infinispan jgroups


【解决方案1】:

默认情况下,Infinispan 图像绑定到 SITE_LOCAL,这意味着“选择一个站点本地 IP 地址,例如从 192.168.0.0 或 10.0.0.0 地址范围”

JGroups Configuration 中,您可以检查bind_addr 可用的其他可能值。在表格后查找The following special values are also recognized for bind_addr

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-13
    • 2016-12-29
    • 2019-03-10
    • 2020-01-07
    • 2015-06-25
    • 2018-10-03
    相关资源
    最近更新 更多