Skip to content

Next generation baltrad exchange server

License

Unknown, LGPL-3.0 licenses found

Licenses found

Unknown
LICENSE
LGPL-3.0
COPYING.LESSER
Notifications You must be signed in to change notification settings

baltrad/baltrad-exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README
======

About
-----
Baltrad Exchange, working name baltrad-exchange, is part of the BALTRAD project providing functionality for exchanging ODIM-H5 files with
other nodes. The first version of the software that provided this is called baltrad-dex. This second generation engine will replace the
publisher/subscriber parts within baltrad-dex that was developed within the BALTRAD and BALTRAD+ projects.

The publication/subscription mechanisms has been improved with the possibility to use different protocols
for distributing files in various ways. Files can be identified by using metadata filters. Active polling mechanisms
has been added when files has to be fetched from remote servers. The exchange can be run without an external
database (instead a local sqlite database is used for source lookups) which makes installation and configuration easier.

The software is written in python and is using parts of the baltrad-db APIs. If the files should be stored within the
baltrad-db, that is possible as well and the metadata matched will be the one that baltrad-db has returned.

Setting up development
----------------------
This description is valid for RedHat 8 based distributions. Other distributions requires installation from source for both bdb and hlhdf.

First, you will need to get the baltrad package repository and the dependencies installed. As super user

.. code:: sh

   %> cd /etc/yum.repos.d/
   %> wget http://rpm.baltrad.eu/CentOS/8/latest/baltrad-package-latest.repo
   %> sudo dnf install python3-lockfile python3-pycryptodomex python3-numpy 
   %> sudo dnf install python3-paramiko python3-scp
   %> sudo dnf install baltrad-db*

Fetch the baltrad-exchange engine by downloading it from github as your ordinary user

.. code:: sh

   %> cd /projects
   %> git clone https://github.com/baltrad/baltrad-exchange.git
   %> cd baltrad-exchange

The easiest way to start developing in baltrad-exchange is to create a virtual environment that will be used for local installations and tests. 

.. code:: sh

   %> python3 -m venv --system-site-packages env
   %> . env/bin/activate

With the virtual environment created you can just install the baltrad-exchange software into your own environment by typing

.. code:: sh

  %> python3 setup.py install

Installation
------------
The installation of the software can either be done in a similar way to how the development environment is setup. You can either decide to
use a virtual environment for running the software or you can just install it without creating the virtual environment.

There is a third alternative as well and that is to use the prebuilt packages av available for the RH 8 distributions which is done by
running:

.. code:: sh

   %> sudo dnf install baltrad-exchange

Configuration
_____________

More information about installation and configuration can be found :ref:`here <userguide>`.

Running the server
----------------------

After the keys has been created and the baltrad-exchange.properties file has been updated. The fastest way to get going is to
run the server in foreground mode.

.. code:: sh

   %> baltrad-exchange-server --conf=./etc/baltrad-exchange.properties \
                       --pidfile=/tmp/be.pid --foreground





About

Next generation baltrad exchange server

Resources

License

Unknown, LGPL-3.0 licenses found

Licenses found

Unknown
LICENSE
LGPL-3.0
COPYING.LESSER

Stars

Watchers

Forks

Packages

No packages published