dynamic-service-example.toml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # This is a TOML document. Boom.
  2. version = "3.0.0"
  3. user = "nobody"
  4. pid = "/tmp/dynamic-service.pid"
  5. dir = "./"
  6. perf = "127.0.0.1:6239"
  7. checkFile = "/data/www/dynamic.html"
  8. family = "dynamic-service"
  9. bigDataURI = "http://data.bilibili.co"
  10. tickRegion = "5s"
  11. tickTag = "20s"
  12. numArcs = 5
  13. numIndexArcs = 10
  14. minRegionCount = 15
  15. [xlog]
  16. dir = "/data/log/dynamic-service/"
  17. [tracer]
  18. proto = "udp"
  19. addr = "172.16.0.148:5640"
  20. tag = "platform/dynamic-service"
  21. [app]
  22. key = "7c7ac0db1aa05587"
  23. secret = "9a6d62d93290c5f771ad381e9ca23f26"
  24. [httpClient]
  25. [httpClient.read]
  26. dial = "1s"
  27. timeout = "1s"
  28. keepAlive = "60s"
  29. timer = 1000
  30. [httpClient.read.breaker]
  31. window ="3s"
  32. sleep ="100ms"
  33. bucket = 10
  34. ratio = 0.5
  35. request = 100
  36. [httpClient.write]
  37. dial = "1s"
  38. timeout = "3s"
  39. keepAlive = "60s"
  40. timer = 1000
  41. [httpClient.write.breaker]
  42. window ="3s"
  43. sleep ="100ms"
  44. bucket = 10
  45. ratio = 0.5
  46. request = 100
  47. [multiHTTP]
  48. [multiHTTP.inner]
  49. addrs = ["0.0.0.0:6231"]
  50. maxListen = 1000
  51. [multiHTTP.local]
  52. addrs = ["0.0.0.0:6232"]
  53. maxListen = 100
  54. [identify]
  55. whiteAccessKey = ""
  56. whiteMid = 0
  57. [identify.app]
  58. key = "6a29f8ed87407c11"
  59. secret = "d3c5a85f5b895a03735b5d20a273bc57"
  60. [identify.memcache]
  61. name = "go-business/identify"
  62. proto = "tcp"
  63. addr = "172.16.33.54:11211"
  64. active = 5
  65. idle = 10
  66. dialTimeout = "1s"
  67. readTimeout = "1s"
  68. writeTimeout = "1s"
  69. idleTimeout = "80s"
  70. [identify.host]
  71. auth = "http://passport.bilibili.com"
  72. secret = "http://open.bilibili.com"
  73. [identify.authHTTPClient]
  74. dial = "1s"
  75. timeout = "1s"
  76. keepAlive = "60s"
  77. timer = 1000
  78. [identify.authHTTPClient.breaker]
  79. window ="3s"
  80. sleep ="100ms"
  81. bucket = 10
  82. ratio = 0.5
  83. request = 100
  84. [identify.secretHTTPClient]
  85. dial = "1s"
  86. timeout = "1s"
  87. keepAlive = "60s"
  88. timer = 1000
  89. [identify.secretHTTPClient.breaker]
  90. window ="3s"
  91. sleep ="100ms"
  92. bucket = 10
  93. ratio = 0.5
  94. request = 100
  95. [rpcServer2]
  96. [[rpcServer2.servers]]
  97. proto = "tcp"
  98. addr = ":6235"
  99. weight = 10
  100. [rpcServer2.zookeeper]
  101. root = "/microservice/dynamic-service/"
  102. addrs = ["127.0.0.1:2181"]
  103. timeout = "1s"
  104. [archiveRPC]
  105. pullInterval = "10s"
  106. group = "test"
  107. [archiveRPC.client]
  108. token = "123456"
  109. proto = "tcp"
  110. addr = "172.16.0.148:6089"
  111. timeout = "1s"
  112. timer = 1000
  113. [archiveRPC.client.breaker]
  114. window ="3s"
  115. sleep ="100ms"
  116. bucket = 10
  117. ratio = 0.5
  118. request = 100
  119. [archiveRPC.zookeeper]
  120. root = "/microservice/archive-service/"
  121. addrs = ["172.16.0.148:2181"]
  122. timeout = "30s"