131 | | Next, login using SSH to each of the servers, copy the appropriate tar files over, untar them, and run the following commands to setup the measurement instance environment: |
132 | | |
133 | | '''Centralized Case:''' |
134 | | |
135 | | ''On the Root Beacon Server:'' |
136 | | |
137 | | Software installation: |
| 126 | Next, login using SSH to each of the servers, copy the appropriate tar files over, and run the following commands to setup the measurement instance environment: |
| 127 | |
| 128 | '''Centralized/Distributed Case:''' |
| 129 | |
| 130 | __'''''On the Root Beacon Server:'''''__ |
| 131 | |
| 132 | __Software installation__ |
152 | | $ sudo perl -MCPAN -e shell |
153 | | cpan[1]> o conf urllist push ftp://cpan.uchicago.edu/pub/CPAN/ |
154 | | cpan[1]> o conf prerequisites_policy follow |
155 | | cpan[1]> o conf commit |
156 | | cpan[1]> exit |
157 | | $ chmod +x ontime_perlmodule_install.sh |
158 | | $ ./ontime_perlmodule_install.sh |
159 | | }}} |
160 | | |
161 | | MySQL Initialization |
162 | | |
163 | | {{{ |
164 | | $ mysqladmin -u root password 'new-password' |
165 | | }}} |
166 | | |
167 | | Graphite and Twisted Installation |
168 | | |
169 | | {{{ |
170 | | cd RootBeacon/InstallScript |
| 147 | sudo perl -MCPAN -e shell |
| 148 | cpan> o conf urllist push ftp://cpan.uchicago.edu/pub/CPAN/ |
| 149 | cpan> o conf prerequisites_policy follow |
| 150 | cpan> o conf commit |
| 151 | cpan> exit |
| 152 | chmod +x ontime_perlmodule_install.sh |
| 153 | ./ontime_perlmodule_install.sh |
| 154 | }}} |
| 155 | |
| 156 | __MySQL Initialization__ |
| 157 | |
| 158 | {{{ |
| 159 | mysqladmin -u root password '<new-password>' |
| 160 | }}} |
| 161 | |
| 162 | __Graphite and Twisted Installation__ |
| 163 | |
| 164 | {{{ |
192 | | $ sudo perl -MCPAN -e shell |
193 | | cpan[1]> o conf urllist push ftp://cpan.uchicago.edu/pub/CPAN/ |
194 | | cpan[1]> o conf prerequisites_policy follow |
195 | | cpan[1]> o conf commit |
196 | | cpan[1]> exit |
197 | | $ chmod +x ontime_perlmodule_install.sh |
198 | | $ ./ontime_perlmodule_install.sh |
199 | | }}} |
200 | | |
201 | | '''Distributed Case:''' |
202 | | |
203 | | ''On a Node Beacon Server:'' |
204 | | |
205 | | Software installation: |
206 | | {{{ |
207 | | tar xzf Distributed.tar.gz |
208 | | cd Distributed/InstallScript |
209 | | chmod +x ontime_software_install.sh |
210 | | ./ontime_software_install.sh |
211 | | }}} |
212 | | |
213 | | Perl CPAN Module Installation [[BR]] |
214 | | |
215 | | The Comprehensive Perl Archive Network (CPAN) tools is used to install the Perl modules listed in the System Requirement section and is installed by the ontime_software_install.sh script. |
216 | | |
217 | | '''Note:''' The CPAN configuration must point to Internet2 Perl CPAN repository |
218 | | |
219 | | {{{ |
220 | | $ sudo perl -MCPAN -e shell |
221 | | cpan[1]> o conf urllist push ftp://cpan.uchicago.edu/pub/CPAN/ |
222 | | cpan[1]> o conf prerequisites_policy follow |
223 | | cpan[1]> o conf commit |
224 | | cpan[1]> exit |
225 | | $ chmod +x ontime_perlmodule_install.sh |
226 | | $ ./ontime_perlmodule_install.sh |
| 186 | sudo perl -MCPAN -e shell |
| 187 | cpan> o conf urllist push ftp://cpan.uchicago.edu/pub/CPAN/ |
| 188 | cpan> o conf prerequisites_policy follow |
| 189 | cpan> o conf commit |
| 190 | cpan> exit |
| 191 | chmod +x ontime_perlmodule_install.sh |
| 192 | ./ontime_perlmodule_install.sh |
267 | | nohup /opt/graphite/bin/run-graphite-devel-server.py /opt/graphite & |
268 | | }}} |
269 | | |
270 | | SCP configuration |
271 | | |
272 | | {{{ |
273 | | ssh-keygen -t rsa |
274 | | cat .ssh/id_rsa.pub | ssh uploader@ontime.oar.net "cat >> .ssh/authorized_keys" |
275 | | }}} |
276 | | Use the default settings and the password for user uploader is 'uploader' |
277 | | |
278 | | ''On a Node Beacon Server:'' |
279 | | |
280 | | SCP configuration |
281 | | |
282 | | {{{ |
283 | | ssh-keygen -t rsa |
284 | | cat .ssh/id_rsa.pub | ssh uploader@ontime.oar.net "cat >> .ssh/authorized_keys" |
285 | | }}} |
286 | | Use the default settings and the password for user uploader is 'uploader' |
| 236 | sudo chmod -R 777 /opt/graphite/storage |
| 237 | /opt/graphite/bin/run-graphite-devel-server.py /opt/graphite |
| 238 | }}} |
| 239 | |
| 240 | Then open <root_beacon_ip_address>:8080 in browser. If no error is reported, press '<CTRL>+a, d' sequence in the SSH window to keep the service running in the background. |
| 241 | |
| 242 | __Root Beacon invocation options configuration__ |
| 243 | |
| 244 | {{{ |
| 245 | cd RootBeacon/InstallScript |
| 246 | perl config_wizard.pl |
| 247 | }}} |
| 248 | Follow the steps as directed by the wizard script. |
| 249 | |
| 250 | __'''''On a Node Beacon Server:'''''__ |
| 251 | |
| 252 | __Node Beacon invocation options configuration__ |
| 253 | |
| 254 | {{{ |
| 255 | cd NodeBeacon/InstallScript |
| 256 | perl config_wizard.pl |
| 257 | }}} |
| 258 | Follow the steps as directed by the wizard script. |
344 | | ''On the Root Beacon Server:'' |
345 | | |
346 | | Edit !RootBeacon/etc/root.conf and measurement.conf as guided by in-file comments, and then go to "Collector/" and run |
347 | | {{{ |
348 | | nohup perl collector.pl & |
349 | | }}} |
350 | | Next, go to "!RootScheduler/" |
351 | | {{{ |
352 | | nohup perl action_script.pl & |
353 | | }}} |
354 | | |
355 | | ''On a Node Beacon Server:'' |
356 | | |
357 | | Edit !NodeBeacon/etc/node.conf and runtool.conf as guided by in-file comments, and then go to 'Datagen/certs' run |
| 318 | __'''''On the Root Beacon Server:'''''__ |
| 319 | |
| 320 | Go to "Collector/" and run |
| 321 | {{{ |
| 322 | chmod +x ../AnalysisScripts/Plateau/plateau.exe |
| 323 | chmod +x ../AnalysisScripts/Forecast/forecaster/add_forecast |
| 324 | screen |
| 325 | perl collector.pl |
| 326 | }}} |
| 327 | If no error is reported, press '<CTRL>+a, c' sequence to open a new blank command window. |
| 328 | Then, go to "../!RootScheduler/" |
| 329 | {{{ |
| 330 | perl file_server.pl |
| 331 | }}} |
| 332 | If no error is reported, press '<CTRL>+a, c' sequence to open a new blank command window. |
| 333 | {{{ |
| 334 | perl action_script.pl |
| 335 | }}} |
| 336 | If no error is reported, press '<CTRL>+a, d' sequence in the SSH window to keep the service running in the background. |
| 337 | |
| 338 | __'''''On a Node Beacon Server:'''''__ |
| 339 | |
| 340 | Go to 'Datagen/certs' run |
369 | | ''On a Node Beacon Server:'' |
370 | | |
371 | | Edit Distributed/etc/node.conf as guided by in-file comments, and then go to Distributed/Datagen/ and run |
372 | | {{{ |
373 | | nohup perl node_scheduler.pl & |
374 | | }}} |
| 357 | __'''''On a Node Beacon Server:'''''__ |
| 358 | |
| 359 | Go to 'Datagen/' and run |
| 360 | {{{ |
| 361 | screen |
| 362 | perl file_server.pl |
| 363 | }}} |
| 364 | If no error is reported, press '<CTRL>+a, c' sequence to open a new blank command window. |
| 365 | |
| 366 | '''Note:'''Centralize and distributed share the same file server script. If you run both centralized and distributed on the same machine, you only need to run the file_server.pl once. |
| 367 | {{{ |
| 368 | perl dist_scheduler.pl |
| 369 | }}} |
| 370 | If no error is reported, press '<CTRL>+a, d' sequence in the SSH window to keep the service running in the background. |