Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
kvalobs:kvoss:system:qc2:user:run [2010-08-12 19:45:24] paule created |
kvalobs:kvoss:system:qc2:user:run [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Qc2-OPE-RUN | + | ====== |
+ | The QC2 daemon, kvqc2, may be turned on and off with **kvstart** and **kvstop**. All that is required is to add kvqc2 to the kv_ctl.conf file. If this is already achieved, just ignore the configuration section below. | ||
+ | ====== Configuration ====== | ||
+ | Update kv_ctl.conf | ||
- | Ok! Kvalobs Qc1 and Qc2 is built in the test environment. Qc2 is now integrated with the Qc1 environment by editing kv_ctl.conf | + | Standard location: / |
- | + | ||
- | **STEP 1:** Update kv_ctl.conf | + | |
- | + | ||
- | on dev-vm116 the relevant file is located: | + | |
- | / | + | |
< | < | ||
- | # | ||
START_PROGS=" | START_PROGS=" | ||
- | |||
- | # | ||
STOP_PROGS=" | STOP_PROGS=" | ||
+ | | ||
- | TIMEOUT=70 | + | TIMEOUT=60 |
KVUSER=kvalobs | KVUSER=kvalobs | ||
</ | </ | ||
- | Note the local kvalobs.conf (/ | + | ====== Start ====== |
- | contains: | + | |
< | < | ||
- | corba{ | + | $ kvstart |
- | #Where is CORBA nameserver | + | |
- | # | + | |
- | nameserver=" | + | |
- | + | ||
- | #Which path in CORBA nameserver shall we use for | + | |
- | #this instance of kvalobs | + | |
- | path=" | + | |
- | } | + | |
</ | </ | ||
- | Illustrating a dedicated registration in the CORBA nameserver for the virtual machine kvalobs instance. | + | The following result |
- | + | ||
- | **STEP 2:** Remember that we are currently working with a local installation. | + | |
- | / | + | |
- | + | ||
- | The script called by the default cron job does not know this and needs to be modified by editing / | + | |
- | + | ||
- | < | + | |
- | #! /bin/sh | + | |
- | + | ||
- | QABASELOGDIR=/ | + | |
- | ## | + | |
- | + | ||
- | #find $QABASELOGDIR -name ' | + | |
- | find $QABASELOGDIR -xdev -name ' | + | |
- | #find $QABASELOGDIR -name ' | + | |
- | 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 ' | + | |
- | </ | + | |
- | + | ||
- | Then run the corresponding standard cron jobs as described: | + | |
- | + | ||
- | https:// | + | |
- | + | ||
- | Clean-up of the html log files is necessary to manage disk space. | + | |
- | + | ||
- | **STEP 3** Now run kvalobs as user kvalobs with kvQc2: | + | |
- | + | ||
- | < | + | |
- | + | ||
- | < | + | |
- | < | + | |
- | < | + | |
- | + | ||
- | + | ||
- | **NOTE:** The $KVALOBS historic configuration variable is no longer needed. | + | |
- | + | ||
- | < | + | |
- | $ cd $HOME | + | |
- | $ bin/ | + | |
- | </ | + | |
- | + | ||
- | The following result | + | |
< | < | ||
KVBIN=/ | KVBIN=/ | ||
KVPID=/ | KVPID=/ | ||
- | TIMEOUT=70 | + | TIMEOUT=60 |
Line 101: | Line 44: | ||
</ | </ | ||
+ | ====== Stop ====== | ||
- | **STEP 4** ... and to stop: | + | Stop the running kvqc2 process by ' |
- | < | + | For example: |
- | $ cd | + | |
- | $ bin/ | + | |
- | </ | + | |
- | The following result is expected: | ||
< | < | ||
- | listopt: | + | kvalobs@dev-vm101: |
+ | listopt: | ||
killallopt: 0 | killallopt: 0 | ||
- | KVPID=/metno/kvalobs/var/kvalobs/run | + | KVPID=/var/run/kvalobs |
- | TIMEOUT=70 | + | TIMEOUT=60 |
- | node: dev-vm116 | + | node: dev-vm101 |
- | + | ||
- | + | ||
- | | + | Velg et program å stoppe! |
- | | + | ------------------------- |
- | | + | |
- | + | | |
- | + | | |
- | kvServiced | + | |
- | kvDataInputd | + | |
- | kvQabased | + | |
- | kvManagerd | + | 7: kvAgregated |
- | kvQc2 .....Stopped! | + | 8: kvbufrd |
+ | 9: kvsynopd | ||
+ | q: quit | ||
+ | ------------------------- | ||
+ | Stop programmet [1-9]: 2 | ||
+ | |||
+ | kvqc2 .....Stopped! | ||
</ | </ | ||
- | **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. | + | Once kvqc2 is running the algorithms carried out are controlled by the configuration files in the Qc2Config directory. |
+ | The Qc2Config directory needs to be created by the kvalobs user if it does not exist. Standard location is "/ | ||