Installing TDS with Davis

Both Davis and TDS can run on the server without problems. This is because Davis only requires port 443, while TDS only requires port 80. Instead of running both services in the same container, we will run two separate instances of Jetty, one for each service. This will allow each JVM to run with more memory (since we will be running the 32-bit version of CentOS, which limits each JVM to 2 Gb of memory).

Install  Java and  Jetty as usual.

Then modify the "addConnector" element in the $JETTY_HOME/etc/jetty.xml like so, where the host is specified and it's running on port 80:

    <Call name="addConnector">
      <Arg>
          <New class="org.mortbay.jetty.nio.SelectChannelConnector">
        <Set name="host">srbdev.sf.utas.edu.au</Set>
            <Set name="port">80</Set>
            <Set name="maxIdleTime">30000</Set>
            <Set name="Acceptors">2</Set>
            <Set name="statsOn">false</Set>
            <Set name="confidentialPort">8443</Set>
        <Set name="lowResourcesConnections">5000</Set>
        <Set name="lowResourcesMaxIdleTime">5000</Set>
            <Set name="headerBufferSize">8096</Set>
          </New>
      </Arg>
    </Call>

Create a resource file for TDS

DO NOT set the $JETTY_HOME environment variable - specify it in a resource file.

As root, create a file called .jetty-tdsrc

JETTY_HOME=/opt/jetty-6.1.15
JAVA_HOME=/usr/java/jdk1.6.0_12/jre
JAVA_OPTIONS="-server -Xmx2G -Xms512m"

Install Jetty (TDS) startup script

  • Download the tds script (modified version of jetty.sh that is bundled with Jetty), attached at the bottom of this page
  • Copy this to /etc/init.d/tds
  • Try starting the service, you should see something like the following:
[root@ng2dev tmp]# /etc/init.d/tds start
[root@ng2dev tmp]# 2009-03-12 23:44:13.820::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2009-03-12 23:44:13.911::INFO:  Redirecting stderr/stdout to /opt/jetty-6.1.15/logs/2009_03_12.stderrout.log

TDS

You should be able to  install TDS and  configure it as usual.

Redirections with Apache

Using ajp and mod_rewrite on Apache, we can redirect the following URLs:

http://arcs-df.x.arcs.org.au → https://arcs-df.x.arcs.org.au/ARCS/

https://arcs-df.x.arcs.org.au → https://arcs-df.x.arcs.org.au/ARCS/

http://opendap-x.arcs.org.au → http://opendap-x.arcs.org.au/thredds/

Attachments