-
Notifications
You must be signed in to change notification settings - Fork 0
LetsMT
tiedemann edited this page Aug 24, 2018
·
6 revisions
- create a virtual machine on cPouta with Ubuntu 14.04
- connect with a floating IP and find the DNS name with
dig -x xxx.xxx.xx.xxx
- download the repository software
- set HOSTNAME with the fully qualified DNS name, for example,
vm1637.kaj.pouta.csc.fi
- install with make
sudo apt-get install git
git clone https://github.com/Helsinki-NLP/LetsMT-repository.git
cd LetsMT-repository.git
export HOSTNAME=vm1637.kaj.pouta.csc.fi
sudo make install
- more info on http://opus.nlpl.eu/letsmt-trac/wiki/RepositorySetup
- querying TokyoCabinet database from command line, for example search all files with status=imported
sudo service ttservctl_meta stop
tctmgr search /var/lib/letsmt/metadata.tct status eq imported
sudo service ttservctl_meta start
- Debugging
edit log4perl config: /usr/local/etc/repository/log4perl.conf
and activate DEBUG level
log4perl.logger=DEBUG, AppDebug
restart apache and monitor logfiles in /var/log/letsmt/www-data_debug.log
Edit code LetsMT code with more calls to get_logger(__PACKAGE__)->info
or get_logger(__PACKAGE__)->debug
. Don't forget to install the new code and restart with make code-update
- SLURM is now default in the repository software! The information below is just for keeping the info about its setup.
sudo apt-get install slurm-llnl
sudo apt-get install munge
sudo /usr/sbin/create-munge-key
sudo service munge start
sudo echo 'CgroupAutomount=yes' > /etc/slurm-llnl/cgroup.conf
- Create
/etc/slurm-llnl/slurm.conf
(use configuration generator at https://slurm.schedmd.com/configurator.html). - My current config file:
ControlMachine=letsmt
AuthType=auth/munge
CryptoType=crypto/munge
MpiDefault=none
ProctrackType=proctrack/cgroup
ReturnToService=1
SlurmctldPidFile=/var/run/slurmctld.pid
SlurmctldPort=6817
SlurmdPidFile=/var/run/slurmd.pid
SlurmdPort=6818
SlurmdSpoolDir=/var/spool/slurmd
SlurmUser=root
StateSaveLocation=/var/spool/slurm.state
SwitchType=switch/none
TaskPlugin=task/affinity
TaskPluginParam=Sched
InactiveLimit=0
KillWait=30
MinJobAge=300
SlurmctldTimeout=120
SlurmdTimeout=300
Waittime=0
FastSchedule=1
SchedulerType=sched/backfill
SelectType=select/cons_res
SelectTypeParameters=CR_Core
AccountingStorageType=accounting_storage/none
AccountingStoreJobComment=YES
ClusterName=cluster
JobCompType=jobcomp/none
JobAcctGatherFrequency=30
JobAcctGatherType=jobacct_gather/none
SlurmctldDebug=3
SlurmdDebug=3
NodeName=letsmt CPUs=1 State=UNKNOWN
PartitionName=debug Nodes=letsmt Default=YES MaxTime=1440 State=UP
- start slurm daemons:
sudo service slurm-llnl start
- related info: https://www.invik.xyz/work/Slurm-on-Ubuntu-Trusty/
- if this fails: run on command line with verbose output
sudo slurmctld -Dvvv
sudo slurmd -Dvvv
- http://opus.nlpl.eu/letsmt-trac/wiki/RepositorySetup
- http://opus.nlpl.eu/letsmt-trac/wiki/TroubleShooting
- http://opus.nlpl.eu/letsmt-trac/wiki/GridSetup
- http://opus.nlpl.eu/letsmt-trac/wiki/Releases
- http://opus.nlpl.eu/letsmt-dev/releases/?C=M;O=D (not available at the moment)