วันอาทิตย์, พฤษภาคม 28, 2549

DSpace : Export items in a collection.

refer to the system document, we can export items in a specific collection by :

$ /bin/dsrun org.dspace.app.itemexport.ItemExport --type=COLLECTION --id= --dest=/some/where/destination/ --number=


ทำโหลดบาลานซิ่ง http://sunsite.utk.edu/diglib/dspace/contrib/loadbal.txt
######################################################
# This document was kindly contributed by Larry
# Lansing (lansil @ fuzzynerd.com). For any questions
# regarding this information, please contact him
# directly.
######################################################

As promised, here are my loadbalancing configuration files. These are
still works-in-progress--there are probably mistakes and omissions. I
hope someone finds these useful.

Notes: The apache server (I'll call it "www") relays connections to
two tomcat servers called "jsp1" and "jsp2", using ajp13. www runs
Apache2.0, with mod_jk. jsp1 and jsp2 run Tomcat 4.1.24. I have
tried to simplify my configs by disabling unnecessary tomcat
connectors, such as the standalone port 8080 HTTP connector.

www configs
-----------
httpd.conf must include these lines in appropriate places:
***
LoadModule jk_module libexec/apache2/mod_jk.so
Include /usr/local/etc/apache2/mod_jk.conf
***

mod_jk.conf:
***


JkWorkersFile /usr/local/etc/apache2/workers.properties
JkLogFile logs/jk.log
JkLogLevel warn
JkMount /dspace/* loadbalancer
JkMount /dspace-oai/* loadbalancer

***

workers_properties:
***
worker.list=loadbalancer

worker.jsp1.port=8009
worker.jsp1.host=jsp1
worker.jsp1.type=ajp13
worker.jsp1.lbfactor=1

worker.jsp2.port=8009
worker.jsp2.host=jsp2
worker.jsp2.type=ajp13
worker.jsp2.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=jsp1, jsp2
***

jsp1 and jsp2
-------------
Tomcat's server.xml (still a bit "raw" until I figure out what each
option does):
***








port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>





prefix="catalina_log." suffix=".txt"
timestamp="true"/>





unpackWARs="true" autoDeploy="true">


directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common"/>


directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>





allowLinking="true" docBase="" />


allowLinking="true" docBase="" />









***

ไม่มีความคิดเห็น: