How to install multiple instance of GeoNetwork on same Jetty server

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to install multiple instance of GeoNetwork on same Jetty server

François-Xavier PRUNAYRE
Hi list, Just a quick how-to install multiple nodes on the same jetty & mckoi install.
 
#1.Make as many installation as you need (you can use Desktop or server installer). Make sure to set up all nodes with different node name. Install in different directory (eg. /usr/geonetwork, /usr/geonetwork1, /usr/geonetwork2)
#2.Check that all nodes are working one after the other.
#3.Shutdown all nodes
#4.Select one node where you want to install all instance (eg. /usr/geonetwork)
#5.Copy all web directory to the main node (eg. copy /usr/geonetwork2/web in /usr/geonetwork/web2, etc.)
#6.Set up jetty to start all web application. Edit /usr/geonetwork/bin/config.xml and add as many nodes as you need
<!-- This is my first node -->
  <Call name="addWebApplication">
   <Arg>/geonetwork</Arg>
   <Arg>../web</Arg>
  </Call>
<!-- This is my second -->
  <Call name="addWebApplication">
   <Arg>/geonetwork2</Arg>
   <Arg>../web2</Arg>
  </Call>
...
#7.Set up web application. Edit /usr/geonetwork/web2/WEB-INF/web.xml and change all geonetwork by the jetty web application name. (eg. change <servlet-name>geonetwork</servlet-name> by <servlet-name>geonetwork2</servlet-name>).
#8.Set up mckoi database to use different port. Edit /usr/geonetwork/web2/WEB-INF/db/db.conf and change the jdbc_server_port parameter (eg jdbc_server_port=9158). Be sure to set DB with different ports.
#9.Set up GeoNetwork database ports according to #8 (eg. change in /usr/geonetwork/web2/WEB-INF/config.xml <url>jdbc:mckoi://localhost/</url>
 by <url>jdbc:mckoi://localhost:9158/</url>) for the node to point to the correct mckoi db.
#10.Set GeoNetwork z3950Port. In order to avoid conflict between all nodes, update the z3950Port parameters in /usr/geonetwork/web2/WEB-INF/config.xml (eg. change     <param value="2100" name="z3950Port" /> by     <param value="2101" name="z3950Port" />)
#11.Update the /usr/geonetwork/web2/index.html to make the redirection ok. Change geonetwork by the web application name as defined in jetty.xml.

HTH.
 
Francois
 

--
Ce message a ete verifie par MailScanner pour des virus ou des polluriels et rien de suspect n'a ete trouve.
 
Les donnees et renseignements contenus dans ce message sont personnels, confidentiels et privés.Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.
 
Any data and information contained in this electronic mail is personal, confidential and private. Any total or partial publication, use or distribution must be authorized.