carbon.xml 集群环境中的主机名

carbon.xml HostName in a Clustered Environment

如果我在集群环境中使用 WSO2EI,我要在每个节点上的 carbon.xml 文件中的这个标签上写什么?:

<HostName>ei.wso2.com</HostName>

它是一个 唯一 主机名,例如:节点 1 为 "ei1.wso2.com" 节点 2 为 "ei2.wso2.com" 还是 Shared 主机名?

HostName 参数在 carbon.xml 文件中用注释解释,如下所示。

Host name or IP address of the machine hosting this server e.g. www.wso2.org, 192.168.1.10
This will become part of the End Point Reference of the services deployed on this server instance.

为了进一步说明,假设您正在VM中设置WSO2EI实例,其中VM的主机名是"abc.xyz.com",您可以将主机名设置为"abc.xyz.com"。如果你有一个分布在不同虚拟机上的多节点集群,每个 WSO2EI 实例的主机名可以配置为相关的虚拟机主机名。