baichongyang 3 lat temu
rodzic
commit
2c5095ea62
2 zmienionych plików z 10 dodań i 16 usunięć
  1. 1 1
      Makefile
  2. 9 15
      conf/config.json.production

+ 1 - 1
Makefile

@@ -4,7 +4,7 @@ DOCKER?=docker
 SOURCE_DIR=src
 BIN_NAME=bin_rec
 REGISTRY?=registry-vpc.cn-hangzhou.aliyuncs.com/ali-recommend
-DOCKER_TAG?=0.0.11
+DOCKER_TAG?=0.0.12
 TEMP_DIR_SERVER:=$(shell mktemp -d)
 
 .PHONY: setup build clean

+ 9 - 15
conf/config.json.production

@@ -12,7 +12,7 @@
     {
         "Name": "UserExposureFilter",
         "FilterType": "User2ItemExposureFilter",
-        "MaxItems": 100,
+        "MaxItems": 500,
         "TimeInterval": 172800,
         "WriteLog": true,
         "DaoConf":{
@@ -22,18 +22,18 @@
         }
     },
     {
-        "Name": "ItemViewStateFilter",
+        "Name": "ItemStateFilter",
         "FilterType": "ItemStateFilter",
         "ItemStateDaoConf":{
             "AdapterType": "hologres",
             "HologresName": "wx-holo",
-            "HologresTableName": "longvideo.dwd_mdm_item_video_stat",
+            "HologresTableName": "public.rec_item_status",
             "ItemFieldName" : "\"video_id\"",
-            "SelectFields" :"app_rec_status, audit_status,open_status,encryption_status,payment_status,transcoding_status"
+            "SelectFields" :"app_recommend_status, audit_status,video_status, pwd_status,charge"
         },
         "FilterParams" :[
             {
-                "Name" : "app_rec_status",
+                "Name" : "app_recommend_status",
                 "Type" : "int",
                 "Operator" : "in",
                 "Value" : [-6, 1, 10]
@@ -45,28 +45,22 @@
                 "Value" : 5
             },
             {
-                "Name" : "open_status",
+                "Name" : "video_status",
                 "Type" : "int",
                 "Operator" : "equal",
                 "Value" : 1
             },
             {
-                "Name" : "encryption_status",
+                "Name" : "pwd_status",
                 "Type" : "int",
                 "Operator" : "equal",
                 "Value" : 0
             },
             {
-                "Name" : "payment_status",
+                "Name" : "charge",
                 "Type" : "int",
                 "Operator" : "equal",
                 "Value" : 0
-            },
-            {
-                "Name" : "transcoding_status",
-                "Type" : "int",
-                "Operator" : "equal",
-                "Value" : 3
             }
         ]
     },
@@ -203,7 +197,7 @@
 	  "default": [
 		"UniqueFilter",
         "UserExposureFilter",
-        "ItemViewStateFilter",
+        "ItemStateFilter",
         "ItemDurationFilter",
         "PriorityAdjustCountFilter"
 	  ]