config.json.production 8.7 KB

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