Giter VIP home page Giter VIP logo

uwobs's Introduction

uwobs

Underwater Observatory System

This public repository contains documentation, code and system configuration for the data collection and processing system at spiddal.marine.ie.

The target audience is uwobs system adminstrators. Controlled Restart procedures can be found here

Adding a new collector procedures can be found here

Switching to/from Maintenance Mode

To turn the public website to maintenance mode use the rundeck job or the steps below:

ssh [email protected] #dockerub
cd ~/sites/spiddal.marine.ie/html
ln -s -f index-maintenance.html index.html

To turn the public website to live mode use the rundeck job or the steps below:

ssh [email protected] #dockerub
cd ~/sites/spiddal.marine.ie/html
ln -s -f index-live.html index.html

Server Configurations

This uwobs documentation is maintained on each of the servers, with a script provided to backup or restore configurations. (note proxy server is different on spiddal hosts)

cd ~/dev/uwobs
https_proxy=10.0.5.55:80 git pull

To add/remove configuration files to be use add it to files.txt and use backup_config.sh. Be careful not to commit any secrets to public git archive.

vi servers/$(hostname)/files.txt

To backup some the configuration to git:

cd ~/dev/uwobs
https_proxy=10.0.5.55:80 git pull
bin/backup_config.sh
git commit -a -m 'latest configuration'
https_proxy=10.0.5.55:80 git push

To restore some configuration file from git use install_file.sh. For example, to recover haproxy configuration:

sudo bin/install_file.sh /etc/haproxy/haproxy.cfg
sudo service haproxy reload

Shared Configurations

haproxy configuration is shared across cluster01-05. The following steps can be used to change the configuration on cluster01 and copy it to the other nodes.

sudo vi /etc/haproxy/haproxy.cfg
sudo service haproxy reload
bin/backup_config.sh
for server in 02 03 04 05; do cp servers/cluster01/files/etc/haproxy/haproxy.cfg servers/cluster${server}/files/etc/haproxy/haproxy.cfg; done
git commit -a -m 'latest configuration'
https_proxy=10.0.5.55:80 git push
for item in 2 3 4 5 ; do ssh -t cluster0$item "cd dev/uwobs && https_proxy=10.0.5.55:80 git pull && sudo bin/install_file.sh /etc/haproxy/haproxy.cfg && sudo service haproxy reload" ; done

General Overview

The system runs across two data centers, the shore station in Spiddal and the main data center in Oranmore, having network connectivity between the zones.

Instruments are connected to the shore station in Spiddal where we have 4 uwobs primary servers:

Servers in Spiddal

Servers in Oranmore:

Other servers also in Spiddal

There are a number of other servers in Spiddal, see spreadsheet from Damian for full list. The following are referenced in these documents:

  • Asus2 Laptop 172.16.255.16
  • NMS Server 172.16.255.15
  • Hypervisor gco1 172.16.255.230

Other servers also in Oranmore:

  • Hypervisor dmzdmvhost 172.17.1.84

Other servers:

  • spidvid.cloudapp.net nginx video caching vm in azure.

uwobs's People

Contributors

fullergalway avatar paulgaughan avatar dsmythmi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.