Difference between revisions of "SUNScholar/Optimisations"

From Libopedia
Jump to navigation Jump to search
 
(43 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
==Introduction==
 
==Introduction==
This wiki page details the major optimisations of the system performed at Stellenbosch University in order to create a <font color="red">'''truly production optimised version of DSpace'''</font>.
+
This wiki page details the major optimisations of the system performed at Stellenbosch University in an attempt to create a <big><font color="red">'''truly production optimised version of DSpace'''</font></big>.
 +
===Recommended===
 +
#[[SUNScholar/Install_Ubuntu/S01|Server Hardware]]
 +
#[[SUNScholar/Optimisations/Tomcat|Tomcat Webapp Server]]
 +
#[[SUNScholar/Optimisations/Database|ANSI SQL Database]]
 +
#[[SUNScholar/Optimisations/Java|Java Virtual Machine]]
 +
#[[SUNScholar/Optimisations/Logs|Reduce system log sizes]]
 +
#[[SUNScholar/Optimisations/Bitstream checker|Bitstream checker]]
  
==[[SUNScholar/Optimisations/Java|Java]]==
+
===Optional===
Click on the heading above.
+
#[[SUNScholar/Optimisations/Ubuntu Software|Ubuntu Software]]
 +
#[[SUNScholar/Optimisations/Monit service|Monit service]]
 +
#[[SUNScholar/Troubleshooting|Troubleshooting]]
  
==[[SUNScholar/Optimisations/Tomcat|Tomcat]]==
+
===YouTube Video===
Click on the heading above.
+
<html5media width="560" height="315">https://www.youtube.com/watch?v=pGhbtULhNJA</html5media>
 
 
==[[SUNScholar/Optimisations/Logs|Reduce system log sizes]]==
 
Click on the heading above.
 
 
 
==[[SUNScholar/Optimisations/Error Logs|Email error logs]]==
 
Click on the heading above
 
 
 
==XMLUI==
 
*Use XMLUI exclusively to reduce the memory load.
 
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_DSpace/S08
 
 
 
==Database==
 
*Fix "browse index" configuration to reduce the PostgreSQL database server query load.
 
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Browse_Indexes
 
Vacumn the database regularly
 
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Daily_Admin
 
 
 
==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==
 
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.
 
<pre>
 
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
 
</pre>
 
All confidential information has been replaced with % signs or captial X's.
 
  
 
==References==
 
==References==
*https://wiki.duraspace.org/display/DSDOC18/Performance+Tuning+DSpace
+
*https://wiki.duraspace.org/display/DSPACE/SystemAdministrators
 +
*https://wiki.duraspace.org/display/DSPACE/PostgresPerformanceTuning
 +
*https://wiki.duraspace.org/display/DSDOC5x/Performance+Tuning+DSpace
 +
*https://wiki.duraspace.org/display/DSDOC4x/Performance+Tuning+DSpace
 +
*https://wiki.duraspace.org/display/DSDOC3x/Performance+Tuning+DSpace
 +
*https://wiki.duraspace.org/display/FCREPO/Performance+Testing
 
*http://www.turnkeylinux.org/tomcat
 
*http://www.turnkeylinux.org/tomcat
 
*http://www.tecmint.com/how-to-install-and-setup-monit-linux-process-and-services-monitoring-program
 
*http://www.tecmint.com/how-to-install-and-setup-monit-linux-process-and-services-monitoring-program
 
*http://www.tecmint.com/command-line-tools-to-monitor-linux-performance
 
*http://www.tecmint.com/command-line-tools-to-monitor-linux-performance
 +
[[Category:System Administration]]
 +
[[Category:Optimisations]]
 +
[[Category:Installation]]
 +
__NOTOC__

Latest revision as of 00:00, 10 June 2016