This is an old revision of the document!


Qc2-OPE-RUN

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.

STEP 1: Update kv_ctl.conf

on dev-vm116 the relevant file is located: /metno/kvalobs/etc/kvalobs/kv_ctl.conf and shall be edited to include kvQc2:

#START_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvAgregated"
START_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvAgregated kvQc2"

#STOP_PROGS="kvQabased kvManagerd kvDataInputd kvServiced kvAgregated"
STOP_PROGS="kvServiced kvDataInputd kvQabased kvManagerd kvAgregated kvQc2"

TIMEOUT=61
KVUSER=kvalobs

STEP 2: Remember that we are currently working with a local installation. The html log files for kvQabased are written to: /metno/kvalobs/var/kvalobs/log/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.

#! /bin/sh

QABASELOGDIR=/metno/kvalobs/var/kvalobs/log/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

Then run the corresponding standard cron jobs as described:

https://dokit.met.no/sysdok/kvalobs/installasjon#cron-jobber

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • kvalobs/kvoss/system/qc2/test/acceptance/qc2operun.1269297075.txt.gz
  • Last modified: 2022-05-31 09:23:19
  • (external edit)