Per-host configurations

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Per-host configurations

Tristan Tarrant
Dear AS7 devs,

for the JGroups/Infinispan topology stuff (AS7-3023) I need to have some information configured per-host. In particular I was thinking of something like the following snippet of XML:

<servers>
  <server name="server-one" group="main-server-group">
    <host-topology site="s1" rack="r1" machine="m1" />
  </server>
  <server name="server-two" group="main-server-group">
    <host-topology site="s1" rack="r1" machine="m2" />
  </server>

</servers>

How and where should I add this information ?

Thanks

Tristan

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: Per-host configurations

Brian Stansberry
This is one of the use cases for expressions in the configuration model.
So in the JGroups/Infinispan subsystem the relevant attributes would
need to support expressions and the domain.xml configuration would use
expressions:

<host-topology site="${host-topology.site}" rack="${host-topology.rack}"
machine="${host-topology.machine}"/>

The host.xml server element can be used to specify the values:

<server name="server-one" ...>
  <system-properties>
    <property name="host-topology.site" value="s1"/>
   ...
  </system-properties>
</server>


On 1/10/12 1:49 AM, Tristan Tarrant wrote:

> Dear AS7 devs,
>
> for the JGroups/Infinispan topology stuff (AS7-3023) I need to have some
> information configured per-host. In particular I was thinking of
> something like the following snippet of XML:
>
> <servers>
> <server name="server-one" group="main-server-group">
> <host-topology site="s1" rack="r1" machine="m1" />
> </server>
> <server name="server-two" group="main-server-group">
> <host-topology site="s1" rack="r1" machine="m2" />
> </server>
> </servers>
>
> How and where should I add this information ?
>
> Thanks
>
> Tristan
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


--
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat
_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev