admin@glassfish.java.net

Re: directory layout

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Thu, 11 Mar 2010 23:59:13 -0800

Dies Koper wrote on 03/10/2010 09:27 PM:
>>> As we discussed yesterday, there is only one node agent per domain per
>>> machine. So I thought, why not make the name exactly the same as the
>>> domain name?
>> Because the domain name is not unique. Multiple domains can have a
>> domain named "domain1".
>
> It took me a while to understand this, but you are referring to the
> following situation, right?
> - On machine 1 I have a domain called 'domain1'.
> - On machine 2 I have a (totally unrelated) domain called 'domain1'.
> - On machine 3 I want to join instances as part of clusters managed by
> the DAS's in machines 1 and 2, which both have the domain name 'domain1'

Right.

>>> The create-node-agent command (with the fake option) could be run as
>>> part of 'ant -f setup-cluster.xml' or whatever mechanism we'll have in
>>> GFv3.1 to enable cluster mode.
>> We shouldn't need any such command. It should always be prepared for
>> you to create a cluster.
>
> So you're saying that as part of the create-cluster command we should
> create the directory structure, and your suggestion was to internally
> call the create-node-agent command with an additional (hidden) option?

create-cluster just creates the configuration information for the
cluster in domain.xml. It doesn't do anything for any servers that
want to be part of the cluster. But once that is done, a machine
that wants to run a server that's part of the cluster should be able
to issue appropriate commands to "join" the cluster. We've been talking
about what these commands should do and I think we've got it figured out.
I need to update the design spec with the information.