Skip to content

Latest commit

 

History

History
85 lines (48 loc) · 1.99 KB

settings.rst

File metadata and controls

85 lines (48 loc) · 1.99 KB

Settings

Note

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

Redis Settings

FEEDLY_REDIS_CONFIG

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

Defaults to

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

Cassandra Settings

FEEDLY_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']

FEEDLY_DEFAULT_KEYSPACE

The cassandra keyspace where feed data is stored

Defaults to feedly

FEEDLY_CASSANDRA_CONSISTENCY_LEVEL

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

Defaults to cassandra.ConsistencyLevel.ONE

FEEDLY_TRACK_CASSANDRA_DRIVER_METRICS

Enable cassandra driver metrics, if enabled the connection will track metrics using python scales You need to configure python scales (which comes installed as a dependency) in order to actually use those metrics

Defaults to False

FEEDLY_CASSANDRA_READ_RETRY_ATTEMPTS

How many times feedly should retry to read from cassandra before raising an exception

Defaults to 1

FEEDLY_CASSANDRA_WRITE_RETRY_ATTEMPTS

How many times feedly should retry to write to cassandra before raising an exception

Defaults to 1

Metric Settings

FEEDLY_METRIC_CLASS

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

Note

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

Defaults to feedly.metrics.base.Metrics

FEEDLY_METRICS_OPTIONS

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

Defaults to {}