Isolating JBoss EAP 6 clusters running on the same network


 SOLUTION VERIFIED - Updated October 27 2016 at 12:47 PM - 

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Issue

  • What config changes are required to isolate clusters on the same network?
  • I need to start JBoss so it doesn't join an existing cluster.
  • Is there a way that the clusters can be segregated in JBoss from seeing the incorrect nodes?
  • Is there configuration in Jboss that will specify the nodes that are in the cluster?
  • How do we start X separate clusters within the same environment?
  • How can one avoid cluster crosstalk in EAP 6?
  • In order to isolate the cluster, Is it required to use different multicast addresses for the JBoss nodes?
  • How to prevent a cluster node on laptop A connects to a clusternode on laptop B?

Resolution

When using the default multicast/UDP clustering configuration, specify a unique multicast address for each cluster.

  • If using TCP and TCPPING for all cluster channels, then setting the multicast address is not necessary because the TCPPING.initial_hosts configuration controls the cluster membership.

  • Multicast addresses are in the range 224.0.0.0 to 239.255.255.255.

    • 224.0.0.* are reserved for specific purposes and shouldn't be used. Other ranges are reserved for particular scopes (how far on the network the messages can travel).
    • If you're not sure what addresses to use, check with your network administrators if they have any particular IPs or ranges they'd like you to use.
  • The multicast IPs and ports are configured by the following socket bindings (note that messaging is only enabled by default in some profiles). These are usually configured by setting the listed system properties.

    Raw
    <socket-binding name="jgroups-udp" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/>
    
    <socket-binding name="messaging-group" port="0" multicast-address="${jboss.messaging.group.address:231.7.7.7}" multicast-port="${jboss.messaging.group.port:9876}"/>
    

Standalone Mode

  • Specify a unique multicast address for each cluster with "-u". This is shorthand syntax for setting the jboss.default.multicast.address system property.

    Raw
    ./standalone.sh -u 230.1.1.1 ...
    
  • If using HornetQ set the following property to the same value as -u:

    Raw
    -Djboss.messaging.group.address=...
    

    for nodes belonging to the same hornetQ cluster

Domain Mode

Set the system properties for the server-group or individual servers.
For the most common use case where a server-group corresponds to a single cluster:

Raw
<server-group ...
    <system-properties>
        <property name="jboss.default.multicast.address" value="230.0.0.4"/>
        <property name="jboss.messaging.group.address" value="231.7.7.7"/>
        ...
    </system-properties>
内容概要:本文详细介绍了使用COMSOL进行三相电力变压器温度场与流体场耦合计算的具体步骤和技术要点。首先讨论了变压器温升问题的重要性和现有仿真与实测数据之间的偏差,接着阐述了电磁-热-流三场耦合建模的难点及其解决方法。文中提供了关键的材料属性设置代码,如变压器油的密度和粘度随温度变化的关系表达式,并强调了网格划分、求解器配置以及后处理阶段需要注意的技术细节。此外,还分享了一些实用的经验和技巧,例如采用分离式步进求解策略、优化网格划分方式等,确保模型能够顺利收敛并获得精确的结果。最后,作者推荐了几种常用的湍流模型,并给出了具体的参数设置建议。 适用人群:从事电力系统设计、变压器制造及相关领域的工程师和技术人员,特别是那些希望深入了解COMSOL软件在复杂多物理场耦合计算方面应用的人群。 使用场景及目标:适用于需要对变压器内部温度分布和油流情况进行精确模拟的研究或工程项目。主要目的是提高仿真精度,使仿真结果更加贴近实际情况,从而指导产品设计和优化运行参数。 其他说明:文中不仅包含了详细的理论解释和技术指导,还提供了一些实际案例供读者参考。对于初学者来说,可以从简单的单相变压器开始练习,逐步掌握复杂的三相变压器建模技能。同时,作者提醒读者要注意单位的一致性和材料属性的准确性,这是避免许多常见错误的关键所在。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值