Difference between revisions of "SUNScholar/Optimisations"

From Libopedia
Jump to navigation Jump to search
m
Line 29: Line 29:
 
==[[SUNScholar/Optimisations/Bitstream checker|Bitstream checker]]==
 
==[[SUNScholar/Optimisations/Bitstream checker|Bitstream checker]]==
 
Click on the heading above
 
Click on the heading above
 
==Bitstream checker==
 
Modified bitstream checker settings as follows to reduce database size.
 
<pre>
 
#### Checksum Checker Settings ####
 
# Default dispatcher in case none specified
 
plugin.single.org.dspace.checker.BitstreamDispatcher=org.dspace.checker.SimpleDispatcher
 
 
# check history retention
 
checker.retention.default=1y
 
checker.retention.CHECKSUM_MATCH=2w
 
</pre>
 
;References
 
*https://wiki.duraspace.org/display/DSDOC4x/Validating+CheckSums+of+Bitstreams
 
  
 
==Monit monitor service==
 
==Monit monitor service==

Revision as of 09:41, 1 August 2014

Back to After Installation Tasks

Introduction

This wiki page details the major optimisations of the system performed at Stellenbosch University in order to create a truly production optimised version of DSpace.

Troubleshooting

Click on the heading above.

Java

Click on the heading above.

Tomcat

Click on the heading above.

Reduce system log sizes

Click on the heading above.

Email error logs

Click on the heading above

XMLUI

Click on the heading above

Database

Click on the heading above

Bitstream checker

Click on the heading above

Monit monitor service

In case the Tomcat service halts or hangs due to whatever... , I installed monit to restart the service and then alert me. See an example of my config below, added to the bottom of the /etc/monit/monitrc file.

dspace@ir1:/etc/monit$ sudo cat /etc/monit/monitrc
set daemon  60
set logfile syslog facility log_daemon
set mailserver localhost
set mail-format { from: monit@ez.sun.ac.za }
set alert root@localhost
set httpd port 2812
     allow %username%:%password%

check process sshd with pidfile /var/run/sshd.pid
   start = "/usr/sbin/service ssh start"
   stop  = "/usr/sbin/service ssh stop"
   if failed port 22 protocol ssh with timeout 5 seconds then restart
   alert hgibson@sun.ac.za

check process tomcat6 with pidfile /var/run/tomcat6.pid
   start = "/usr/sbin/service tomcat6 restart"
   stop  = "/usr/sbin/service tomcat6 stop"
   if failed port 80 protocol http with timeout 300 seconds then restart
   alert hgibson@sun.ac.za
   alert wklap@sun.ac.za

All confidential information has been replaced with % signs or captial X's.

References