workflow-service.toml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/workflow-service.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:7220"
  7. family = "workflow-service"
  8. [log]
  9. dir = "/data/log/workflow-service/"
  10. #[log.agent]
  11. #family = "workflow-service"
  12. #addr = "172.18.20.17:8520"
  13. #chan = 10240
  14. [tracer]
  15. proto = "udp"
  16. addr = "172.16.33.46:5140"
  17. tag = "platform/workflow-service"
  18. [bm]
  19. addr = "0.0.0.0:7221"
  20. timeout = "1s"
  21. readTimeout = "1s"
  22. writeTimeout = "1s"
  23. [host]
  24. serviceURI = "http://service.bilibili.com"
  25. managerURI = "http://uat-manager.bilibili.co"
  26. [orm]
  27. [orm.write]
  28. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_workflow?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  29. active = 5
  30. idle = 5
  31. idleTimeout = "4h"
  32. [httpClient]
  33. [httpClient.sobot]
  34. key = "fLmW4cJFn7mL7pBo"
  35. secret = "a9e79f60e30b42a0bf621f615d96ec25"
  36. dial = "1s"
  37. timeout = "3s"
  38. keepAlive = "60s"
  39. timer = 1000
  40. [httpClient.sobot.breaker]
  41. window = "10s"
  42. sleep = "100ms"
  43. bucket = 10
  44. ratio = 0.5
  45. request = 100
  46. [httpClient.read]
  47. key = "b8f239ca38a53308"
  48. secret = "5460ef72fe13c10dfb53442b9111427e"
  49. dial = "1s"
  50. timeout = "3s"
  51. keepAlive = "60s"
  52. timer = 128
  53. [httpClient.read.breaker]
  54. window = "10s"
  55. sleep = "100ms"
  56. bucket = 10
  57. ratio = 0.5
  58. request = 100
  59. [httpClient.write]
  60. key = "b8f239ca38a53308"
  61. secret = "5460ef72fe13c10dfb53442b9111427e"
  62. dial = "80ms"
  63. timeout = "700ms"
  64. keepAlive = "60s"
  65. timer = 128
  66. [httpClient.write.breaker]
  67. window = "10s"
  68. sleep = "100ms"
  69. bucket = 10
  70. ratio = 0.5
  71. request = 100
  72. [archiveRPC]
  73. timeout = "2s"
  74. [elastic]
  75. host = "http://uat-manager.bilibili.co"
  76. [elastic.HTTPClient]
  77. key = "3c4e41f926e51656"
  78. secret = "26a2095b60c24154521d24ae62b885bb"
  79. dial = "1s"
  80. timeout = "2s"
  81. keepAlive = "60s"
  82. timer = 1000
  83. [elastic.HTTPClient.breaker]
  84. window ="3s"
  85. sleep ="100ms"
  86. bucket = 10
  87. ratio = 0.5
  88. request = 100