[jboss-jira] [JBoss JIRA] (WFLY-9353) system property to set cluster name

Paul Ferraro (JIRA) issues at jboss.org
Tue Sep 19 14:42:00 EDT 2017


    [ https://issues.jboss.org/browse/WFLY-9353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465902#comment-13465902 ] 

Paul Ferraro commented on WFLY-9353:
------------------------------------

[~bmaxwell] The cluster name can be manipulated via the Infinispan transport.
e.g.
{code:xml}
<cache-container name="ejb">
    <transport cluster="${jboss.cluster.name}-ejb"/>
</cache-container>
{code}

Is this insufficient?

> system property to set cluster name
> -----------------------------------
>
>                 Key: WFLY-9353
>                 URL: https://issues.jboss.org/browse/WFLY-9353
>             Project: WildFly
>          Issue Type: Enhancement
>          Components: Clustering
>    Affects Versions: 11.0.0.CR1
>            Reporter: Brad Maxwell
>            Assignee: Paul Ferraro
>
> The cluster name is basically always server/web/ejb/hibernate/... as shown below.  It would be useful to define a system property substitution in the standard configs to make it easy to set for instances where multiple clusters are needed.
> Something like ${jboss.cluster.name:}-ejb or ${jboss.partition.name:DefaultPartition} would make it clear what the cluster name is and how to change it.
> {code}
>             <cache-container name="ejb" aliases="sfsb" default-cache="dist" module="org.wildfly.clustering.ejb.infinispan">
>                 <transport lock-timeout="60000" cluster="${jboss.cluster.name:}-ejb"/>
> {code}
> {code}
>         <subsystem xmlns="urn:jboss:domain:infinispan:4.0">
>             <cache-container name="server" aliases="singleton cluster" default-cache="default" module="org.wildfly.clustering.server">
>                 <transport lock-timeout="60000"/>
> ...
>             <cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan">
>                 <transport lock-timeout="60000"/>
>    ...
>             <cache-container name="ejb" aliases="sfsb" default-cache="dist" module="org.wildfly.clustering.ejb.infinispan">
>                 <transport lock-timeout="60000"/>
> ...
>             <cache-container name="hibernate" default-cache="local-query" module="org.hibernate.infinispan">
>                 <transport lock-timeout="60000"/>
> ...
>         </subsystem>
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list