figure-timer-job-test.toml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. user = "nobody"
  4. pid = "/tmp/figure-timer-job.pid"
  5. dir = "./"
  6. perf = "0.0.0.0:7080"
  7. family = "figure-timer-job"
  8. address = "172.16.0.148"
  9. [log]
  10. dir = "/data/log/figure-timer-job/"
  11. [bm]
  12. addr = "0.0.0.0:7082"
  13. timeout = "1s"
  14. maxListen = 100
  15. [tracer]
  16. proto = "udp"
  17. addr = "172.16.33.46:5140"
  18. tag = "platform/figure-timer-job"
  19. [mysql]
  20. addr = "172.16.33.205:3308"
  21. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_figure?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  22. active = 5
  23. idle = 2
  24. queryTimeout = "1s"
  25. execTimeout = "1s"
  26. tranTimeout = "1s"
  27. [mysql.breaker]
  28. window = "3s"
  29. sleep = "100ms"
  30. bucket = 10
  31. ratio = 0.5
  32. request = 100
  33. [hbase]
  34. master = ""
  35. meta = ""
  36. dialTimeout = "1s"
  37. readTimeout = "1s"
  38. readsTimeout = "1s"
  39. writeTimeout = "1s"
  40. writesTimeout = "1s"
  41. [hbase.zookeeper]
  42. root = ""
  43. addrs = ["10.23.66.16:2181"]
  44. timeout = "30s"
  45. [redis]
  46. name = "figure-timer-job"
  47. proto = "tcp"
  48. addr = "172.16.33.54:6379"
  49. idle = 100
  50. active = 100
  51. dialTimeout = "1s"
  52. readTimeout = "1s"
  53. writeTimeout = "1s"
  54. idleTimeout = "10s"
  55. expire = "192h"
  56. [property]
  57. PendingMidStart = 0
  58. PendingMidShard = 10000
  59. PendingMidRetry = 3
  60. CalcWeekOffset = 1
  61. CycleCron = "0 0 0 * * 1"
  62. ConcurrencySize = 16
  63. FixRecord = true
  64. CycleAll = true
  65. CycleAllCron = "0 0 0 * * 1"
  66. [property.calc]
  67. K1 = 0.1
  68. K2 = 0.1
  69. K3 = 0.1
  70. K4 = 0.1
  71. K5 = 0.1
  72. InitLawfulScore = 10000
  73. InitWideScore = 0
  74. InitFriendlyScore = 5000
  75. InitBountyScore = 0
  76. InitCreativityScore = 0
  77. lawfulNegMax = 10000.0
  78. lawfulPosMax = 10000.0
  79. lawfulPosK = 0.002
  80. lawfulNegK1 = 0.03
  81. lawfulNegK2 = 0.02
  82. lawfulPosL = 200.0
  83. lawfulNegL = 200.0
  84. lawfulPosC1 = 1.0
  85. lawfulPosC2 = 1.0
  86. lawfulPosC3 = 1.0
  87. lawfulNegC1 = 1.0
  88. lawfulNegC2 = 5.0
  89. lawfulNegC3 = 5.0
  90. lawfulPosQ1 = 1.0
  91. lawfulPosQ2 = 1.0
  92. lawfulPosQ3 = 1.0
  93. lawfulNegQ1 = 1.0
  94. lawfulNegQ2 = 1.0
  95. lawfulNegQ3 = 1.0
  96. widePosMax = 15000.0
  97. widePosK = 0.004
  98. wideC1 = 2.0
  99. wideQ1 = 1.0
  100. wideC2 = 0.01
  101. wideQ2 = 1.0
  102. friendlyPosMax = 15000.0
  103. friendlyNegMax = 20000.0
  104. friendlyPosK = 0.004
  105. friendlyNegK = 0.004
  106. friendlyPosL = 200.0
  107. friendlyNegL = 200.0
  108. friendlyPosQ1 = 1.0
  109. friendlyPosC1 = 1.0
  110. friendlyPosQ2 = 1.0
  111. friendlyPosC2 = 2.0
  112. friendlyPosQ3 = 1.0
  113. friendlyPosC3 = 1.0
  114. friendlyNegQ1 = 1.0
  115. friendlyNegC1 = 150.0
  116. friendlyNegQ2 = 1.0
  117. friendlyNegC2 = 80.0
  118. friendlyNegQ3 = 1.0
  119. friendlyNegC3 = 10.0
  120. friendlyNegQ4 = 1.0
  121. friendlyNegC4 = 5.0
  122. bountyMax = 15000.0
  123. bountyPosL = 200.0
  124. bountyK = 0.000015
  125. bountyQ1 = 1.0
  126. bountyC1 = 15.0
  127. bountyQ2 = 2.5
  128. bountyC2 = 1.0
  129. bountyQ3 = 1.0
  130. bountyC3 = 1.0
  131. creativityPosMax = 7000.0
  132. creativityPosK = 0.004
  133. creativityPosL1 = 200.0
  134. creativityQ1 = 1.0
  135. creativityC1 = 0.1