This document details how to install and administrate a cygnus-ngsi agent.
cygnus-ngsi is a connector in charge of persisting Orion context data in certain configured third-party storages, creating a historical view of such data. In other words, Orion only stores the last value regarding an entity's attribute, and if an older value is required then you will have to persist it in other storage, value by value, using cygnus-ngsi.
cygnus-ngsi uses the subscription/notification feature of Orion. A subscription is made in Orion on behalf of cygnus-ngsi, detailing which entities we want to be notified when an update occurs on any of those entities attributes.
Internally, cygnus-ngsi is based on Apache Flume, which is used through cygnus-common and which cygnus-ngsi depends on. In fact, cygnus-ngsi is a Flume agent, which is basically composed of a source in charge of receiving the data, a channel where the source puts the data once it has been transformed into a Flume event, and a sink, which takes Flume events from the channel in order to persist the data within its body into a third-party storage.
Current stable release is able to persist Orion context data in:
- HDFS, the Hadoop distributed file system.
- MySQL, the well-know relational database manager.
- CKAN, an Open Data platform.
- MongoDB, the NoSQL document-oriented database.
- STH Comet, a Short-Term Historic database built on top of MongoDB.
- Kafka, the publish-subscribe messaging broker.
- DynamoDB, a cloud-based NoSQL database by Amazon Web Services.
This document is mainly addressed to those FIWARE users already using an Orion Context Broker instance and willing to create historical views from the context data managed by Orion. In that case, you will need this document in order to learn how to install and administrate cygnus-ngsi.
If your aim is to create a new sink for cygnus-ngsi, or expand it in some way, please refer to the User and Programmer Guide.
Apart from this introduction, this Installation and Administration Guide mainly contains sections about installing, configuring, running and testing cygnus-ngsi. The FIWARE user will also find useful information regarding multitenancy or performance tips. In addition, sanity check procedures (useful to know wether the installation was successful or not) and diagnosis procedures (a set of tips aiming to help when an issue arises) are provided as well.
It is very important to note that, for those topics not covered by this documentation, the related section in cygnus-common applies. Specifically:
- Hardware requirements.
- Flume environment configuration.
- log4j configuration.
- Running as a process.
- Management interface.
- Logs and alarms.