Commit a54eb19a authored by 胡凯旋's avatar 胡凯旋

change mimas/doris redis to redis-service

parent 84f136a9
<?xml version="1.0" encoding="utf-8"?>
<gm_rpcd_config>
<info config_name="deploy" version="1.0"/>
<config name="log_dir" value="/data/log/doris/app"/>
<config name="sentry_dsn" value=""/>
</gm_rpcd_config>
......@@ -7,8 +7,8 @@ from celery.schedules import crontab
import pyssdb
CELERY_BROKER_URL = 'redis://:123456@127.0.0.1:6379/0'
REDIS_URL = 'redis://127.0.0.1:6379/1'
CELERY_BROKER_URL = 'redis://:123456@redis-service:6379/0'
REDIS_URL = 'redis://redis-service:6379/1'
ES_V2_HOSTS = [
......@@ -19,7 +19,7 @@ ES_INDEX_PREFIX = 'gm_test'
COUNT_LIMIT = 100
REDIS = {
'doctor': {'host': 'localhost', 'port': 6379, 'db': 1},
'doctor': {'host': 'redis-service', 'port': 6379, 'db': 1},
}
......
<?xml version="1.0" encoding="utf-8"?>
<gm_rpcd_config>
<info config_name="deploy" version="1.0"/>
<config name="log_dir" value="/data/log/mimas/app"/>
<config name="sentry_dsn" value=""/>
</gm_rpcd_config>
......@@ -28,8 +28,8 @@ DATABASES = {
}
CELERY_TIMEZONE = 'Asia/Shanghai'
BROKER_URL = 'redis://127.0.0.1:6379/2'
CELERY_BROKER_URL = 'redis://127.0.0.1:6379/2'
BROKER_URL = 'redis://redis-service:6379/2'
CELERY_BROKER_URL = 'redis://redis-service:6379/2'
CELERY_TASK_SERIALIZER = "json"
SENTRY_CELERY_ENDPOINT = ''
......@@ -48,7 +48,7 @@ MULTI_TOPIC_TAG_ID = 5089
GM_SERIALIZER = {
'redis': {
'host': '127.0.0.1', 'port': 6379, 'db': 1
'host': 'redis-service', 'port': 6379, 'db': 1
}
}
......@@ -56,31 +56,31 @@ GM_SERIALIZER = {
TEST_RUNNER = 'gm_test.runner.GmTestRunner'
REDIS = {
'default': {'host': '127.0.0.1', 'port': 6379, 'db': 0},
'view': {'host': '127.0.0.1', 'port': 6379, 'db': 1},
'answer_sort_cache': {'host': '127.0.0.1', 'port': 6379, 'db': 4},
'high_quality_question_cache': {'host': '127.0.0.1', 'port': 6379, 'db': 5},
# 'vote_cache': {'host': '127.0.0.1', 'port': 6379, 'db': 6},
'vote_cache': {'host': 'test-redis', 'port': 6379, 'db': 11}, # gaia settings.REDIS['vote_cache']
'page_cache': {'host': '127.0.0.1', 'port': 6379, 'db': 10},
'social_cache': {'host': '127.0.0.1', 'port': 6379, 'db': 11},
'user_cache': {'host': 'test-redis', 'port': 6379, 'db': 5},
'default': {'host': 'redis-service', 'port': 6379, 'db': 0},
'view': {'host': 'redis-service', 'port': 6379, 'db': 1},
'answer_sort_cache': {'host': 'redis-service', 'port': 6379, 'db': 4},
'high_quality_question_cache': {'host': 'redis-service', 'port': 6379, 'db': 5},
# 'vote_cache': {'host': 'redis-service', 'port': 6379, 'db': 6},
'vote_cache': {'host': 'redis-service', 'port': 6379, 'db': 11}, # gaia settings.REDIS['vote_cache']
'page_cache': {'host': 'redis-service', 'port': 6379, 'db': 10},
'social_cache': {'host': 'redis-service', 'port': 6379, 'db': 11},
'user_cache': {'host': 'redis-service', 'port': 6379, 'db': 5},
}
DATABASE_ROUTERS = ['utils.router.ThreadLocalRouter',]
LIVE_REDIS = {'host': '127.0.0.1', 'port': 6379, 'db': 7}
DEFAULT_REDIS = {'host': '127.0.0.1', 'port': 6379, 'db': 8}
TALOS_RPC_CACHE = {'host': '127.0.0.1', 'port': 6379, 'db': 9}
LIVE_REDIS = {'host': 'redis-service', 'port': 6379, 'db': 7}
DEFAULT_REDIS = {'host': 'redis-service', 'port': 6379, 'db': 8}
TALOS_RPC_CACHE = {'host': 'redis-service', 'port': 6379, 'db': 9}
LIVE_REDIS = {'host': 'redis.test.gengmei', 'port': 6379, 'db': 4}
DEFAULT_REDIS = {'host': 'localhost', 'port': 6379, 'db': 14}
LIVE_REDIS = {'host': 'redis-service', 'port': 6379, 'db': 4}
DEFAULT_REDIS = {'host': 'redis-service', 'port': 6379, 'db': 14}
TALOS_RPC_CACHE = {'host': 'test-redis', 'port': 6379, 'db': 14}
TALOS_RPC_CACHE = {'host': 'redis-service', 'port': 6379, 'db': 14}
QINIU_ACCESS_KEY = "UPCOYIJkZOMcdd9FDzpBqYjzWUh55fBpVi3AhWpL"
QINIU_SECRET_KEY = "z5YvpDDSam_JE345Z8J_f3TufzelOW2VOGNoBl9e"
......@@ -106,7 +106,7 @@ HOT_DISCUSSION_TAG_DISCUSS_SHRESHOLD = 100
REDIS_MIGRATE_TALOS = (
{
# gaia REDIS view addr.
'source': {'host': 'redis.test.gengmei', 'port': 6379, 'db': 2},
'source': {'host': 'redis-service', 'port': 6379, 'db': 2},
'prefix': ('diary_pv',),
'target': REDIS['view']
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment