| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 | 
							- {
 
- 	"RunMode": "product",
 
- 	"ListenConf": {
 
- 	  "HttpAddr": "",
 
- 	  "HttpPort": 8000
 
- 	},
 
- 	"ABTestConf": {
 
- 	  "Host": "http://1894469520484605.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/tzld_pairec_experiment",
 
- 	  "Token": "MDc2MDc0N2E5YTVjMDc0MGE0YjNkZmRiOGQwMzBjYjYxY2U0MDNlNQ=="
 
- 	},
 
- 	"FilterConfs": [
 
-     {
 
-         "Name": "UserExposureFilter",
 
-         "FilterType": "User2ItemExposureFilter",
 
-         "MaxItems": 100,
 
-         "TimeInterval": 172800,
 
-         "WriteLog": true,
 
-         "DaoConf":{
 
-             "AdapterType": "hologres",
 
-             "HologresName": "wx-holo",
 
-             "HologresTableName": "rec_exposure_history"
 
-         }
 
-     },
 
-     {
 
-         "Name": "ItemStateFilter",
 
-         "FilterType": "ItemStateFilter",
 
-         "ItemStateDaoConf":{
 
-             "AdapterType": "hologres",
 
-             "HologresName": "wx-holo",
 
-             "HologresTableName": "public.rec_item_status",
 
-             "ItemFieldName" : "\"video_id\"",
 
-             "SelectFields" :"app_recommend_status, audit_status,video_status, pwd_status,charge"
 
-         },
 
-         "FilterParams" :[
 
-             {
 
-                 "Name" : "app_recommend_status",
 
-                 "Type" : "int",
 
-                 "Operator" : "in",
 
-                 "Value" : [-6, 1, 10]
 
-             },
 
-             {
 
-                 "Name" : "audit_status",
 
-                 "Type" : "int",
 
-                 "Operator" : "equal",
 
-                 "Value" : 5
 
-             },
 
-             {
 
-                 "Name" : "video_status",
 
-                 "Type" : "int",
 
-                 "Operator" : "equal",
 
-                 "Value" : 1
 
-             },
 
-             {
 
-                 "Name" : "pwd_status",
 
-                 "Type" : "int",
 
-                 "Operator" : "equal",
 
-                 "Value" : 0
 
-             },
 
-             {
 
-                 "Name" : "charge",
 
-                 "Type" : "int",
 
-                 "Operator" : "equal",
 
-                 "Value" : 0
 
-             }
 
-         ]
 
-     },
 
-         {
 
-             "Name": "ItemDurationFilter",
 
-             "FilterType": "ItemStateFilter",
 
-             "ItemStateDaoConf":{
 
-                 "AdapterType": "hologres",
 
-                 "HologresName": "wx-holo",
 
-                 "HologresTableName": "dim_video",
 
-                 "ItemFieldName" : "\"videoid\"",
 
-                 "SelectFields" :"total_time"
 
-             },
 
-             "FilterParams" :[
 
-                 {
 
-                     "Name" : "total_time",
 
-                     "Type" : "int",
 
-                     "Operator" : "greater",
 
-                     "Value" : 120
 
-                 }
 
-             ]
 
-         },
 
-     {
 
-         "Name": "PriorityAdjustCountFilter",
 
-         "FilterType": "PriorityAdjustCountFilter",
 
-         "AdjustCountConfs" :[
 
-         {
 
-             "RecallName" :"U2IRecall",
 
-             "Count" :200,
 
-             "Type" : "accumulator"
 
-         },
 
-         {
 
-             "RecallName" :"SwingU2IRecall",
 
-             "Count" :400,
 
-             "Type" : "accumulator"
 
-         },
 
-         {
 
-             "RecallName" :"UserGroupHotRecall",
 
-             "Count" :450,
 
-             "Type" : "accumulator"
 
-         },
 
-         {
 
-             "RecallName" :"UserGlobalHotRecall",
 
-             "Count" :500,
 
-             "Type" : "accumulator"
 
-         },
 
-         {
 
-             "RecallName" :"ColdStartRecall",
 
-             "Count" :600,
 
-             "Type" : "accumulator"
 
-         }
 
-         ]
 
-     }
 
- 	],
 
- 	"RecallConfs": [
 
-         {
 
-           "Name":"U2IRecall",
 
-           "RecallType": "UserCustomRecall",
 
-           "RecallCount" :1000,
 
-           "DaoConf":{
 
-             "AdapterType": "hologres",
 
-             "HologresName": "wx-holo",
 
-             "HologresTableName": "rec_etrec_u2i2i_score"
 
-           }
 
-         },
 
-         {
 
-           "Name":"SwingU2IRecall",
 
-           "RecallType": "UserCustomRecall",
 
-           "RecallCount" :1000,
 
-           "DaoConf":{
 
-             "AdapterType": "hologres",
 
-             "HologresName": "wx-holo",
 
-             "HologresTableName": "rec_swing_u2i2i_score"
 
-           }
 
-         },
 
-         {
 
-           "Name":"UserGroupHotRecall",
 
-           "RecallType": "UserGroupHotRecall",
 
-           "RecallCount" :500,
 
-           "Triggers": [
 
-             {
 
-               "TriggerKey": "machineinfo_platform"
 
-             },
 
-             {
 
-               "TriggerKey": "province"
 
-             },
 
-             {
 
-               "TriggerKey": "gender"
 
-             }
 
-           ],
 
-           "DaoConf":{
 
-                 "AdapterType": "hologres",
 
-                 "HologresName": "wx-holo",
 
-                 "HologresTableName": "rec_group_hotness_score"
 
-           }
 
-         },
 
-         {
 
-           "Name":"UserGlobalHotRecall",
 
-           "RecallType": "UserGlobalHotRecall",
 
-           "RecallCount" :500,
 
-           "CacheAdapter": "localCache",
 
-           "CacheTime": 600,
 
-           "CacheConfig": "{\"defaultExpiration\":600, \"cleanupInterval\":600}",
 
-           "DaoConf":{
 
-                 "AdapterType": "hologres",
 
-                 "HologresName": "wx-holo",
 
-                 "HologresTableName": "rec_global_hotness_score"
 
-           }
 
-         },
 
-         {
 
-           "Name":"ColdStartRecall",
 
-           "RecallType": "ColdStartRecall",
 
-           "RecallCount" :500,
 
-           "CacheAdapter": "localCache",
 
-           "CacheTime": 120,
 
-           "CacheConfig": "{\"defaultExpiration\":600, \"cleanupInterval\":300}",
 
-           "ColdStartDaoConf":{
 
-                 "AdapterType": "hologres",
 
-                 "HologresName": "wx-holo",
 
-                 "HologresTableName": "longvideo.wx_video",
 
-                 "WhereClause" : "gmt_create >= ${time}",
 
-                 "PrimaryKey" : "id",
 
-                 "TimeInterval" : 86400
 
-           }
 
-         }
 
- 	],
 
- 	"SortNames": {
 
- 	  "default": [
 
-          "ItemRankScore",
 
-          "VideoMixSort"
 
- 	  ]
 
- 	},
 
- 	"FilterNames": {
 
- 	  "default": [
 
- 		"UniqueFilter",
 
-         "UserExposureFilter",
 
-         "ItemStateFilter",
 
-         "ItemDurationFilter",
 
-         "PriorityAdjustCountFilter"
 
- 	  ]
 
- 	},
 
- 	"AlgoConfs": [
 
-          {
 
-        "Name": "sv_dbmtl",
 
-        "Type": "EAS",
 
-        "EasConf": {
 
-          "Processor": "EasyRec",
 
-          "Timeout": 500,
 
-          "ResponseFuncName": "easyrecMutValResponseFunc",
 
-          "Url": "http://1894469520484605.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/sv_dbmtl",
 
-          "Auth": "MmE2NWFkYTAwM2RmM2I3ODc1MTBjZjk0MjViNThkNjA0ODFhMjNjNA=="
 
-         }
 
-       }
 
- 	],
 
- 	"HologresConfs": {
 
- 		"wx-holo" :{
 
- 			"DSN": "postgres://LTAI5t6Wu7AEgtmpY7ksBT6C:xZT7RCgaAT2u1xMdHtrdXre1NMP44W@hgprecn-cn-7pp28y18c00c-cn-hangzhou-vpc.hologres.aliyuncs.com:80/dssm?sslmode=disable&connect_timeout=1"
 
- 		}
 
- 	},
 
- 	"KafkaConfs": {
 
- 	},
 
- 	"RedisConfs": {
 
-         "redis-cache" :{
 
-            "Host": "r-bp1lwv3bjpv6zee8zw.redis.rds.aliyuncs.com",
 
-            "Port": 6379,
 
-            "Password": "alirecommend@2021",
 
-            "ConnectTimeout": 1000,
 
-            "ReadTimeout": 100
 
-         }
 
- 	},
 
- 	"SceneConfs": {
 
-         "video_feed":{
 
-             "default":{
 
-                 "RecallNames":["UserGroupHotRecall", "U2IRecall", "UserGlobalHotRecall", "SwingU2IRecall", "ColdStartRecall"]
 
-             }
 
-         }
 
- 	},
 
- 	"LogConf": {
 
- 	  "RetensionDays": 3,
 
- 	  "DiskSize": 20,
 
- 	  "LogLevel": "INFO"
 
- 	},
 
- 	"RankConf": {
 
-          "video_feed": {
 
-               "RankAlgoList": [
 
-                 "sv_dbmtl"
 
-               ],
 
-               "RankScore": "${sv_dbmtl_probs_is_videoRealPlay} + ${sv_dbmtl_y_playduration} + ${sv_dbmtl_y_play_rate} + 0.5 * ${sv_dbmtl_probs_is_videoShareFriend_videoShareH5_videoFavorite}",
 
-               "BatchCount" : 100,
 
-               "Processor": "EasyRec"
 
-         }
 
- 	},
 
- 	"FeatureConfs": {
 
-         "video_feed":{
 
-            "AsynLoadFeature": true,
 
-            "FeatureLoadConfs" :[
 
-             {
 
-               "FeatureDaoConf": {
 
-                 "AdapterType": "hologres",
 
-                 "HologresName": "wx-holo",
 
-                 "FeatureKey": "user:uid",
 
-                 "UserFeatureKeyName": "mid",
 
-                 "HologresTableName": "mid_all_feature",
 
-                 "UserSelectFields": "*",
 
-                 "FeatureStore": "user"
 
-               },
 
-               "Features": [
 
-                 {
 
-                     "FeatureType":"new_feature",
 
-                     "FeatureName":"day_h",
 
-                     "Normalizer" : "hour_in_day",
 
-                     "FeatureStore":"user"
 
-                 },
 
-                 {
 
-                     "FeatureType":"new_feature",
 
-                     "FeatureName":"week_day",
 
-                     "Normalizer" : "weekday",
 
-                     "FeatureStore":"user"
 
-                 }
 
-               ]
 
-             },
 
-             {
 
-                 "FeatureDaoConf": {
 
-                     "AdapterType": "hologres",
 
-                     "HologresName": "wx-holo",
 
-                     "ItemFeatureKeyName" :"id",
 
-                     "FeatureKey": "item:id",
 
-                     "HologresTableName": "wx_video",
 
-                     "ItemSelectFields":"id, uid, total_time",
 
-                     "FeatureStore":"item"
 
-                 },
 
-                 "Features" :[
 
-                 ]
 
-             }
 
-           ]
 
-         }
 
- 	},
 
-     "ColdStartRankConfs" :{
 
-         "video_feed": {
 
-            "RecallName": "ColdStartRecall"
 
-         }
 
-     }
 
-  }
 
 
  |