Dcs Scratch

Introduction

Setup

Repositories

Elements

Server - EPICS IOCs

lxhad... dreamp... etrax... rasperry pi odroid... (near future)
  ...dcs05   ...05   ...204   rpc-gas-dcs   ...1
  ...dcs06   ...06   ...207   gas-scale-dcs   ...4
  ...dcs10   ...09   ...221       ...5
  ...dcs11       ...222       ...6
  ...dcs12       ...230       ...7
  ...dcs13       ...231       ...8
  ...eb06       ...236        
  ...eb07   (...04)   ...237        
          ...239        

Devices

connected to LAN
LV
TDK-Lambda
hadps...
  ...003
  ...005
  ...008
  ...009
  ...010
  ...013
  ...014
  ...015
  ...016
  ...018
  ...019
  ...020
  ...022
  ...023
  ...024
  ...025
  ...026
  ...029
  ...031
  ...032
  ...033

HV
CAEN
hadhvp... Type
...01 1527
...02 1527
...03 1527
...04 1527
...05 1527
...06 1527
...07 1527
...08 1527
...13 1527 MDC: Detector Lab
...14 4527
...15 4527
...16 4527
...17 4527

ISEG

richhvcrate CC24

Services

    Archiver - CSS / phoenix based

    • at lxhaddcs10 and lxhadeb06
    • "Beauty" - Best ever archiver utility
      • headless css-applications
        • engine
        • setup
      • database, RDB

      postgres data base
      • storage for configuration for the engine
      • storage for archived values
      • Repository:
      • Host: lxhaddcs10
        • container based
          • postgres container + addon, by Phillip Klaus, might be better to just use postgres and use PANDA and STS-DCS Ansatz
          • podman
        • local storage RAID 1 of up to 15 TB
        • since podman run as normal user "epics"
        • crontab's @restart is used to start
          • call to db/postgresql/setup_and_start.postgres_database.sh
          • install/deinstall on crontab
            • crontab.install.sh, crontab.uninstall.sh
        • installed using db/postgresql/setup_and_start.postgres_database.sh

      • steps for migration/installation/duplication (on)to another host
        • requires
          • podman (or docker) installation
        1. make sure you have enough data disk space "dataDir"
          • whole HADES set needs about 1 GB/day
        2. data
          1. w/o history, nothing todo
          2. w/ history
            • copy complete content of the previous "dataDir" to your new "dataDir"
        3. install
          • > db/postgresql/setup_and_start.postgres_database.sh -D <dataDir>
            • Note: only if <dataDir> is empty, a new database is setup, an existing directory will not be overwritten, even if a previous install failed
          • crontab
            • > db/postgresql/crontab.install.sh
      partitioning
      • crontab
        • crontab entry on localhost
          @weekly psql -a -h localhost -p 5432 -U archive -d archive -c "SELECT archive.sample_update_partitions('2018-01-01'::timestamp, 'archive', 'archive', 'week');"
        • crontab entry on any machine in reach of lxhaddcs10
          @weekly psql -a -h lxhaddcs10 -p 5432 -U archive -d archive -c "SELECT archive.sample_update_partitions('2018-01-01'::timestamp, 'archive', 'archive', 'week');"

      Engine and Configuration


-- PeterZumbruch - 2020-11-18
-- PeterZumbruch - 2020-11-18
Topic revision: r7 - 2020-11-18, PeterZumbruch
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki Send feedback | Imprint | Privacy Policy (in German)