config.ini 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. [CONFIG]
  2. project_name = eip_feed_behave
  3. ;project_name = eip_ai_asgi_py387
  4. headers = {"content-Type": "application/json"}
  5. authentication = {
  6. "hezhiguo": "hezhiguo",
  7. "eip-ai": "eip-ai"
  8. }
  9. ; dev: 开发(组内自测):redis-6379
  10. ; test: 测试环境, ES index 不同
  11. ; pro:预发、生产
  12. start_model = dev
  13. [LOG]
  14. ; 绝对路径
  15. log_path = ../logs/eip_feed_behave/info_rec.log
  16. ; h、d、m、s,时、天、分、秒
  17. when = d
  18. backupCount = 30
  19. [PROJECT-DEV]
  20. host = 0.0.0.0:8089
  21. [PROJECT-TEST]
  22. host = 0.0.0.0:8088
  23. [PROJECT-PRO]
  24. host = 0.0.0.0:80
  25. [ES-DEV]
  26. host = 10.10.3.83:9200
  27. fc_host = 10.10.3.83:9200,10.10.100.198:9200
  28. user = eip
  29. pwd = eip-pass
  30. index = zdfx_item_test
  31. ;fc_index = hippo_text_doc_27_515
  32. fc_index = hippo_text_doc_321_0615
  33. timeout = 60
  34. [ES-TEST]
  35. host = 10.10.3.83:9200
  36. fc_host = 10.10.3.83:9200,10.10.100.198:9200
  37. user = eip
  38. pwd = eip-pass
  39. index = zdfx_item_test
  40. ;fc_index = hippo_text_doc_27_515
  41. fc_index = hippo_text_doc_321_0615
  42. timeout = 60
  43. [ES-PRO]
  44. host = 10.10.3.83:9200
  45. fc_host = 10.10.3.83:9200,10.10.100.198:9200
  46. user = eip
  47. pwd = eip-pass
  48. index = eip_inference_feed_item
  49. ;fc_index = hippo_text_doc_27_515
  50. fc_index = hippo_text_doc_321_0615
  51. timeout = 60
  52. [MYSQL-PRO]
  53. url = mysql+mysqlconnector://root:qwertyuiop@10.10.100.228:8137/eip_ai?auth_plugin=mysql_native_password
  54. hit_log_table = eip_ai_hit_log
  55. [REDIS-DEV]
  56. host = 127.0.0.1
  57. port = 6379
  58. db = 0
  59. expire = 1000
  60. host_bak = 127.0.0.1
  61. port_bak = 6379
  62. db_bak = 15
  63. expire_bak = 1000
  64. pool_size = 10
  65. users = {
  66. "hezhiguo": "hezhiguo",
  67. "eip-ai": "eip-ai"
  68. }
  69. [REDIS-TEST]
  70. host = 127.0.0.1
  71. port = 6379
  72. db = 0
  73. expire = 1000
  74. host_bak = 127.0.0.1
  75. port_bak = 6379
  76. db_bak = 15
  77. expire_bak = 1000
  78. pool_size = 10
  79. users = {
  80. "hezhiguo": "hezhiguo",
  81. "eip-ai": "eip-ai"
  82. }
  83. [REDIS-PRO]
  84. host = 127.0.0.1
  85. port = 6379
  86. db = 0
  87. expire = 1000
  88. host_bak = 127.0.0.1
  89. port_bak = 6379
  90. db_bak = 15
  91. expire_bak = 1000
  92. pool_size = 10
  93. users = {
  94. "hezhiguo": "hezhiguo",
  95. "eip-ai": "eip-ai"
  96. }
  97. [KAFKA_BEHAVIOR-DEV]
  98. user_name = eip-ai
  99. dept_name = eip-ai
  100. host = 1.kafka.adh:9092,2.kafka.adh:9092,3.kafka.adh:9092,4.kafka.adh:9092,5.kafka.adh:9092,6.kafka.adh:9092,7.kafka.adh:9092
  101. topic = log_server_stream
  102. is_cluster = 0
  103. reset_offset_on_start = 0
  104. fetch_wait_max_ms = 30000
  105. queued_max_messages = 2000
  106. [KAFKA_BEHAVIOR-TEST]
  107. user_name = eip-ai
  108. dept_name = eip-ai
  109. host = 1.kafka.adh:9092,2.kafka.adh:9092,3.kafka.adh:9092,4.kafka.adh:9092,5.kafka.adh:9092,6.kafka.adh:9092,7.kafka.adh:9092
  110. topic = log_server_stream
  111. is_cluster = 0
  112. reset_offset_on_start = 0
  113. fetch_wait_max_ms = 30000
  114. queued_max_messages = 2000
  115. [KAFKA_BEHAVIOR-PRO]
  116. user_name = eip-ai
  117. dept_name = eip-ai
  118. host = 1.kafka.adh:9092,2.kafka.adh:9092,3.kafka.adh:9092,4.kafka.adh:9092,5.kafka.adh:9092,6.kafka.adh:9092,7.kafka.adh:9092
  119. topic = log_server_stream
  120. is_cluster = 0
  121. reset_offset_on_start = 0
  122. fetch_wait_max_ms = 30000
  123. queued_max_messages = 2000
  124. [BEHAVIOR_API-DEV]
  125. url = http://115.159.79.118:20001/log/mlamp/eip/dw/EIP/ABRS/behavior_test
  126. ;url = http://192.168.64.20:5000/abrs_update
  127. [BEHAVIOR_API-TEST]
  128. url = http://115.159.79.118:20001/log/mlamp/eip/dw/EIP/ABRS/behavior_test
  129. ;url = http://192.168.64.20:5000/abrs_update
  130. [BEHAVIOR_API-PRO]
  131. url = http://115.159.79.118:20001/log/mlamp/eip/dw/EIP/ABRS/behavior
  132. [BLOOM_FILTER]
  133. ;盐值;
  134. SALTS = ("1", "2", "3", "4")
  135. ;length; 长度必须小于 alts 长度,且在 3个以上
  136. SALTS_LEN_LESS_1 = 3
  137. ;hash list; 2**9 * 2**20 * 2**3 # 512MB*1024*1024*8 :MB->bit位
  138. hash_list = 4294967296
  139. hash_func_name = md5
  140. [BEHAVE-DEV]
  141. kafka_server = eip-kafka-2.qa.mlamp.cn
  142. [BEHAVE-PRO]
  143. kafka_server = eip-ckafka-3.mlamp.cn