Configuration of Cygnus

Configuration File Overview

Cygnus is configured via a configuration file typically located at /etc/cygnus/conf/agent.conf. This file defines the agent, sources, channels, and sinks, much like Apache Flume.

  • Sources: Define where Cygnus gets the data (e.g., from Orion Context Broker).

  • Channels: Temporary storage for events that pass between sources and sinks.

  • Sinks: Define where Cygnus sends the data (e.g., MySQL, HDFS, MongoDB, etc.).

Key Parameters:

  • cygnusagent.sources.http-source.port: This is the port on which Cygnus listens for incoming notifications from the Orion Context Broker. Typically, Cygnus listens on port 5050, but this can be changed.

  • mysql_host, mysql_port, mysql_username, mysql_password: These parameters define how Cygnus connects to the MySQL database.