ER-MatlabMCDS
-
Upload
dario-a-estupinan-calderon -
Category
Documents
-
view
7 -
download
0
description
Transcript of ER-MatlabMCDS
7/21/2019 ER-MatlabMCDS
http://slidepdf.com/reader/full/er-matlabmcds 1/9
Matlab MCDS
Matlab MCDS
This section will detail any specific customization made during the installation and configuration of the Matlab
MCDS service.
Matlab Installation
The installation followed the steps documented here:-
http://uk.mathworks.com/help/install/ug/install-mathworks-software.html
The default install locations were chosen.
All products that were made available from the Matlab portal were installed.
The supplied key was for "MATLAB Distributed Computing Server"
The software was installed on a vApp comprising of a single VM with 4 vCPUs (2 core), 16Gb memory and
120Gb disk.
Manually starting Matlab DCSE
Starting the FlexNET licence server
Place client license file in default location:
<MATLAB_HOME>/licenses/license.dat
The license file must contain the following two lines:only
SERVER server_name server_MAC 27000
USE_SERVER
Open port for licence server and DCSE, add the following to /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 27000 -j ACCEPT -A INPUT -m
state --state NEW -m tcp -p tcp --dport 27352 -j ACCEPT
Start the license daemon (using erw user)
<MATLAB_HOME>/etc/lmstart -u erw
Note: The licence server cannot be started as
root, it must be started either from a shell
as an unprivileged or using the '-u' switch to
specify a non-root user If no errors are show when starting the server, confirm the license is available by running:
7/21/2019 ER-MatlabMCDS
http://slidepdf.com/reader/full/er-matlabmcds 2/9
<MATLAB_HOME>/etc/lmdiag
FlexLM Licence Service
The FlexLM service will have been mostly configured during installation but no startup scripts are provided.
Create the init file
touch /etc/init.d/flexlm
Mark file as executable
chmod a+x /etc/init.d/flexlm
Copy the following into the file:
#!/bin/bash
### BEGIN INIT INFO
# Provides: flexlm
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: FlexLM Licence Server
### END INIT INFO
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbi
n:/sbin
LMSTART="/usr/local/MATLAB/R2015a/etc/lmstart -u erw"
LMSTOP="/usr/local/MATLAB/R2015a/etc/lmdown"
LMSTATUS="/usr/local/MATLAB/R2015a/etc/lmdiag"
. /lib/lsb/init-functions
case "$1" in start)
echo "Starting FlexLM Service...."
$LMSTART
echo "....done"
;;
stop)
echo "Stopping FlexLM Service...."
$LMSTOP
echo "....done"
;;
restart)
echo "Stopping FlexLM Service...."
$LMSTART
7/21/2019 ER-MatlabMCDS
http://slidepdf.com/reader/full/er-matlabmcds 3/9
echo "....done"
sleep 2s
echo
echo "Starting FlexLM Service...."
$LMSTART
echo "....done"
;;
status)
$LMSTATUS
;;
*)
echo "Usage: /etc/init.d/flexlm {start|stop|status}"
exit 1
;;
7/21/2019 ER-MatlabMCDS
http://slidepdf.com/reader/full/er-matlabmcds 4/9
esac
exit 0
MDCE Service
You must manually start the MDCE service at least once in order to use the 'admincenter' GUI to configure the
worker nodes. When MDCE has been confiured a service script must be created.
Create the init file
touch /etc/init.d/matlab-mdce
Mark file as executable
chmod a+x /etc/init.d/matlab-mdce
Copy the following into the file:
7/21/2019 ER-MatlabMCDS
http://slidepdf.com/reader/full/er-matlabmcds 5/9
#!/bin/bash
### BEGIN INIT INFO
# Provides: matlab-mdce
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6 # Description: MatLab DistComp Engine
### END INIT INFO
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbi
n:/sbin
MDSTART="/usr/local/MATLAB/R2015a/toolbox/distcomp/bin/mdce start"
MDSTOP="/usr/local/MATLAB/R2015a/toolbox/distcomp/bin/mdce stop"
MDRESTART="/usr/local/MATLAB/R2015a/toolbox/distcomp/bin/mdce restart"
MDSTATUS="/usr/local/MATLAB/R2015a/toolbox/distcomp/bin/mdce status"
. /lib/lsb/init-functions
case "$1" in
start)
echo "Starting Matlab MDCE Service...."
$MDSTART
echo "....done"
;;
stop)
echo "Stopping Matlab MDCE Service...."
$MDSTOP
echo "....done"
;;
restart)
echo "Restarting Matlab MDCE Service...."
$MDRESTART
echo "....done"
;;
status) $MDSTATUS
;;
*)
echo "Usage: /etc/init.d/matlab-mdce {start|restart|stop|status}"
exit 1
;;
esac
exit 0
7/21/2019 ER-MatlabMCDS
http://slidepdf.com/reader/full/er-matlabmcds 6/9
MATLAB User Settings
The default MATLAB configuration will attempt to use a 'local' 'distcomp' engine. To pre-configure new users to
use the MDCE engine, the following file must be added to /etc/skel
/etc/skel/.matlab/R2015a/parallel.settings
Add the following to the parallel.settings file:
<?xml version="1.0" encoding="UTF-8"?>
<settings name="parallel" xmlns="urn:mathworks.matlab.settings"
xsi:schemaLocation="urn:mathworks.matlab.settings settings.xsd" xmlns:xsi="http:/
">/www.w3.org/2001/XMLSchema-instance
<settings name="client">
<key name="ConfigurationsLastUpgradeTime">
<double>
</double>
</key>
<key name="DefaultProfile">
<string>
<value><![CDATA[ERW]]></value>
</string>
</key>
<key name="LastForcedLogin">
<string>
</string>
</key>
<settings name="gui" visible="true">
<key name="IndicatorTooltipDetailLevel" visible="true">
<string>
<value><![CDATA[VERBOSE]]></value>
</string>
</key>
</settings>
<settings name="pool">
<key name="AutoCreate">
<bool>
<value>1</value>
</bool>
</key>
<key name="IdleTimeout">
<double> </double>
</key>
<key name="PreferredNumWorkers">
<double>
</double>
</key>
<key name="RestartOnClusterChange">
<bool>
</bool>
</key>
<key name="RestartOnPreferredNumWorkersChange">
<bool>
</bool>
</key>
</settings>
7/21/2019 ER-MatlabMCDS
http://slidepdf.com/reader/full/er-matlabmcds 7/9
</settings>
<settings name="internal">
<settings name="profilesWithReadOnlySched">
<key name="cloud" visible="true">
<bool>
</bool>
</key>
<key name="local" visible="true"> <bool>
</bool>
</key>
</settings>
</settings>
<settings name="profiles">
<settings name="ERW" visible="true">
<key name="Description" visible="true">
<string>
<value><![CDATA[Auto-generated by the discover clusters
wizard.]]></value>
</string>
</key>
<key name="ProjectComponent" visible="true" anytype="true">
</key>
<key name="SchedulerComponent" visible="true">
<string>
<value><![CDATA[ERWSchedulerComponent]]></value>
</string>
</key>
</settings>
<settings name="local" visible="true">
<key name="Description" visible="true"> <string>
</string>
</key>
<key name="ProjectComponent" visible="true" anytype="true">
</key>
<key name="SchedulerComponent" visible="true">
<string>
</string>
</key>
</settings>
</settings>
<settings name="projectcomponents">
</settings>
<settings name="schedulercomponents">
<settings name="Cloud" visible="true">
</settings>
<settings name="Generic" visible="true">
</settings>
<settings name="HPCServer" visible="true">
</settings>
<settings name="LSF" visible="true">
</settings>
<settings name="Local" visible="true"> <settings name="localSchedulerComponent" visible="true">
<key name="DummyKey" visible="true">
<string>
7/21/2019 ER-MatlabMCDS
http://slidepdf.com/reader/full/er-matlabmcds 8/9
</string>
</key>
<key name="JobStorageLocation" visible="true">
<string minArraySize="0" maxArraySize="0" undef="true">
</string>
</key>
<key name="NumWorkers" visible="true" anytype="true">
</key> </settings>
</settings>
<settings name="MJS" visible="true">
<settings name="ERWSchedulerComponent" visible="true">
<key name="Certificate" visible="true" anytype="true">
</key>
<key name="DefaultTimeout" visible="true" anytype="true">
</key>
<key name="Host" visible="true">
<string>
<value><![CDATA[matlab.erw.nerc.ac.uk]]></value>
</string>
</key>
<key name="LicenseNumber" visible="true" anytype="true">
</key>
<key name="MJSName" visible="true">
<string>
<value><![CDATA[ERW]]></value>
</string>
</key>
<key name="MaximumRetries" visible="true" anytype="true">
</key>
<key name="RestartWorker" visible="true" anytype="true"> </key>
<key name="Username" visible="true" anytype="true">
</key>
</settings>
</settings>
<settings name="MJSComputeCloud" visible="true">
</settings>
<settings name="PBSPro" visible="true">
</settings>
<settings name="Torque" visible="true">
7/21/2019 ER-MatlabMCDS
http://slidepdf.com/reader/full/er-matlabmcds 9/9
</settings>
</settings>
</settings>
The host name was changed to matlab.erw.nerc.ac.uk