Sure, if you are using the default IceGrid configuration, then the only requirements are to change the Registry port, the Glacier2 port, the connection information for your database, and the omero.data.dir.
The Registry port is specified in the *.cfg files:
- Code: Select all
$ grep -r 4061 etc/
etc/internal.cfg:Ice.Default.Locator=IceGrid/Locator:tcp -h 127.0.0.1 -p 4061
etc/master.cfg:IceGrid.Registry.Client.Endpoints=tcp -h 127.0.0.1 -p 4061
The Glacier2 port is specified in etc/grid/default.xml (or windefault.xml or Windows):
- Code: Select all
<server-instance template="Glacier2Template"
client-endpoints="tcp -p 4063"
session-timeout="300"
server-endpoints="tcp -h 127.0.0.1"/>
The configuration is a bit more complicated if you are using the System properties set via "bin/omero config". Each server ("bin/omero admin start") loads the default properties if "OMERO_CONFIG" is not set. If you set "OMERO_CONFIG"
before running "admin start", each instance will pick up separate values.
- Code: Select all
cd production
export OMERO_CONFIG=production
bin/omero config set omero.data.dir /OMERO/
bin/omero config set omero.db.name production
bin/omero admin start
cd ../testing
export OMERO_CONFIG=testing
bin/omero config set omero.data.dir /OMERO_TESTING
bin/omero config set omero.db.name testing
bin/omero admin start
The alternative to maintaining two sets of config and switching by environment variable is to specify the values directly in each of the default.xml files, which only has the down-side of needing to manage the permissions on that file to prevent password-snopping.
Updated: added requirement to change the registry port.