Difference between revisions of "Running pubman coreservice fedora postgres on one machine"

From MPDLMediaWiki
Jump to navigation Jump to search
(tidyup)
Line 4: Line 4:


Most changes consisted of changing port-numbers to avoid conflict, but in addition, changes were necessary to the apache server, and the side-by-side location of two jboss servers.
Most changes consisted of changing port-numbers to avoid conflict, but in addition, changes were necessary to the apache server, and the side-by-side location of two jboss servers.
==Changes in Fedora==
==Changes in Fedora==


Line 38: Line 39:


and here the differences in the tomcat fedora configuration.
and here the differences in the tomcat fedora configuration.


   --- originals/tomcat_conf/server.xml 2010-09-16 15:03:47.000000000 +0200
   --- originals/tomcat_conf/server.xml 2010-09-16 15:03:47.000000000 +0200
Line 54: Line 56:
           Define a non-SSL HTTP/1.1 Connector on port 8080
           Define a non-SSL HTTP/1.1 Connector on port 8080
       -->   
       -->   
   -    <Connector port="8082" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" enableLookups="true"   
   -    <Connector port="8082" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" enableLookups="true"   
   acceptCount="100" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" URIEncoding="UTF-8"/>   
   acceptCount="100" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" URIEncoding="UTF-8"/>   
   +    <Connector port="'''10082'''" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="'''10443'''" enableLookups="true" acceptCount="100" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" URIEncoding="UTF-8"/>   
   +    <Connector port="'''10082'''" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="'''10443'''" enableLookups="true" acceptCount="100" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" URIEncoding="UTF-8"/>   
       <!-- A "Connector" using the shared thread pool-->   
       <!-- A "Connector" using the shared thread pool-->   
       <!--
       <!--
Line 66: Line 68:
   -    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8"/>   
   -    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8"/>   
   +    <Connector port="'''10009'''" protocol="AJP/1.3" redirectPort="'''10443'''" URIEncoding="UTF-8"/>   
   +    <Connector port="'''10009'''" protocol="AJP/1.3" redirectPort="'''10443'''" URIEncoding="UTF-8"/>   
       <!-- An Engine represents the entry point (within Catalina) that processes
       <!-- An Engine represents the entry point (within Catalina) that processes -->
          every request.  The Engine implementation for Tomcat stand alone
 





Revision as of 10:28, 15 November 2011

This is a protected page.

This page documents the configuration setup used to run the whole pubman stack on one virtual machine (vm34) while the original three servers were being upgraded in November 2011.

Most changes consisted of changing port-numbers to avoid conflict, but in addition, changes were necessary to the apache server, and the side-by-side location of two jboss servers.

Changes in Fedora[edit]

here the diff output from the main fedora configuration file. The Fedora ports were moved from 8082, 8005, 8082 to 10082, 10005, 10443 to avoid conflict with the two co-resident jbosses.

 --- originals/fedora_conf/fedora.fcfg	2010-09-16 15:36:30.000000000 +0200
 +++ fedora_conf/fedora.fcfg	2011-11-08 14:35:21.000000000 +0100
 @@ -8,15 +8,15 @@
    <comment>Defines one or more email addresses for server administrators; 
		list is space delimited.</comment>
  </param>
 -  <param name="fedoraServerPort" value="8082">
 +  <param name="fedoraServerPort" value="10082">
    <comment>Defines the port number on which the Fedora server runs; 
		default is 8080.</comment>
  </param>
 -  <param name="fedoraShutdownPort" value="8005">
 +  <param name="fedoraShutdownPort" value="10005">
      <comment>Defines the port number used to shutdown the Fedora sever; 
		default is 8005.</comment>
    </param>
 -  <param name="fedoraRedirectPort" value="8443">
 +  <param name="fedoraRedirectPort" value="10443">
      <comment>Defines the redirect port of the Fedora sever; default is 8443.</comment>
    </param>
    <param name="fedoraServerHost" value="localhost">
 @@ -180,7 +180,7 @@
	    	character encoding that should be used. Default is UTF-8.</comment>
      </param>
      <param name="defaultExportFormat" value="info:fedora/fedora-system:FOXML-1.1"/>
 -    <param name="gSearchRESTURL" value="http://localhost:8080/fedoragsearch/rest">
 +    <param name="gSearchRESTURL" value="http://localhost:10080/fedoragsearch/rest">
      <comment>The REST endpoint of the Fedora Generic Search service.

and here the differences in the tomcat fedora configuration.


 --- originals/tomcat_conf/server.xml	2010-09-16 15:03:47.000000000 +0200
 +++ tomcat_conf/server.xml	2011-11-08 14:41:42.000000000 +0100
 @@ -20,7 +20,7 @@
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
   -->
 -<Server port="8005" shutdown="SHUTDOWN"> 
 +<Server port="10005" shutdown="SHUTDOWN"> 
    <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>  
 @@ -55,7 +55,7 @@
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
      -->  
 -    <Connector port="8082" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"  enableLookups="true"  
 acceptCount="100" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" URIEncoding="UTF-8"/>  
 +    <Connector port="10082" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="10443"  enableLookups="true" acceptCount="100" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"  URIEncoding="UTF-8"/>  
 -    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8"/>  
 +    <Connector port="10009" protocol="AJP/1.3" redirectPort="10443" URIEncoding="UTF-8"/>  


In addition, the fedora artefacts had to be reachable via the same path (/opt/fedora/data) as on the original system, to maintain consistency with the paths to the objects in the postgresql DB. This was achieved via a symbolic link

Changes in PostgreSQL[edit]

Changes in Coreservice[edit]

Changes in Pubman[edit]