config.json.sample 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "ListenConf" :{
  3. "HttpAddr":"",
  4. "HttpPort": 80
  5. },
  6. "UserDaoConf": {
  7. "Adapter":"UserRedisDao",
  8. "RedisName": "default"
  9. },
  10. "ItemDaoConf": {
  11. "Adapter":"ItemRedisDao",
  12. "RedisName": "default"
  13. },
  14. "ItemStatusDaoConf": {
  15. "Adapter":"ItemStatusMysqlDao",
  16. "MysqlName": "default",
  17. "MysqlTable": "item_status"
  18. },
  19. "User2ItemExposureDaoConf": {
  20. "Adapter":"User2ItemExposureDao",
  21. "MysqlName": "default",
  22. "MysqlTable": "wx_past_cate_457"
  23. },
  24. "SortNames": [""],
  25. "FilterNames": ["ItemStatusFilter", "User2ItemExposureFilter"],
  26. "AlgoConfs" :[
  27. {
  28. "Name":"lr",
  29. "Type": "EAS",
  30. "EasConf": {
  31. "Processor" : "PMML",
  32. "Url":"",
  33. "Auth":"",
  34. "Timeout":100
  35. }
  36. },
  37. {
  38. "Name":"tftest",
  39. "Type": "EAS",
  40. "EasConf": {
  41. "Processor" : "TensorFlow",
  42. "Url":"",
  43. "Auth":"",
  44. "SignatureName":"",
  45. "Timeout":100
  46. }
  47. },
  48. {
  49. "Name":"faiss_vector",
  50. "Type":"FAISS",
  51. "VectorConf": {
  52. "ServerAddress" : "localhost:9000",
  53. "Timeout": 100
  54. }
  55. }
  56. ],
  57. "MysqlConfs": {
  58. "default": {
  59. DSN: "root:mysql@tcp/zqkd?multiStatements=true&readTimeout=50ms&timeout=30ms"
  60. }
  61. },
  62. "RedisConfs": {
  63. "default": {
  64. "Host": "127.0.0.1",
  65. "Port": 6379,
  66. "MaxIdle": 3,
  67. "ConnectTimeout": 30,
  68. "ReadTimeout": 50,
  69. "WriteTimeout": 50
  70. }
  71. },
  72. "SceneConfs" :{
  73. "home_feed": {
  74. "Categories" : ["default_category"]
  75. }
  76. },
  77. "CategoryConfs" : {
  78. "default_category": {
  79. RecallNames: ["DnnModelRecall"]
  80. }
  81. }
  82. }