Changes between Version 10 and Version 11 of OTM-PlanetLabInstall
- Timestamp:
- 03/08/11 20:17:02 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OTM-PlanetLabInstall
v10 v11 1 1 = !OnTimeMeasure Installation Procedure on !PlanetLab = 2 '''Prasad Calyam, Rohit Patali, Kunpeng Zhu'''[[BR]]3 ''' Nov 18, 2010'''[[BR]]4 ''Software License:'' [http://www.geni.net/wp-content/uploads/2009/02/geniprojlic.pdf ''GENI Project License (GPL)''] 2 '''Prasad Calyam, Yingxiao Xu, Rohit Patali, Kunpeng Zhu'''[[BR]] 3 '''Mar 08, 2011'''[[BR]] 4 5 5 6 6 == 1. Overview == 7 This document describes the installation, configuration and usage of !OnTimeMeasure -v1.0 on !PlanetLab. !OnTimeMeasure is a prototype measurement service for the GENI facility users. The measurement service can be used to perform centralized and distributed orchestration and provisioning of activemeasurements within experiment slices for purposes such as:7 This document describes the installation, configuration and usage of !OnTimeMeasure on !PlanetLab. !OnTimeMeasure is a measurement service for the GENI facility users. The measurement service can be used to perform centralized and distributed orchestration and provisioning of measurements within experiment slices for purposes such as: 8 8 9 9 * Network paths monitoring … … 12 12 * Network-bottleneck fault-location diagnosis 13 13 14 The [http://ontime.oar.net ''OnTimeMeasure researcher web-portal''] enables a ProtoGENI/Emulab and !PlanetLab user to register, create and monitor experiment slices on a geographically distributed resources in the GENI facility. [[BR]]14 The [http://ontime.oar.net ''OnTimeMeasure researcher web-portal''] enables a ProtoGENI/Emulab and !PlanetLab user to register, create and monitor experiment slices on geographically distributed resources. [[BR]] 15 15 16 Before proceeding further, we highly recommend reading the [http://groups.geni.net/geni/attachment/wiki/OnTimeMeasure/OnTimeMeasure_Tutorial.pdf OnTimeMeasure Tutorial] and [https://www.planet-lab.org/tutorial PlanetLabTutorial].16 Before proceeding further, we highly recommend reading the [http://groups.geni.net/geni/attachment/wiki/OnTimeMeasure/OnTimeMeasure_Tutorial.pdf Experimenter Tutorial]. 17 17 18 18 For details regarding !OnTimeMeasure, please visit [http://groups.geni.net/geni/wiki/OnTimeMeasure OnTimeMeasure Wiki].[[BR]] … … 20 20 For details regarding !PlanetLab, please visit [http://groups.geni.net/geni/wiki/PlanetLab PlanetLab Wiki] 21 21 22 == 2. !OnTimeMeasure Installation Steps on !PlanetLab:==22 == 2. Requirements == 23 23 24 === 2.1 Requirements ===25 24 The !OnTimeMeasure software package has the following requirements: 26 25 27 26 A. ''Operating System:'' Fedora 8 28 27 29 B. '' Pre-requisite Software:'' MySQL, Graphite, Perl, Python, Iperf, Ruby, Bwctl-server, Bwctl-client, Cairo, Python_Twisted, Python_Piddle, perl-CPAN28 B. ''Open Ports:'' For !RootBeacon server: MySQL TCP/3306, Graphite TCP/2003 and TCP/17280, Collector TCP/7777, HTTP TCP/17290, Supervisor TCP/17291; For !NodeBeacon server: Nodescheduler TCP/17249, HTTP TCP/17290, Supervisor TCP/17291 ('''Note:''' These ports are opened by default) 30 29 31 C. '' Perl Modules:'' Config::Natural, POSIX, Sys::HostIP, DBI, IO::Socket::SSL, Log::Log4perl, Net::SSLeay, Math::Random, YAML, HTTP::Daemon30 C. ''User Accounts:'' User must have registered accounts in the [http://ontime.oar.net OnTimeMeasure Researcher Web-portal] and [https://www.planet-lab.org/ PlanetLab]. 32 31 33 '''Note:''' The Pre-requisite Software and Perl Modules installation is handled by the scripts delivered in the !OnTimeMeasure-v1.0 package. See following sections for details.32 D. ''!PlanetLab slice:'' A !PlanetLab slice with at least 3 nodes. 34 33 35 D. ''Open ports:'' For !RootBeacon server: MySQL TCP/3306, Graphite TCP/2003 and TCP/17280, Collector TCP/7777, HTTP TCP/17290; For !NodeBeacon server: BWCTL TCP/4823, Nodescheduler TCP/17249, HTTP TCP/17290 34 '''Note 1:''' !PlanetLab slice can be created using the web interface by logging into your account or by using the sfi-client (CLI). To obtain detailed information about !PlanetLab slice creation, please refer to the [https://www.planet-lab.org/tutorial ''PlanetLab Tutorial''] 36 35 37 E. ''User Accounts:'' User must have registered accounts in the [http://ontime.oar.net OnTimeMeasure Researcher Web-portal] and [https://www.planet-lab.org/ PlanetLab].36 '''Note 2:''' Typically, two or more Node Beacons and one Root Beacon need to be installed on separate dedicated nodes in a slice; it is however possible to install Root Beacon on one of the Node Beacon nodes. 38 37 39 === 2.2 !PlanetLab Slice Creation and Configuration === 40 '''Note:''' To obtain detailed information about !PlanetLab slice creation, please refer to the [https://www.planet-lab.org/tutorial ''PlanetLab Tutorial''][[BR]] 38 '''Note 3:''' Following are the pre-requisite software and Perl modules, which will be installed automatically by the scripts delivered in the !OnTimeMeasure release package. 41 39 42 !PlanetLab slice can be created using the web interface by logging into your account or by using the sfi-client (CLI). 40 ''Pre-requisite Software:'' Iperf, MySQL, Graphite, Perl, Python, Ruby, Python-setuptools, Supervisor 43 41 44 === 2.3 Software Installation === 42 ''Perl Modules:'' Config::Natural, POSIX, DBI, IO::Socket::SSL, Log::Log4perl, Net::SSLeay, Math::Random 45 43 46 Download the latest OnTimeMeasure release package at http://ontime.oar.net/download/OnTimeMeasure_latest.php. 44 45 46 == 3. Centralized Case Installation == 47 48 === 3.1 Software Installation === 49 50 Download the latest !OnTimeMeasure release package at http://ontime.oar.net/download/OnTimeMeasure_latest.php. 51 52 For example, you can run the following command in an empty folder: 53 {{{ 54 wget http://ontime.oar.net/download/OnTimeMeasure_latest.php 55 tar xzf *.gz 56 }}} 47 57 48 58 Once you have downloaded the tar file, untar/unzip to see that it contains: 49 59 50 51 52 * README.txt60 * !NodeBeacon.tar.gz 61 * !RootBeacon.tar.gz 62 * README.txt 53 63 54 Next, login using SSH to each of the servers, copy the appropriate tar files over, and run the following commands to install the measurement service:64 Next, login using SSH to each of the servers, run the following commands to install the measurement service. You will be prompted to set a supervisor account during the Graphite installation, and also will be prompted to set a password of an automatically created database user: ''collector''. 55 65 56 __'''''On the Root Beacon:'''''__ 66 '''Note:''' Note that the ''collector'' password will apply to both centralized and distributed measurement cases of !OnTimeMeasure. 57 67 58 __Software installation__ 68 __'''''On the Root Beacon Server:'''''__ 69 59 70 {{{ 60 71 tar xzf RootBeacon.tar.gz 61 72 cd RootBeacon/InstallScript 62 chmod +x ontime_software_install.sh63 ./ontime_software_install.sh64 }}}65 66 __'''''On a Node Beacon:'''''__67 68 __Software installation__69 {{{70 tar xzf NodeBeacon.tar.gz71 cd NodeBeacon/InstallScript72 chmod +x ontime_software_install.sh73 73 ./ontime_software_install.sh 74 74 }}} 75 75 76 76 77 === 2.4 Software Configuration === 78 79 '''Centralized Case:''' 80 81 __'''''On the Root Beacon:'''''__ 82 83 __MySQL configuration__ 77 __'''''On a Node Beacon Server:'''''__ 84 78 85 79 {{{ 86 cd RootBeacon/InstallScript 87 mysql -u root -p < BuildWebServicesDatabase.sql 88 mysql -u root -p < BuildMeasurementDatabase.sql 89 mysql -u root –p 80 tar xzf NodeBeacon.tar.gz 81 cd NodeBeacon/InstallScript 82 ./ontime_software_install.sh 90 83 }}} 91 At the mysql prompt, type92 {{{93 CREATE USER 'collector'@'%' IDENTIFIED BY '<collector password>';94 GRANT ALL PRIVILEGES ON `Measurements` . * TO 'collector'@'%';95 GRANT ALL PRIVILEGES ON `WebServices` . * TO 'collector'@'%';96 exit97 }}}98 '''Note 1:''' Please use the <collector password> provided as part of the Slice information at Step 2 in the Researcher Web-portal.99 84 100 '''Note 2:''' If remote access to MySQL on the Root Beacon is disabled, please open the port TCP/3306 and follow the tutorial at http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html 85 === 3.2 Software Configuration and Invocation === 101 86 102 __Invocation options configuration__ 87 ==== Through !OnTime Beacon web-portal ==== 88 89 Login to the [http://ontime.oar.net OnTimeBeacon]. Setup resources (provide RSpec information) and control Node/Root Beacons within slice in an ''interactive'' manner. Video demos of these steps can be viewed at [http://ontime.oar.net/demo/] 90 91 92 ==== Through !OnTime Control command-line tools ==== 93 94 Follow the [https://svn.osc.edu/trac/activemon/wiki/OnTimeControlManual ''OntimeControl Manual''] to control Node/Root Beacons within slice in an ''automated'' manner. 95 96 == 4. Distributed Case Installation == 97 98 === 4.1 Software Installation === 99 100 The ''Centralized Case Installation'' will install distributed version automatically. 101 If you want to only install the distributed version, do the following steps: 102 103 Download the latest !OnTimeMeasure release package at http://ontime.oar.net/download/OnTimeMeasure_latest.php. 104 105 Once you have downloaded the tar file, untar/unzip to see that it contains: 106 107 * !NodeBeacon.tar.gz 108 * !RootBeacon.tar.gz 109 * README.txt 110 111 112 Only the !NodeBeacon.tar.gz is needed. Run the following commands to install the measurement service: 103 113 104 114 {{{ 105 perl config_wizard.pl 106 }}} 107 Follow the steps as directed by the wizard script. 108 109 __'''''On a Node Beacon:'''''__ 110 111 __Invocation options configuration__ 112 113 {{{ 114 perl config_wizard.pl 115 }}} 116 Follow the steps as directed by the wizard script. 117 118 '''Note:''' If you want to customize the parameters on invoking measurement tools, you can manually modify the "runtool.conf" which locates in the "NodeBeacon/etc" folder. 119 120 __'''''On the Web-portal:'''''__ 121 122 Login to the [http://ontime.oar.net OnTimeMeasure Researcher Web-portal] and provide the Slice RSpec information. 123 124 === 2.5 Software Invocation === 125 126 '''Centralized Case:''' 127 128 __'''''On the Root Beacon:'''''__ 129 130 Go to "Collector/" and run 131 {{{ 132 nohup perl collector.pl & 133 }}} 134 Then, go to "../!RootScheduler/" 135 {{{ 136 nohup /opt/graphite/bin/run-graphite-devel-server.py /opt/graphite & 137 nohup perl file_server.pl & 138 nohup perl action_script.pl & 115 tar xzf NodeBeacon.tar.gz 116 cd NodeBeacon/InstallScript 117 ./ontime_software_install.sh 139 118 }}} 140 119 141 __'''''On a Node Beacon:'''''__142 120 143 Go to 'Datagen/' run144 121 145 {{{ 146 nohup perl file_server.pl & 147 nohup perl node_scheduler.pl & 148 }}} 122 === 4.2 Software Configuration and Invocation === 149 123 124 ==== Through !OnTime Beacon web-portal ==== 125 126 Login to the [http://ontime.oar.net OnTimeBeacon]. Setup resources (provide RSpec information) and control Node/Root Beacons within slice in an ''interactive'' manner. Video demos of these steps can be viewed at [http://ontime.oar.net/demo/] 127 128 129 ==== Through !OnTime Control command-line tools ==== 130 131 Follow the [https://svn.osc.edu/trac/activemon/wiki/OnTimeControlManual ''OntimeControl Manual''] to control Node/Root Beacons within slice in an ''automated'' manner.