Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
kvalobs:kvoss:system:qc2:test:acceptance:qc2operun [2010-03-22 22:19:50]
paule created
kvalobs:kvoss:system:qc2:test:acceptance:qc2operun [2022-05-31 09:29:32] (current)
Line 1: Line 1:
-====== Qc2-OPE-RUN ======+====== Qc2-OPE-RUN ======((NB Change in paths /var/kvalobs -> /var/lib/kvalobs and /var/kvalobs/log -> /var/log/kvalobs now included below, see https://svn.met.no/viewvc/kvoss/kvalobs/trunk/src/kvQabased/InitLogger.cc?view=log ))
  
-Ok! Kvalobs Qc1 and Qc2 is built in the test environment. There are still some integration issues that are unresolved and the standard kvalobs environement is not yet Qc2 aware.+ 
 + 
 + 
 +Ok! Kvalobs Qc1 and Qc2 is built in the test environment. Qc2 is now integrated with the Qc1 environment by editing kv_ctl.conf
  
 **STEP 1:** Update kv_ctl.conf **STEP 1:** Update kv_ctl.conf
Line 10: Line 13:
 <code> <code>
 #START_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvAgregated" #START_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvAgregated"
-START_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvAgregated kvQc2"+START_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvQc2"
  
 #STOP_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvAgregated" #STOP_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvAgregated"
-STOP_PROGS="kvServiced kvDataInputd kvQabased kvManagerd kvAgregated kvQc2"+STOP_PROGS="kvServiced kvDataInputd kvQabased kvManagerd kvQc2"
  
-TIMEOUT=61+TIMEOUT=70
 KVUSER=kvalobs KVUSER=kvalobs
 </code> </code>
 +
 +Note the local kvalobs.conf (/metno/kvalobs/etc/kvalobs/kvalobs.conf)
 +contains:
 +
 +<code>
 +corba{
 +  #Where is CORBA nameserver
 +  #nameserver="corbans.oslo.dnmi.no"
 +  nameserver="corbans.met.no"
 +
 +  #Which path in CORBA nameserver shall we use for
 +  #this instance of kvalobs
 +  path="kv_dev-vm116"
 +}
 +</code>
 +
 +Illustrating a dedicated registration in the CORBA nameserver for the virtual machine kvalobs instance.
 +
 +**STEP 2:** Remember that we are currently working with a local installation. The html log files for kvQabased are written to:
 +/metno/kvalobs/var/log/kvalobs/html
 +
 +The script called by the default cron job does not know this and needs to be modified by editing /usr/lib/kvalobs/bin/qabase_cron.sh and making it point to the correct log/html directory. 
 +
 +<code>
 +#! /bin/sh
 +
 +QABASELOGDIR=/metno/kvalobs/var/log/kvalobs/html
 +##QABASELOGDIR=$(kvconfig --localstatedir)/kvalobs/log/html
 +
 +#find $QABASELOGDIR -name '*.html' -type f -mtime +0 -exec rm -f {} \;
 +find $QABASELOGDIR -xdev -name '*.html' -type f -mmin +360 -exec rm -f {} \;
 +#find $QABASELOGDIR -name '*.html' -type f  -exec rm -f {} \;
 +find $QABASELOGDIR -xdev -type d -cmin +120 -exec rmdir --ignore-fail-on-non-empty {} \;
 +
 +# create nice map of existing log-files (output: html)
 +####find $QABASELOGDIR -name '*.html' -type f | /metno/kvalobs/bin/log_map > $QABASELOGDIR/log_map.html
 +</code>
 +
 +Then run the corresponding standard cron jobs as described:
 +
 +https://dokit.met.no/sysdok/kvalobs/installasjon#cron-jobber
 +
 +Clean-up of the html log files is necessary to manage disk space.
 +
 +**STEP 3** Now run kvalobs as user kvalobs with kvQc2:
 +
 +<del>kvQc2 requires one additional environment variable to be set:</del>
 +
 +<del><code></del>
 +<del>$ export KVALOBS=/metno/kvalobs</del>
 +<del></code></del>
 +
 +
 +**NOTE:** The $KVALOBS historic configuration variable is no longer needed.
 +
 +<code>
 +$ cd $HOME
 +$ bin/kvstart
 +</code>
 +
 +The following result is expected:
 +
 +<code>
 +KVBIN=/metno/kvalobs/bin
 +KVPID=/metno/kvalobs/var/kvalobs/run
 +TIMEOUT=70
 + 
 + 
 +  Starter kvalobs dette kan ta noe tid!
 +  Hvis det ikke skjer noe på MER enn 70 sekund
 +  bruk CTRL-C for å avbryte!
 + 
 + 
 +Starter kvQabased ....Ok!
 +Starter kvManagerd ....Ok!
 +Starter kvDataInputd ....Ok!
 +Starter kvServiced ....Ok!
 +Starter kvQc2 ....Ok!
 +</code>
 +
 +
 +**STEP 4** ... and to stop:
 +
 +<code>
 +$ cd
 +$ bin/kvstop
 +</code>
 +
 +The following result is expected:
 +<code>
 +listopt: 0
 +killallopt: 0
 +KVPID=/metno/kvalobs/var/kvalobs/run
 +TIMEOUT=70
 +node: dev-vm116
 + 
 + 
 +  Stopper kvalobs dette kan ta noe tid!
 +  Hvis det ikke skjer noe på MER enn 70 sekund
 +  bruk CTRL-C for å avbryte!
 + 
 + 
 +kvServiced .....Stopped!
 +kvDataInputd .....Stopped!
 +kvQabased .....Stopped!
 +kvManagerd .....Stopped!
 +kvQc2 .....Stopped!
 +</code>
 +
 +**NB** The timeout has been set to 70s since kvQc2 checks for new configuration files every minute and the rest of the time either sleeps or processes a given set of instructions.
 +
 +
 +
  • kvalobs/kvoss/system/qc2/test/acceptance/qc2operun.1269296390.txt.gz
  • Last modified: 2022-05-31 09:23:19
  • (external edit)