Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
k8s-develop-local
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
system
k8s-develop-local
Commits
a54eb19a
Commit
a54eb19a
authored
Oct 29, 2018
by
胡凯旋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change mimas/doris redis to redis-service
parent
84f136a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
36 deletions
+22
-36
deploy_prod.xml
settings_local/doris/deploy_prod.xml
+0
-7
devel.py
settings_local/doris/devel.py
+3
-3
deploy_prod.xml
settings_local/mimas/deploy_prod.xml
+0
-7
settings_local.py
settings_local/mimas/settings_local.py
+19
-19
No files found.
settings_local/doris/deploy_prod.xml
deleted
100644 → 0
View file @
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>
settings_local/doris/devel.py
View file @
a54eb19a
...
...
@@ -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
},
}
...
...
settings_local/mimas/deploy_prod.xml
deleted
100644 → 0
View file @
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/mimas/app"
/>
<config
name=
"sentry_dsn"
value=
""
/>
</gm_rpcd_config>
settings_local/mimas/settings_local.py
View file @
a54eb19a
...
...
@@ -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'
]
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment