Changes between Version 3 and Version 4 of drmsSubscribe


Ignore:
Timestamp:
02/17/15 12:14:20 (9 years ago)
Author:
niles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • drmsSubscribe

    v3 v4  
    6868}}} 
    6969 
     70=== Subscription at your site === 
     71 
     72At your site will be a file named {{{ subscribe_series }}} - it will be in the same directory as the {{{ get_slony_logs.pl }}} script (at NSO it is in /datarea/production/subscribe_series). 
     73 
     74To subscribe to a series you need to edit the config file - etc/subscribe_list.cfg at NSO - and then run it like so : 
     75 
     76{{{ 
     77./subscribe_series ./etc/repclient.live.cfg ./etc/subscribe_list.cfg ~/.ssh-agent_rs.sh 
     78}}} 
     79 
     80The format of etc/subscribe_list.cfg is : 
     81 
     82{{{ 
     83hmi.rdvflows_fd30_frame subscribe 
     84hmi.rdvflows_fd15_frame subscribe 
     85hmi.fsvbinned_nrt subscribe 
     86hmi.rdVfitsc_fd05 subscribe 
     87hmi.rdVfitsc_fd15 subscribe 
     88hmi.rdVfitsc_fd30 subscribe 
     89hmi.rdVfitsf_fd05 subscribe 
     90hmi.rdVfitsf_fd15 subscribe 
     91hmi.rdVfitsf_fd30 subscribe 
     92}}} 
     93 
     94And at NSO the complete listing of ./etc/repclient.live.cfg is : 
     95 
     96{{{ 
     97# This template file contains configurable parameters used by replication client code. The client 
     98# code includes subscribe_series, run_get_slony_logs.sh, and get_slony_logs.pl. 
     99# 
     100# Each NetDRMS site using the replication code should copy this file to a writeable location 
     101# and edit it as appropriate. Each of the client-side replication scripts sources this configuration  
     102# file to set environment variables needed by that script. 
     103 
     104####################################################### 
     105# client-side-wide configurable parameters 
     106####################################################### 
     107 
     108node=nso2 
     109 
     110# Client-server communication 
     111kRSServer=solarport.stanford.edu 
     112kRSTriggerDir=/data/pgsql/slon_logs/live/triggers 
     113kRSUser=jsocexp 
     114kRSPort=55000 
     115ingestion_path=/home/production/subscribe_series/trigger 
     116 
     117# Client database information 
     118pg_host=vso2.tuc.noao.edu 
     119pg_port=5432 
     120pg_user=slony 
     121pg_dbname=nso_drms 
     122slony_cluster=jsoc 
     123 
     124 
     125####################################################### 
     126# subscribe_series configurable parameters 
     127####################################################### 
     128 
     129# file paths 
     130kLocalLogDir=/home/production/subscribe_series/log 
     131kLocalWorkingDir=/home/production/subscribe_series/work 
     132kSQLIngestionProgram=/home/production/subscribe_series/bin/get_slony_logs.pl 
     133kDeleteSeriesProgram=/opt/drms/bin/linux_x86_64/delete_series 
     134 
     135attempts=2000 
     136 
     137# XXX This is not correct - archive, retention, and tapegroup should be per-series, not global. 
     138archive=0 
     139retention=21 
     140tapegroup=1 
     141 
     142 
     143####################################################### 
     144# get_slony_logs.pl configurable parameters 
     145####################################################### 
     146 
     147scp_cmd=/usr/bin/scp 
     148ssh_cmd=/usr/bin/ssh 
     149rmt_slony_dir=/data/pgsql/slon_logs/live/site_logs 
     150slony_logs=/home/production/subscribe_series/slon_logs 
     151PSQL=/export/vso2.0/usr/bin/psql 
     152email_list=igor@noao.edu 
     153 
     154}}} 
     155