| | 382 | ''' Making another apache server for nebulous''' by JRF |
| | 383 | |
| | 384 | We want to add ippc76 as a nebulous apache server |
| | 385 | |
| | 386 | Check out: |
| | 387 | {{{ |
| | 388 | /etc/apache2/httpd.conf |
| | 389 | /etc/apache2/modules.d/apache2-mod_perl-startup.pl |
| | 390 | /etc/apache2/modules.d/00_mpm.conf |
| | 391 | }}} |
| | 392 | They contain information on the configuration of the nebulous apache server. Have a look at the current servers to see how they are setup |
| | 393 | |
| | 394 | There is a config for the nebulous servers: |
| | 395 | {{{ |
| | 396 | ~ippitc/ippconfig/nebservers.csh |
| | 397 | }}} |
| | 398 | This is referenced only by the .tcshrc file of ippitc - '''which is not tracked!''' |
| | 399 | In here we can set which nodes should be used for nebulous, so make a copy of the file and add the new server. |
| | 400 | {{{ |
| | 401 | set nebservers = ($nebservers http://ippc76/nebulous); |
| | 402 | }}} |
| | 403 | We will not do this step just yet. |
| | 404 | |
| | 405 | NOTE: That the total connections from the apache nodes should be less than the max connections allowed in the nebulous database, you can check this with: |
| | 406 | {{{ |
| | 407 | mysql -uXXXXXX -pXXXXXXX -h ippdb09 nebulous |
| | 408 | |
| | 409 | mysql> select @@max_connections; |
| | 410 | }}} |
| | 411 | At present the mas connections are 2048. If we are using ippc71-76, which have 256 connections each, then fortunately: 6*256 < 2048 |
| | 412 | |
| | 413 | Right, we need to make sure that ippc76 is actually ready to be used as a nebulous server: |
| | 414 | One of these steps it to make sure it has a nebulous log file that it can use, which should be located under /tmp/ : |
| | 415 | {{{ |
| | 416 | ls -l /tmp/ |
| | 417 | -rw-rw-r-- 1 apache nebulous 0 Apr 22 03:10 nebulous_server.log |
| | 418 | }}} |
| | 419 | It should belong to apache and be part of the nebulous group. |
| | 420 | |
| | 421 | We also need to have the apache server running! Check the status with: |
| | 422 | {{{ |
| | 423 | /etc/init/d/apache2 status |
| | 424 | }}} |
| | 425 | |
| | 426 | The apache server also needs to be pointing to the correct database (this is in the perl script). Once you're happy with all of the config, then go ahead and add: |
| | 427 | {{{ |
| | 428 | set nebservers = ($nebservers http://ippc76/nebulous); |
| | 429 | }}} |
| | 430 | to the nebservers.csh file |
| | 431 | |
| | 432 | After this the server started getting used, but the nebulous_server.log file disappeared. Simply restarting the apache server recreated it. However, if it does not you may need to touch the file (and make sure the permissions are correct). |
| | 433 | |
| | 434 | NEW PRBOLEMS! |
| | 435 | The log file is just not updating at all, even when we are using ippc76 to connect to the nebulous database (you can forcably change to use a specfic apache node by {{{set NEB_SERVER = http://ippc76}}}). |
| | 436 | Not sure what the problem is so we'll remove ippc76 from the nebservers list for the time being... |
| | 437 | |
| | 438 | |
| | 439 | ''' Tidying up labels ''' |
| | 440 | |
| | 441 | Under ~ippitc/stdscience/input are all the labels that are added when pantasks starts up. We've commented out some lesser used ones. |
| | 442 | |
| | 443 | |
| | 444 | To do: |
| | 445 | |
| | 446 | |
| | 447 | |