Tell stg statscache to pull prod fedmsg data for testing.
This commit is contained in:
parent
7da9001247
commit
feeba11073
1 changed files with 19 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue