test.toml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. env = "uat"
  2. sourcePath = "/Users/caocao/Code/go/src/go-common/app/job/openplatform/open-sug/source/"
  3. [redis]
  4. name = "open-sug-job"
  5. proto = "tcp"
  6. addr = "172.16.33.203:6379"
  7. idle = 10
  8. active = 10
  9. dialTimeout = "1s"
  10. readTimeout = "1s"
  11. writeTimeout = "1s"
  12. idleTimeout = "10s"
  13. expire = "1m"
  14. [mallMySQL]
  15. addr = "172.22.34.101:3310"
  16. dsn = "mall:FIb1lia9lK4UufUScJjrxvbkrEZtZD4l@tcp(172.22.34.101:3310)/open_mall?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  17. active = 5
  18. idle = 2
  19. queryTimeout = "1000ms"
  20. execTimeout = "100ms"
  21. tranTimeout = "200ms"
  22. [db.mallDB.breaker]
  23. window = "3s"
  24. sleep = "1000ms"
  25. bucket = 10
  26. ratio = 0.5
  27. request = 500
  28. [mallUgcMySQL]
  29. addr = "172.22.34.101:3310"
  30. dsn = "mallugc:FIb1lia9lK4UufUScJjrxvbkrEZtZD4l@tcp(172.22.34.101:3310)/open_mallugc?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  31. active = 5
  32. idle = 2
  33. queryTimeout = "1000ms"
  34. execTimeout = "100ms"
  35. tranTimeout = "200ms"
  36. [db.ugcDB.breaker]
  37. window = "3s"
  38. sleep = "1000ms"
  39. bucket = 10
  40. ratio = 0.5
  41. request = 500
  42. [ticketMySQL]
  43. addr = "172.22.34.101:3310"
  44. dsn = "ticket:i9HXWAvzWiqPxMxlfsQ8DRqYydjf3pYa@tcp(172.22.34.101:3310)/open_ticket?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  45. active = 5
  46. idle = 2
  47. queryTimeout = "1000ms"
  48. execTimeout = "100ms"
  49. tranTimeout = "200ms"
  50. [db.ticketDB.breaker]
  51. window = "3s"
  52. sleep = "1000ms"
  53. bucket = 10
  54. ratio = 0.5
  55. request = 500
  56. [pgcSub]
  57. key = "39143bf7b888273e"
  58. secret = "0766c43df93a9204d81c46caf2231ee1"
  59. group = "Pgc-OpenTicket-S"
  60. topic = "Pgc-T"
  61. action = "sub"
  62. offset = "old"
  63. buffer = 1024
  64. name = "open-sug-job/ticket"
  65. proto = "tcp"
  66. addr = "172.16.33.158:6205"
  67. idle = 1
  68. active = 1
  69. dialTimeout = "1s"
  70. readTimeout = "60s"
  71. writeTimeout = "1s"
  72. idleTimeout = "10s"
  73. [berserker]
  74. appkey = "7a374e9a8fd3938ac682cc6cb07855e8"
  75. secret = "ad994843be00732bd6e65f9f95887bac"
  76. url = "http://berserker.bilibili.co/avenger/api/53/query"
  77. [elasticSearch]
  78. addr = ["http://172.16.38.126:9201"]
  79. check = "10s"
  80. timeout = "1s"
  81. [elasticSearch.season]
  82. index = "sug_job_season"
  83. type = "sug_job_season"
  84. mapping = """
  85. {
  86. "settings": {
  87. "number_of_shards": 1,
  88. "number_of_replicas": 0,
  89. "analysis": {
  90. "analyzer": {
  91. "fulltext_analyzer": {
  92. "type": "custom",
  93. "tokenizer": "whitespace",
  94. "filter": [
  95. "lowercase",
  96. "type_as_payload"
  97. ]
  98. }
  99. }
  100. }
  101. },
  102. "mappings": {
  103. "sug_job_season": {
  104. "_source": {
  105. "enabled": true
  106. },
  107. "properties": {
  108. "id": {
  109. "type": "long",
  110. "store": true
  111. },
  112. "title": {
  113. "type": "text",
  114. "term_vector": "with_positions_offsets_payloads",
  115. "store": true,
  116. "analyzer": "fulltext_analyzer"
  117. },
  118. "alias": {
  119. "type": "text",
  120. "term_vector": "with_positions_offsets_payloads",
  121. "store": true,
  122. "analyzer": "fulltext_analyzer"
  123. },
  124. "alias_search": {
  125. "type": "text",
  126. "term_vector": "with_positions_offsets_payloads",
  127. "store": true,
  128. "analyzer": "fulltext_analyzer"
  129. },
  130. "actors": {
  131. "type": "text",
  132. "term_vector": "with_positions_offsets_payloads",
  133. "store": true,
  134. "analyzer": "fulltext_analyzer"
  135. }
  136. }
  137. }
  138. }
  139. }
  140. """
  141. [httpClient]
  142. key = "654af11b5df0c9d3"
  143. secret = "a7512b8b243b82f4bdb72cf2824b3f8e"
  144. dial = "500ms"
  145. timeout = "1s"
  146. keepAlive = "60s"
  147. timer = 10
  148. [httpClient.breaker]
  149. window = "3s"
  150. sleep = "100ms"
  151. bucket = 10
  152. ratio = 0.5
  153. request = 100
  154. [bfs]
  155. timeout = "2s"
  156. maxFileSize = 5242880
  157. key = "c387398b08495933"
  158. secret = "18295608cd3b8a5lbbe2b07a509705"
  159. addr = "http://bfs.bilibili.co/bfs/openplatform/"
  160. bucket = "openplatform"