config.json.production 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. {
  2. "RunMode": "product",
  3. "ListenConf": {
  4. "HttpAddr": "",
  5. "HttpPort": 8000
  6. },
  7. "ABTestConf": {
  8. "Host": "http://1894469520484605.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/tzld_pairec_experiment",
  9. "Token": "MDc2MDc0N2E5YTVjMDc0MGE0YjNkZmRiOGQwMzBjYjYxY2U0MDNlNQ=="
  10. },
  11. "FilterConfs": [
  12. {
  13. "Name": "UserExposureFilter",
  14. "FilterType": "User2ItemExposureFilter",
  15. "MaxItems": 100,
  16. "TimeInterval": 172800,
  17. "WriteLog": true,
  18. "DaoConf":{
  19. "AdapterType": "hologres",
  20. "HologresName": "wx-holo",
  21. "HologresTableName": "rec_exposure_history"
  22. }
  23. },
  24. {
  25. "Name": "ItemStateFilter",
  26. "FilterType": "ItemStateFilter",
  27. "ItemStateDaoConf":{
  28. "AdapterType": "hologres",
  29. "HologresName": "wx-holo",
  30. "HologresTableName": "public.rec_item_status",
  31. "ItemFieldName" : "\"video_id\"",
  32. "SelectFields" :"app_recommend_status, audit_status,video_status, pwd_status,charge"
  33. },
  34. "FilterParams" :[
  35. {
  36. "Name" : "app_recommend_status",
  37. "Type" : "int",
  38. "Operator" : "in",
  39. "Value" : [-6, 1, 10]
  40. },
  41. {
  42. "Name" : "audit_status",
  43. "Type" : "int",
  44. "Operator" : "equal",
  45. "Value" : 5
  46. },
  47. {
  48. "Name" : "video_status",
  49. "Type" : "int",
  50. "Operator" : "equal",
  51. "Value" : 1
  52. },
  53. {
  54. "Name" : "pwd_status",
  55. "Type" : "int",
  56. "Operator" : "equal",
  57. "Value" : 0
  58. },
  59. {
  60. "Name" : "charge",
  61. "Type" : "int",
  62. "Operator" : "equal",
  63. "Value" : 0
  64. }
  65. ]
  66. },
  67. {
  68. "Name": "PriorityAdjustCountFilter",
  69. "FilterType": "PriorityAdjustCountFilter",
  70. "AdjustCountConfs" :[
  71. {
  72. "RecallName" :"U2IRecall",
  73. "Count" :200,
  74. "Type" : "accumulator"
  75. },
  76. {
  77. "RecallName" :"SwingU2IRecall",
  78. "Count" :400,
  79. "Type" : "accumulator"
  80. },
  81. {
  82. "RecallName" :"UserGroupHotRecall",
  83. "Count" :450,
  84. "Type" : "accumulator"
  85. },
  86. {
  87. "RecallName" :"UserGlobalHotRecall",
  88. "Count" :500,
  89. "Type" : "accumulator"
  90. },
  91. {
  92. "RecallName" :"ColdStartRecall",
  93. "Count" :600,
  94. "Type" : "accumulator"
  95. }
  96. ]
  97. }
  98. ],
  99. "RecallConfs": [
  100. {
  101. "Name":"U2IRecall",
  102. "RecallType": "UserCustomRecall",
  103. "RecallCount" :1000,
  104. "DaoConf":{
  105. "AdapterType": "hologres",
  106. "HologresName": "wx-holo",
  107. "HologresTableName": "rec_etrec_u2i2i_score"
  108. }
  109. },
  110. {
  111. "Name":"SwingU2IRecall",
  112. "RecallType": "UserCustomRecall",
  113. "RecallCount" :1000,
  114. "DaoConf":{
  115. "AdapterType": "hologres",
  116. "HologresName": "wx-holo",
  117. "HologresTableName": "rec_swing_u2i2i_score"
  118. }
  119. },
  120. {
  121. "Name":"UserGroupHotRecall",
  122. "RecallType": "UserGroupHotRecall",
  123. "RecallCount" :500,
  124. "Triggers": [
  125. {
  126. "TriggerKey": "machineinfo_platform"
  127. },
  128. {
  129. "TriggerKey": "province"
  130. },
  131. {
  132. "TriggerKey": "gender"
  133. }
  134. ],
  135. "DaoConf":{
  136. "AdapterType": "hologres",
  137. "HologresName": "wx-holo",
  138. "HologresTableName": "rec_group_hotness_score"
  139. }
  140. },
  141. {
  142. "Name":"UserGlobalHotRecall",
  143. "RecallType": "UserGlobalHotRecall",
  144. "RecallCount" :500,
  145. "CacheAdapter": "localCache",
  146. "CacheTime": 600,
  147. "CacheConfig": "{\"defaultExpiration\":600, \"cleanupInterval\":600}",
  148. "DaoConf":{
  149. "AdapterType": "hologres",
  150. "HologresName": "wx-holo",
  151. "HologresTableName": "rec_global_hotness_score"
  152. }
  153. },
  154. {
  155. "Name":"ColdStartRecall",
  156. "RecallType": "ColdStartRecall",
  157. "RecallCount" :500,
  158. "CacheAdapter": "localCache",
  159. "CacheTime": 120,
  160. "CacheConfig": "{\"defaultExpiration\":600, \"cleanupInterval\":300}",
  161. "ColdStartDaoConf":{
  162. "AdapterType": "hologres",
  163. "HologresName": "wx-holo",
  164. "HologresTableName": "longvideo.wx_video",
  165. "WhereClause" : "gmt_create >= ${time}",
  166. "PrimaryKey" : "id",
  167. "TimeInterval" : 86400
  168. }
  169. }
  170. ],
  171. "SortNames": {
  172. "default": [
  173. "ItemRankScore",
  174. "VideoMixSort",
  175. "UniqueUploaderSort"
  176. ]
  177. },
  178. "FilterNames": {
  179. "default": [
  180. "UniqueFilter",
  181. "UserExposureFilter",
  182. "DrationFilter",
  183. "ItemStateFilter",
  184. "PriorityAdjustCountFilter"
  185. ]
  186. },
  187. "AlgoConfs": [
  188. {
  189. "Name": "sv_dbmtl",
  190. "Type": "EAS",
  191. "EasConf": {
  192. "Processor": "EasyRec",
  193. "Timeout": 500,
  194. "ResponseFuncName": "easyrecMutValResponseFunc",
  195. "Url": "http://1894469520484605.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/sv_dbmtl",
  196. "Auth": "MmE2NWFkYTAwM2RmM2I3ODc1MTBjZjk0MjViNThkNjA0ODFhMjNjNA=="
  197. }
  198. }
  199. ],
  200. "HologresConfs": {
  201. "wx-holo" :{
  202. "DSN": "postgres://LTAI5t6Wu7AEgtmpY7ksBT6C:xZT7RCgaAT2u1xMdHtrdXre1NMP44W@hgprecn-cn-7pp28y18c00c-cn-hangzhou-vpc.hologres.aliyuncs.com:80/dssm?sslmode=disable&connect_timeout=1"
  203. }
  204. },
  205. "KafkaConfs": {
  206. },
  207. "RedisConfs": {
  208. "redis-cache" :{
  209. "Host": "r-bp1lwv3bjpv6zee8zw.redis.rds.aliyuncs.com",
  210. "Port": 6379,
  211. "Password": "alirecommend@2021",
  212. "ConnectTimeout": 1000,
  213. "ReadTimeout": 100
  214. }
  215. },
  216. "SceneConfs": {
  217. "video_feed":{
  218. "default":{
  219. "RecallNames":["UserGroupHotRecall", "U2IRecall", "UserGlobalHotRecall", "SwingU2IRecall", "ColdStartRecall"]
  220. }
  221. }
  222. },
  223. "LogConf": {
  224. "RetensionDays": 3,
  225. "DiskSize": 20,
  226. "LogLevel": "INFO"
  227. },
  228. "RankConf": {
  229. "video_feed": {
  230. "RankAlgoList": [
  231. "sv_dbmtl"
  232. ],
  233. "RankScore": "${sv_dbmtl_probs_is_videoRealPlay} + ${sv_dbmtl_y_playduration} + ${sv_dbmtl_y_play_rate} + 0.5 * ${sv_dbmtl_probs_is_videoShareFriend_videoShareH5_videoFavorite}",
  234. "BatchCount" : 100,
  235. "Processor": "EasyRec"
  236. }
  237. },
  238. "FeatureConfs": {
  239. "video_feed":{
  240. "AsynLoadFeature": true,
  241. "FeatureLoadConfs" :[
  242. {
  243. "FeatureDaoConf": {
  244. "AdapterType": "hologres",
  245. "HologresName": "wx-holo",
  246. "FeatureKey": "user:uid",
  247. "UserFeatureKeyName": "mid",
  248. "HologresTableName": "mid_all_feature",
  249. "UserSelectFields": "*",
  250. "FeatureStore": "user"
  251. },
  252. "Features": [
  253. {
  254. "FeatureType":"new_feature",
  255. "FeatureName":"day_h",
  256. "Normalizer" : "hour_in_day",
  257. "FeatureStore":"user"
  258. },
  259. {
  260. "FeatureType":"new_feature",
  261. "FeatureName":"week_day",
  262. "Normalizer" : "weekday",
  263. "FeatureStore":"user"
  264. }
  265. ]
  266. },
  267. {
  268. "FeatureDaoConf": {
  269. "AdapterType": "hologres",
  270. "HologresName": "wx-holo",
  271. "ItemFeatureKeyName" :"id",
  272. "FeatureKey": "item:id",
  273. "HologresTableName": "wx_video",
  274. "ItemSelectFields":"id, uid, total_time",
  275. "FeatureStore":"item"
  276. },
  277. "Features" :[
  278. ]
  279. }
  280. ]
  281. }
  282. },
  283. "ColdStartRankConfs" :{
  284. "video_feed": {
  285. "RecallName": "ColdStartRecall"
  286. }
  287. }
  288. }