Updated ES_INDEXES to be consistent and based on lib/settings_base

This commit is contained in:
Rob Hudson 2013-05-14 15:10:06 -07:00
Родитель 564ebb172c
Коммит 200d0d9ef8
5 изменённых файлов: 14 добавлений и 23 удалений

Просмотреть файл

@ -1362,13 +1362,13 @@ BUILDER_VERSIONS_URL = ('https://builder.addons.mozilla.org/repackage/' +
## elasticsearch
ES_HOSTS = ['127.0.0.1:9200']
ES_URLS = ['http://%s' % h for h in ES_HOSTS]
ES_INDEXES = {'default': 'amo',
'webapp': 'mkt',
'update_counts': 'amo_stats',
'download_counts': 'amo_stats',
'stats_contributions': 'amo_stats',
'stats_collections_counts': 'amo_stats',
'users_install': 'amo_stats'}
ES_INDEXES = {'default': 'addons',
'webapp': 'apps',
'update_counts': 'addons_stats',
'download_counts': 'addons_stats',
'stats_contributions': 'addons_stats',
'stats_collections_counts': 'addons_stats',
'users_install': 'addons_stats'}
ES_TIMEOUT = 30
# Default AMO user id to use for tasks.

Просмотреть файл

@ -3,7 +3,7 @@
import logging
import os
from lib.settings_base import CACHE_PREFIX, KNOWN_PROXIES, LOGGING
from lib.settings_base import CACHE_PREFIX, ES_INDEXES, KNOWN_PROXIES, LOGGING
from .. import splitstrip
import private_base as private
@ -154,9 +154,7 @@ BUILDER_VERSIONS_URL = "https://builder-addons-dev.allizom.org/repackage/sdk-ver
ES_HOSTS = splitstrip(private.ES_HOSTS)
ES_URLS = ['http://%s' % h for h in ES_HOSTS]
ES_INDEXES = {'default': 'marketplace_altdev',
'update_counts': 'marketplace_altdev_stats',
'download_counts': 'marketplace_altdev_stats'}
ES_INDEXES = dict((k, '%s_altdev' % v) for k, v in ES_INDEXES.items())
BUILDER_UPGRADE_URL = "https://builder-addons-dev.allizom.org/repackage/rebuild/"

Просмотреть файл

@ -5,7 +5,7 @@ import os
import dj_database_url
from lib.settings_base import CACHE_PREFIX, KNOWN_PROXIES, LOGGING
from lib.settings_base import CACHE_PREFIX, ES_INDEXES, KNOWN_PROXIES, LOGGING
from .. import splitstrip
import private_base as private
@ -131,10 +131,7 @@ BUILDER_VERSIONS_URL = "https://builder-addons-dev.allizom.org/repackage/sdk-ver
ES_HOSTS = splitstrip(private.ES_HOSTS)
ES_URLS = ['http://%s' % h for h in ES_HOSTS]
ES_INDEXES = {'default': 'addons_dev',
'webapp': 'mkt_dev',
'update_counts': 'addons_dev_stats',
'download_counts': 'addons_dev_stats'}
ES_INDEXES = dict((k, '%s_dev' % v) for k, v in ES_INDEXES.items())
BUILDER_UPGRADE_URL = "https://builder-addons-dev.allizom.org/repackage/rebuild/"

Просмотреть файл

@ -138,9 +138,7 @@ BUILDER_SECRET_KEY = private.BUILDER_SECRET_KEY
ES_HOSTS = splitstrip(private.ES_HOSTS)
ES_URLS = ['http://%s' % h for h in ES_HOSTS]
ES_INDEXES = {'default': 'addons',
'update_counts': 'addons_stats',
'download_counts': 'addons_stats'}
# ES_INDEXES doesn't change for prod.
BUILDER_UPGRADE_URL = "https://builder.addons.mozilla.org/repackage/rebuild/"

Просмотреть файл

@ -3,7 +3,7 @@
import logging
import os
from lib.settings_base import CACHE_PREFIX, KNOWN_PROXIES, LOGGING
from lib.settings_base import CACHE_PREFIX, ES_INDEXES, KNOWN_PROXIES, LOGGING
from .. import splitstrip
import private_base as private
@ -149,9 +149,7 @@ BUILDER_VERSIONS_URL = "https://builder-addons.allizom.org/repackage/sdk-version
ES_HOSTS = splitstrip(private.ES_HOSTS)
ES_URLS = ['http://%s' % h for h in ES_HOSTS]
ES_INDEXES = {'default': 'marketplace_stage',
'update_counts': 'marketplace_stage_stats',
'download_counts': 'marketplace_stage_stats'}
ES_INDEXES = dict((k, '%s_stage' % v) for k, v in ES_INDEXES.items())
BUILDER_UPGRADE_URL = "https://builder-addons.allizom.org/repackage/rebuild/"