Sign inSign up

monasca/thresh

By monasca

•Updated about 4 years ago

Submits the monasca threshold engine topology to storm

Image
0

100K+

monasca/thresh repository overview

⁠monasca-thresh Dockerfile

This image has a containerized version of the Monasca Threshold Engine. For more information on the Monasca project, see the wiki⁠.

Sources: monasca-thresh⁠ · monasca-docker⁠ · Dockerfile⁠

⁠Tags

Images in this repository are tagged as follows:

  • latest: refers to the latest stable point release, e.g. 1.7.0
  • 1.0.0, 1.0, 1: standard semver tags based on git tags in the official repository⁠.
  • newton, ocata, etc: named versions following OpenStack release names built from the tip of stable/RELEASENAME branches in the repository
  • master, master-DATESTAMP: unstable testing builds from the master branch, these may have features or enhancements not available in stable releases, but are not production-ready.

Note that features in this Dockerfile, particularly relating to running in Docker and Kubernetes environments, require code that has not yet been made available in a tagged release. Until this changes, only master images may be available and latest may point to master images.

⁠Usage

The Threshold engine requires configured instances of MySQL, Kafka, Zookeeper, and optionally Storm monasca-api⁠. In environments resembling the official docker-compose⁠ or Kubernetes⁠ environments, this image requires little to no configuration and can be minimally run like so:

docker run monasca/thresh:latest

⁠Configuration

VariableDefaultDescription
MYSQL_DB_HOSTmysqlMySQL hostname
MYSQL_DB_PORT3306MySQL port
MYSQL_DB_USERNAMEthreshMySQL username
MYSQL_DB_PASSWORDpasswordMySQL password
MYSQL_DB_DATABASEmonMySQL database name
MYSQL_WAIT_RETRIES24# of tries to verify MySQL availability
MYSQL_WAIT_DELAY5# seconds between retry attempts
KAFKA_URIkafka:9092If true, disable remote root login
KAFKA_WAIT_FOR_TOPICSalarm-state-transitions,metrics,eventsComma-separated list of topic names to check
KAFKA_WAIT_RETRIES24# of tries to verify Kafka availability
KAFKA_WAIT_DELAY5# seconds between retry attempts
ZOOKEEPER_URLzookeeper:2181Zookeeper URL
NO_STORM_CLUSTERunsetIf true, run without Storm daemons
STORM_WAIT_RETRIES24# of tries to verify Storm availability
STORM_WAIT_DELAY5# seconds between retry attempts
WORKER_MAX_MBunsetIf set and NO_STORM_CLUSTER is true, use as MaxRam Size for JVM
METRIC_SPOUT_THREADS2Metric Spout threads
METRIC_SPOUT_TASKS2Metric Spout tasks
EVENT_SPOUT_THREADS2Event Spout Threads
EVENT_SPOUT_TASKS2Event Spout Tasks
EVENT_BOLT_THREADS2Event Bolt Threads
EVENT_BOLT_TASKS2Event Bolt Tasks
FILTERING_BOLT_THREADS2Filtering Bolt Threads
FILTERING_BOLT_TASKS2Filtering Bolt Tasks
ALARM_CREATION_BOLT_THREADS2Alarm Creation Bolt Threads
ALARM_CREATION_BOLT_TASKS2Alarm Creation Bolt Tasks
AGGREGATION_BOLT_THREADS2Aggregation Bolt Threads
AGGREGATION_BOLT_TASKS2Aggregation Bolt Tasks
THRESHOLDING_BOLT_THREADS2Thresholding Bolt Threads
THRESHOLDING_BOLT_TASKS2Thresholding Bolt Tasks
THRESH_STACK_SIZE1024kJVM stack size

⁠Running with and without Storm

The Threshold Engine can be run in two different modes, with Storm Daemons or without Storm Daemons. If run with the Storm Daemons, multiple Storm Supervisor containers can be used with more than one worker process in each. With no Storm Daemons, only a single Threshold Engine container can be run with a single worker process.

The default docker-compose.yml file is configured to run without Storm. To change docker-compose.yml to run with Storm, delete the thresh service entry and replace it with the below:

  storm-nimbus:
    image: monasca/storm:1.0.3
    command: storm nimbus
    environment:
      STORM_LOCAL_HOSTNAME: "storm-nimbus"
      WORKER_LOGS_TO_STDOUT: "true"
    depends_on:
      - zookeeper
      - kafka

  storm-supervisor:
    image: monasca/storm:1.0.3
    command: storm supervisor
    depends_on:
      - storm-nimbus
      - zookeeper
      - kafka

  thresh-init:
    image: monasca/thresh:master
    environment:
      STORM_WAIT_RETRIES: 50
    depends_on:
      - zookeeper
      - storm-nimbus
      - storm-supervisor

Tag summary

Content type

Image

Digest

sha256:f778d6015…

Size

172.2 MB

Last updated

over 8 years ago

docker pull monasca/thresh