Difference between revisions of "Migration Guidelines from 0.4.4 to 0.5"
From GCube System
Manuele.simi (Talk | contribs) (→Changes Related to the gHN) |
(→Changes Related to the gHN) |
||
Line 24: | Line 24: | ||
::* The gHN management interface (see below) depends on the existence of this configuration. | ::* The gHN management interface (see below) depends on the existence of this configuration. | ||
::* The first free port in this range can be obtained by invoking the method <code>getFreePort()</code> om the <code>GHNContext</code>. See the Javadoc documentation for details of the signature. | ::* The first free port in this range can be obtained by invoking the method <code>getFreePort()</code> om the <code>GHNContext</code>. See the Javadoc documentation for details of the signature. | ||
+ | |||
+ | :* ''(optional) use of the JMX management interface.'' | ||
+ | :: The gHN now binds a JMX managemenet interface to the port that it finds free in the configured range (see above). The bound port is shown in the gHN logs: | ||
+ | |||
+ | :<pre>...GHNContext: INITIALISED MANAGEMENT INTERFACE AT service:jmx:rmi:///jndi/rmi://localhost:60000</pre> | ||
+ | |||
+ | :: The interface can then be used with <code>jconsole</code>, a graphical JMX client that ships with the JDK: | ||
+ | |||
+ | :<pre>jconsole localhost:60000</pre> | ||
+ | |||
+ | ::gHN-specific and RI-specific information and operations can be found in the <code>MBeans</code> tabbed pane under <code>org.gcube</code>. In the same tabbed pane, logger and appender information and operations can be found under <code>log4j</code>. | ||
==== Changes Related to Services ==== | ==== Changes Related to Services ==== |
Revision as of 20:18, 4 May 2009
gCore 0.5.0RC
requires or supports the following changes to practices and implementations that are compliant with gCore 0.4.4:
Changes Related to the gHN
- package change in
ResultSet
components
- The inclusion of the
ResultSet
service and related components in gCore has coincided with a refactorisation of their package structure. In particular, fully qualified names that begun withorg.gcube.searchservice
begin now withorg.gcube.common.searchservice
.
- package change in
- new log files and log file location.
- All gCore logs are now located in
$GLOBUS_LOCATION/logs
, whilenohup.out
remains in$GLOBUS_LOCATION
(now regardless of where the$GLOBUS_LOCATION/bin/gcore-start-container
is run from). The gHN's logs remains the same (container.fulllog
,container.log
), but the local services have dedicated log files (ghnmanager.log
,deployer.log
,delegation.log
,rs.log
). Globus logs are now collected in a separate log fileglobus.log
and do not propagate to the contatainer's log files (default log level for globus isWARN
). Developers are recommended to configure service-specific logs during development. For this purpose, the configuration for local services in$GLOBUS_LOCATION/container-log4j.properties
can be used as templates.
- new lower bound on memory requirement for gHNs.
- The gHN now requires the allocation of 1GB of heap space to the JVM in which it runs. This is a production-level requirement and can be disabled or corrected during development by editing the script
$GLOBUS_LOCATION/bin/gcore-start-container
(START_OPTIONS
variable).
- new gHN configuration file for offline use.
- gCore ships with a clone of
$GLOBUS_LOCATION/config/GHNConfig.xml
called$GLOBUS_LOCATION/config/GHNConfig.client.xml
. The latter can diverge arbitrarily from the former so as to decouple offline and online use of the gHN.
- (optional) configuration of free port range for the gHN.
- Administrators and developers can now specify a
portRange
environment in$GLOBUS_LOCATION/configs/GHNConfig.xml
' (or$GLOBUS_LOCATION/configs/GHNConfig.client.xml
if useful). The value of the environment can be specified as in the following example:
<environment name="portRange" value="60000-61000" type="java.lang.String" />
- Do note the following:
- The configuration does not imply that the ports are actually 'open', only that they can be bound.
- The gHN management interface (see below) depends on the existence of this configuration.
- The first free port in this range can be obtained by invoking the method
getFreePort()
om theGHNContext
. See the Javadoc documentation for details of the signature.
- Do note the following:
- (optional) use of the JMX management interface.
- The gHN now binds a JMX managemenet interface to the port that it finds free in the configured range (see above). The bound port is shown in the gHN logs:
...GHNContext: INITIALISED MANAGEMENT INTERFACE AT service:jmx:rmi:///jndi/rmi://localhost:60000
- The interface can then be used with
jconsole
, a graphical JMX client that ships with the JDK:
- The interface can then be used with
jconsole localhost:60000
- gHN-specific and RI-specific information and operations can be found in the
MBeans
tabbed pane underorg.gcube
. In the same tabbed pane, logger and appender information and operations can be found underlog4j
.
- gHN-specific and RI-specific information and operations can be found in the