Tell stg statscache to pull prod fedmsg data for testing.

This commit is contained in:
Ralph Bean 2015-11-05 16:00:29 +00:00
parent 7da9001247
commit feeba11073

View file

@ -3,6 +3,20 @@ import datetime
config = {
"statscache.datagrepper.profile": False,
{% if env == 'staging' %}
#"statscache.datagrepper.endpoint": "https://apps.stg.fedoraproject.org/datagrepper/raw",
# Consume production fedmsg data in staging for now.
"statscache.datagrepper.endpoint": "https://apps.fedoraproject.org/datagrepper/raw",
"endpoints": {
"production-loopback": [
"tcp://10.5.126.51:9940",
],
},
{% else %}
"statscache.datagrepper.endpoint": "https://apps.fedoraproject.org/datagrepper/raw",
{% endif %}
# Consumer stuff
"statscache.consumer.enabled": True,
@ -10,7 +24,11 @@ config = {
"statscache.sqlalchemy.uri": "postgres://statscache:{{statscache_db_password}}@db01/statscache",
# stats models will go back at least this far (current value arbitrary)
"statscache.consumer.epoch": datetime.datetime(year=2015, month=8, day=8),
{% if env == 'staging' %}
"statscache.consumer.epoch": datetime.datetime(year=2015, month=10, day=1),
{% else %}
"statscache.consumer.epoch": datetime.datetime(year=2014, month=1, day=1),
{% endif %}
# stats models are updated at this frequency
"statscache.producer.frequency": datetime.timedelta(seconds=1),