March 15, 2010 Byron Nevins – Research on V2 Clustering Behavior See the next installment here
- I created a brand spanking new V2 domain.
- I added a stand-alone instance, "ui1", with the minimal required args – i.e. only --nodeagent
- It copies the entire "default-config" over to a new config named "ui1-config"
- The default config has 7 system props lines for ports. E.g.
- system-property name="HTTP_LISTENER_PORT" value="38080"
- For this first instance – it uses (inherits) the 7 port assignments. I.e. they are NOT mentioned inside ui1-config
- I added a second stand-alone instance, "ui2". It does the same copying over of the default config – including he exact same 7 sys props.
- For this second instance, all 7 ports are overridden in the server element for ui2.
- Note that all apps marked as "system-all" have references added to EVERY new config element
- Conclusion: the create-instance has some smarts and by default prevents port conflicts.
- Removed both instances and repeated above but using a new cluster, "c1"
March 17, 2010 Here are the simplified elements of interest that you get from these commands:
- asadmin create-node-agent na1
- asadmin create-cluster c1
- asadmin create-instance --nodeagent na1 i1
- asadmin create-instance --nodeagent na1 --cluster c1 ci1
And below is how everything gets hooked-up in domain.xml
<server name="i1" config-ref="i1-config" node-agent-ref="na1".../>
<server name="ci1" config-ref="ci1-config" node-agent-ref="na1".../>
<config name="i1-config".../>
<config name="ci1-config".../>
<config name="c1-config".../>
<cluster name="c1" config-ref="c1-config"...>
<server-ref ref="ci1"...>
</cluster>
Attachments Diff from adding a node agent Diff from adding a stand-alone instance Diff from adding a second stand-alone instance
|