Browse Source

update flowpool get P 0.3->0.05

liqian 3 years ago
parent
commit
006a9ab13d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      config.py

+ 3 - 3
config.py

@@ -19,7 +19,7 @@ class BaseConfig(object):
     # 前k个从ROV召回池中获取视频
     K = 3
     # 从流量池获取视频的概率设置
-    P = 0.3
+    P = 0.05
 
     # ROV召回池redis key前缀,完整格式:com.weiqu.video.recall.hot.item.score.{date}
     RECALL_KEY_NAME_PREFIX = 'com.weiqu.video.recall.hot.item.score.'
@@ -179,6 +179,6 @@ class ProductionConfig(BaseConfig):
 
 def set_config():
     # return DevelopmentConfig()
-    # return TestConfig()
+    return TestConfig()
     # return PreProductionConfig()
-    return ProductionConfig()
+    # return ProductionConfig()