IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 2 and Version 3 of PS1_IPP_Czarlog_20190304


Ignore:
Timestamp:
Mar 4, 2019, 6:15:07 PM (7 years ago)
Author:
fairlamb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PS1_IPP_Czarlog_20190304

    v2 v3  
    66=== Monday : 2019.03.04 ===
    77
    8 JRF: ippb21 was unreachable this morning. This is after one of the SSDs had been replaced by Haydn. Rebooted it twice, seems to be behaving after the second reboot.
     8JRF (morning): ippb21 was unreachable this morning. This is after one of the SSDs had been replaced by Haydn. Rebooted it twice, seems to be behaving after the second reboot.
    99
    10 ippb22 has also started reported similar problems. So we, JRF & EAM, have asked Haydn to have a look or think about what else might be a problem on those machines.
     10JRF (morning): ippb22 has also started reported similar problems. So we, JRF & EAM, have asked Haydn to have a look or think about what else might be a problem on those machines.
     11(update) - Both b21 and b22 have now have disks replaced and been rebooted. They are behaving well at the moment so they have been set to repair in nebulous so that they get used.
     12
     13
     14'''Czar training:'''
     15
     16Today we are changing the configuration of PS1 stdscience so that the warp stage will be targeting specific machine and
     17
     18The file that contains the config for which machines are targeted for which stage is:
     19{{{
     20ipphosts.mhpcc.config
     21}}}
     22
     23Located in the src directory directory:
     24{{{
     25~ippitc/src/ipp-20170121/ippTasks
     26}}}
     27
     28Best practice is to create a backup of the current version, and another to modify and eventually replace the current one with.
     29
     30
     31At the moment ipp123-126 should now be targeted for any warp processing. Warps use the skycells, so this is the meta data we should change. We are mapping these skycells to these 16 specified machines. The remaining skycells will repeated with pattern. The new entry:
     32{{{
     33ipphosts METADATA
     34  camera STR skycell
     35  count S32 16
     36  sky00 STR  ipp123.0
     37  sky01 STR  ipp124.0
     38  sky02 STR  ipp125.0
     39  sky03 STR  ipp126.0
     40  sky04 STR  ipp123.1
     41  sky05 STR  ipp124.1
     42  sky06 STR  ipp125.1
     43  sky07 STR  ipp126.1
     44  sky08 STR  ipp123.0
     45  sky09 STR  ipp124.0
     46  sky10 STR  ipp125.0
     47  sky11 STR  ipp126.0
     48  sky12 STR  ipp123.1
     49  sky13 STR  ipp124.1
     50  sky14 STR  ipp125.1
     51  sky15 STR  ipp126.1
     52END
     53}}}
     54
     55Note that there is a similar setup for the current mops tasks:
     56{{{
     57~ippmops/psconfig/ipp-20170121.lin64/share/pantasks/modules
     58}}}
     59
     60
     61Now that we have changed the source we would normally have to rebuild...however this is dangerous as it will incorporate any changes that have been checked in (the in production could should not really be modified, or at least this config should be separate...but these are separate issues). We can skip all that by just putting it into the production code:
     62{{{
     63~ippitc/psconfig/ipp-20170121.lin64/share/pantasks/modules
     64}}}
     65To incorporate the changes in stdscience pantasks we need to restart it.
     66
     67
     68'''Manually restarting a pantasks with a new label added to config (and also how not to):'''
     69
     70On purpose, we have gone to the machine where ps1 pantasks stdscience is running and started the server (to know where it is running check the {{{ippitc/stdscience/ptolemy.rc}}}):
     71{{{
     72start_server.sh stdscience
     73}}}
     74
     75This means there are two pantasks servers running now, which is not a great state to be in. You can confirm by checking the process list
     76{{{
     77ps -ef | pantasks_server
     78}}}
     79If there are two entries listed -> you have two servers running.
     80
     81The issue with this is that when running pantasks_client you might end up connecting to either one of the servers, and if you are in the more recently created one then 'status' might not work and you can't see jobs that could be running on the other one. The best way to get out of this situation is to shut them both down:
     82{{{
     83$> pantasks_client
     84pantasks: stop
     85pantasks: shutdown
     86}}}
     87Between the stop and shutdown check that the jobs have finished, if any, by querying the 'status' or 'controller status'
     88
     89
     90
     91For the second part of this task we want a label to be added automatically each time pantasks stdscience starts up. To do this add the following line to the 'input' file in the stdscience directory:
     92{{{
     93add.label update.OSS
     94}}}
     95
     96To restart the pantasks_server, do what we did before:
     97{{{
     98start_server.sh stdscience
     99}}}
     100
     101Then to load the config and start it running, do the following in pantasks:
     102{{{
     103pantasks: server input input
     104pantasks: setup
     105pantasks: run
     106}}}
     107The first loads the modified config, the second activates all the tasks with the loaded config, then run actually starts the server running.
     108
     109This new label currently has the highest priority, as it defaults to highest if there is no entry... this is not what we want. To add the label to the list of labels, and set the priority, use the label tool!
     110To check if it is present first:
     111{{{
     112labeltool -dbname gpc1 -listlabel -simple | grep update
     113}}}
     114
     115Add label and set priority:
     116{{{
     117labeltool -dbname gpc1 -definelabel -set_label update.OSS -set_priority 300
     118}}}
     119In this case we want it to be a lower priority than MOPS.2 which was 310, so we chose 300.
     120
     121Give it a few minutes and ippmonitor should reflect these changes by showing it in the correct place.
     122
     123
     124'''Other Things:'''
     125
     126Some weird spikes in loads going off at 16:30...not sure why.
     127
    11128 
    12129=== Tuesday : 2019.03.05 ===
     130
     131
    13132
    14133=== Wednesday : 2019.03.06 ===