IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 7 and Version 8 of PS1_IPP_Czarlog_20190426


Ignore:
Timestamp:
Apr 30, 2019, 12:37:33 PM (7 years ago)
Author:
fairlamb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PS1_IPP_Czarlog_20190426

    v7 v8  
    380380
    381381
     382''' Making another apache server for nebulous''' by JRF
     383
     384We want to add ippc76 as a nebulous apache server
     385
     386Check 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}}}
     392They contain information on the configuration of the nebulous apache server. Have a look at the current servers to see how they are setup
     393
     394There is a config for the nebulous servers:
     395{{{
     396  ~ippitc/ippconfig/nebservers.csh
     397}}}
     398This is referenced only by the .tcshrc file of ippitc  - '''which is not tracked!'''
     399In 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}}}
     403We will not do this step just yet.
     404
     405NOTE: 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}}}
     411At present the mas connections are 2048. If we are using ippc71-76, which have 256 connections each, then fortunately: 6*256 < 2048
     412
     413Right, we need to make sure that ippc76 is actually ready to be used as a nebulous server:
     414One 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}}}
     419It should belong to apache and be part of the nebulous group.
     420
     421We also need to have the apache server running! Check the status with:
     422{{{
     423  /etc/init/d/apache2 status
     424}}}
     425
     426The 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}}}
     430to the nebservers.csh file
     431
     432After 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
     434NEW PRBOLEMS!
     435The 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}}}).
     436Not 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
     441Under ~ippitc/stdscience/input are all the labels that are added when pantasks starts up. We've commented out some lesser used ones.
     442
     443
     444To do:
     445 
     446
     447
    382448TODO:
    383449 - once the PDU is done for ipp134-136:
    384450   -- check the console
    385    -- put them to up to allow updates to continue and check on them
     451   -- put them to up to allow updates to continue and check on them (but put to repair for nightly...maybe)
     452 - check that the commented out labels are gone after reset.
     453 - For remaining update problems:
     454    -- if they complain about missing cm (camera) files then they should be reprocessed.
     455    -- revert the stuck jobs once ipp134-139 are available again
    386456
    387457