dev@glassfish.java.net

Re: Upgrade a domain to cluster profile using CLI

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Mon, 30 Mar 2009 09:15:57 -0700

The problem is that in v3, we might have all the domains supporting
clusters as long as clustering module is available. So, it's not
clear what such a command would do then.

Currently however, I agree that it is a round-about way via which
you find if a domain can support clusters and that is by running
a cluster-specific command like list-clusters. On the GUI it is
more evident by presence/absence of certain nodes.

On start-domain, you get a message that tells you whether the domain
supports clusters. So, I am not sure how to advance (and help users)
by not introducing an interface (that's difficult to maintain).

-Kedar

Arun Gupta wrote:
> Agree with you that upgrading a domain to support cluster is not a
> routine operation.
>
> The goal is to upgrade a previously setup non-clustered domain to a
> clustered one in a headless mode. I need it mostly for setting up a VM
> ready for demo but I suspect might be required in other cases as well.
>
> Here is another command that might be helpful:
>
> asadmin is-clustered <domain> ?
>
> Alternatively
>
> asadmin upgrade-to-cluster <domain>
>
> should return back if the domain supports cluster, otherwise add cluster
> support. The command name can certainly be different.
>
> -Arun
>
> Kedar Mhaswade wrote:
>> You are the second person who has had such a request in past
>> 2 week ;). Can you elaborate your requirement here?
>>
>> When I initially did this feature, I thought upgrading a server
>> to support clusters is not a "routine"/"scriptable" operation,
>> rather it is an operation where administrator has to think twice
>> before executing. It's one thing to click on the GUI button, but
>> there are some things that should be taken care of.
>>
>> Anything in CLI becomes product's interface (GUI's requirements
>> are less critical) and this was an experimental feature. These
>> two reasons made me not provide an asadmin command for this.
>>
>> -Kedar
>>
>> Arun Gupta wrote:
>>> Thanks Anissa!
>>>
>>> Any particular reason it is not available as a CLI command as well ?
>>>
>>> -Arun
>>>
>>> Anissa Lam wrote:
>>>>
>>>> Hi Arun,
>>>> This is an exclusive feature in Admin Console :)
>>>>
>>>> Anissa.
>>>>
>>>> Arun Gupta wrote:
>>>>> How do I upgrade an existing domain to use cluster profile using CLI ?
>>>>>
>>>>> -Arun
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>