1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- class BaseConfig(object):
-
- AB_CODE = 10000
-
- CATEGORY = {
- 'recommend': [0],
- 'other': [1, 2, 3]
- }
-
- K = 3
-
- P = 0.5
-
- RECALL_KEY_NAME_PREFIX = 'com.weiqu.video.recall.hot.item.score.'
-
- FLOW_POOL_KEY_NAME = 'com.weiqu.video.flowpool.hot.item.score'
-
- PREVIEW_KEY_PREFIX = 'com.weiqu.video.hot.recommend.previewed.'
-
- LAST_VIDEO_FROM_ROV_POOL_PREFIX = 'com.weiqu.video.rov.pool.last.'
-
- MAX_FREQ_FROM_ROV_POOL = 3
- class DevelopmentConfig(BaseConfig):
- """测试环境配置"""
-
- REDIS_INFO = {
- 'host': 'r-bp1ps6my7lzg8rdhwx682.redis.rds.aliyuncs.com',
- 'port': 6379,
- 'password': 'Wqsd@2019',
- }
-
- HOLOGRES_INFO = {
- 'host': 'hgprecn-cn-7pp28y18c00c-cn-hangzhou.hologres.aliyuncs.com',
- 'port': 80,
- 'dbname': 'dssm',
- 'user': 'LTAI5tMPqPy9yboQAf1mBCCN',
- 'password': '4BEcOgxREOPq7t3A7EWkjciVULeQGj'
- }
-
- VIDEO_STATUS = 'longvideo_test.dwd_mdm_item_video_stat'
-
-
- VIDEO_FILTER_URL = 'http://videotest-internal.yishihui.com/longvideoapi/openapi/recommend/filterVideos'
- class TestConfig(BaseConfig):
- """测试环境配置"""
-
- REDIS_INFO = {
- 'host': 'r-bp1ps6my7lzg8rdhwx682.redis.rds.aliyuncs.com',
- 'port': 6379,
- 'password': 'Wqsd@2019',
- }
-
- HOLOGRES_INFO = {
- 'host': 'hgprecn-cn-7pp28y18c00c-cn-hangzhou-vpc.hologres.aliyuncs.com',
- 'port': 80,
- 'dbname': 'dssm',
- 'user': 'LTAI5tMPqPy9yboQAf1mBCCN',
- 'password': '4BEcOgxREOPq7t3A7EWkjciVULeQGj'
- }
- def set_config():
- return DevelopmentConfig()
|