config.json.production.1 8.0 KB

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