Permalink
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (41 sloc) 1.63 KB

Settings

Note

Settings currently only support Django settings. To add support for Flask or other frameworks simply change stream_framework.settings.py

Redis Settings

STREAM_REDIS_CONFIG

The settings for redis, keep here the list of redis servers you want to use as feed storage

Defaults to

STREAM_REDIS_CONFIG = {
    'default': {
        'host': '127.0.0.1',
        'port': 6379,
        'db': 0,
        'password': None
    },
}

Cassandra Settings

STREAM_CASSANDRA_HOSTS

The list of nodes that are part of the cassandra cluster.

Note

You dont need to put every node of the cluster, cassandra-driver has built-in node discovery

Defaults to ['localhost']

STREAM_DEFAULT_KEYSPACE

The cassandra keyspace where feed data is stored

Defaults to stream_framework

STREAM_CASSANDRA_CONSISTENCY_LEVEL

The consistency level used for both reads and writes to the cassandra cluster.

Defaults to cassandra.ConsistencyLevel.ONE

CASSANDRA_DRIVER_KWARGS

Extra keyword arguments sent to cassandra driver (see http://datastax.github.io/python-driver/_modules/cassandra/cluster.html#Cluster)

Defaults to {}

Metric Settings

STREAM_METRIC_CLASS

The metric class that will be used to collect feeds metrics.

Note

The default metric class is not collecting any metric and should be used as example for subclasses

Defaults to stream_framework.metrics.base.Metrics

STREAM_METRICS_OPTIONS

A dictionary with options to send to the metric class at initialisation time.

Defaults to {}