dev@glassfish.java.net

Re: config changes to a clustered instance?

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Thu, 26 Aug 2010 21:09:55 -0700

But what is the expected behavior of the settings that do not involve
variables (numbers or as in my case full paths)?

thanks,
-marina

Byron Nevins wrote:
> Do this and you'll see EXACTLY what you should do:
>
> 1) create a cluster with 2 instances in it.
> 2) grep on ASADMIN_LISTENER_PORT
>
> The port inside the <config> is set to ${ASADMIN_LISTENER_PORT}
>
> Then the config itself gives a default value like so:
>
> <system-property name="ASADMIN_LISTENER_PORT"
> value="24848"></system-property>
>
> And now instances override that value inside the <server> element like
> this:
>
> <system-property name="ASADMIN_LISTENER_PORT"
> value="24855"></system-property>
>
> On 8/26/2010 4:18 PM, Ken wrote:
>> Marina Vatkina wrote:
>>> Let me know if this is documented somewhere, but what I see is
>>> confusing (at least to me).
>>>
>>> If I change configuration of 1 instance in a cluster :
>>>
>>> % asadmin set in1.transaction-service.tx-log-dir=/Users/mvatkina/foo
>>>
>>> the change is recorded in the cluster's config in the DAS domain.xml
>>> (so it would apply to all instances after restart?) and in the in1's
>>> domain.xml under it's clustered-named-config. Does it mean that a
>>> clustered instance have no separate configuration? If not, why does
>>> the set operation succeed?
>>>
>>> thanks,
>>> -marina
>>>
>> In many cases, the config contains a variable rather than the actual
>> value, so that all nodes in
>> the cluster can share the same config. The actual value of the
>> variable is stored in a property
>> in the instance, rather than in the config. Admin (including most of
>> the internal APIs) expands
>> the variables behind the scenes, unless you use a special API to get
>> the raw unexpanded value.
>>
>> Is this what is happening in your case? It's how the IIOP
>> configuration is handled across
>> a cluster, when each instance (which may be running on the same host
>> as another instance)
>> typically has a different set of ports, but there is only one shared
>> config, which includes iiop.
>>
>> Ken.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>