Giter Club home page Giter Club logo

tuber's Introduction

Tuber

Tuber transports WMO-bulletins between message systems. Currently WMO message switches, as described in WMO-No. 386, and Kafka is supported.

Each Tuber instance is responsible for forwarding messages from a single input source to a single output destination. This means that Tuber is not a traditional message switch, which generally has several destination endpoints and that makes a routing desicion for each message, but is more accurately described as a forwarder or an adapter.

Messages that are obviously invalid or that are duplicates are discarded. Tuber will do its best to reconnect if it the connection to an endpoint is lost.

Getting started

Installing on Ubuntu Xenial

optionally: bash run_tests.sh

Configuring

Tuber reads its setup from a configuration file (default: /etc/tuber.ini) in traditional 'ini-format'. Where each endpoint is described in a separate section.

A simple example is presented below.

[myInstance:input]
type=gts
bind=0.0.0.0:16000

[myInstance:output]
type=kafka
bootstrap_servers=1.2.3.4:9092,5.6.7.8:9092
topic=myTopic

Each Tuber instance is assigned an instance id from the command line when it is started and section names contains both a Tuber instance id (e.g. myInstance) and a direction (either input or output). This makes it possible to configure several Tuber instances using a single setup file.

The first section, [myInstance:input], specifies how the Tuber instance identified as myInstance will receive messages. Here it will listen on port 16000 on all local interfaces for a TCP connection from a WMO message switch.

The next section, [myInstance:output], tells Tuber where it should put the messages it receives. In this case it will connect to a Kafka cluster using one of the servers set in bootstrap_servers and publish to the topic myTopic.

The available configuration settings are described in one of the following sections.

Running

Start Tuber by running tuber myInstance. If the configuration file named something other than /etc/tuber.ini, you need specify its location like this tuber myInstance -c <filename>.

Any errors encountered during startup will be printed to STDERR and syslog. Tuber will then only log to syslog.

Configuration settings

For all connection types

  • type - Specifies connection type or protocol for this connection. Valid values: kafka, gts, console and null (Which does nothing and is only useful for debugging and testing).

For type=gts

  • bind - Address and port to listen on if this is an input endpoint.
  • connect - Address and port to connect to if this is an output endpoint.

For type=kafka

  • bootstrap_servers - Comma separated list of servers that can be connected to in order to retrieve metadata about the Kafka cluster.
  • topic - Topic to subscribe or publish to.
  • ssl_* - same meaning as for kafka-python
  • sasl_* - same meaning as for kafka-python
  • security_protocol - same meaning as for kafka-python

For type=console

This type does not take any parameters. Only output is supported

tuber's People

Contributors

cskarby avatar larsjsol avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.