passport-game-cloud-job.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. #user = "noboby"
  4. #dir = "./"
  5. #perf = "0.0.0.0:7400"
  6. family = "passport-game-cloud-job"
  7. env = "qa"
  8. #[xlog]
  9. #dir = "/data/log/passport-game-cloud-job"
  10. #
  11. #[tracer]
  12. #family = "passport-game-cloud-job"
  13. #proto = "unixgram"
  14. #addr = "/var/run/dapper-collect/dapper-collect.sock"
  15. #[multiHTTP]
  16. #[multiHTTP.inner]
  17. #addrs = ["0.0.0.0:7401"]
  18. #maxListen = 1000
  19. [game]
  20. # NOTE: the conf item appIDs represents the game app id list,
  21. # the app id 876 will always be the first item of the the final game app id list,
  22. # even if it's not configured in this file or configured in other order.
  23. appIDs = [876,900]
  24. delCacheURI = "http://p.biligame.com/api/notify/purge.cache"
  25. [game.client]
  26. key = "ebbec09cd271049e"
  27. secret = "test"
  28. dial = "500ms"
  29. timeout = "1s"
  30. keepAlive = "60s"
  31. timer = 10
  32. [game.client.breaker]
  33. window = "3s"
  34. sleep = "100ms"
  35. bucket = 10
  36. ratio = 0.5
  37. request = 100
  38. [db.cloud]
  39. addr = "172.16.33.205:3306"
  40. dsn = "account:wx2U1MwXRyWEuURw@tcp(172.16.33.205:3306)/member_app1?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  41. active = 5
  42. idle = 2
  43. queryTimeout = "1s"
  44. execTimeout = "2s"
  45. tranTimeout = "2s"
  46. [db.cloud.breaker]
  47. window = "3s"
  48. sleep = "100ms"
  49. bucket = 10
  50. ratio = 0.5
  51. request = 100
  52. [memcache]
  53. name = "passport-game-cloud-job"
  54. proto = "tcp"
  55. addr = "172.16.33.54:21211"
  56. idle = 5
  57. active = 10
  58. dialTimeout = "1s"
  59. readTimeout = "1s"
  60. writeTimeout = "1s"
  61. idleTimeout = "10s"
  62. expire = "10h"
  63. [group]
  64. [group.binLog]
  65. size = 200
  66. num = 32
  67. ticker = "1s"
  68. chan = 1024
  69. [group.encryptTrans]
  70. size = 200
  71. num = 32
  72. ticker = "1s"
  73. chan = 1024
  74. [databus]
  75. [databus.binLogSub]
  76. key = "0QEO9F8JuuIxZzNDvklH"
  77. secret = "0QEO9F8JuuIxZzNDvklI"
  78. group = "PassportGame-UGC-S"
  79. topic = "PassportGame-T"
  80. action = "sub"
  81. offset = "old"
  82. buffer = 2048
  83. name = "passport-game-cloud-job/databus"
  84. proto = "tcp"
  85. addr = "172.16.33.158:6205"
  86. idle = 1
  87. active = 1
  88. dialTimeout = "1s"
  89. readTimeout = "60s"
  90. writeTimeout = "1s"
  91. idleTimeout = "10s"
  92. [databus.encryptTransSub]
  93. key = "0QEO9F8JuuIxZzNDvklH"
  94. secret = "0QEO9F8JuuIxZzNDvklI"
  95. group = "PassportGameTrans-ENCRYPT-S"
  96. topic = "PassportGameTrans-T"
  97. action = "sub"
  98. offset = "old"
  99. buffer = 2048
  100. name = "passport-game-cloud-job/databus"
  101. proto = "tcp"
  102. addr = "172.16.33.158:6205"
  103. idle = 1
  104. active = 1
  105. dialTimeout = "1s"
  106. readTimeout = "60s"
  107. writeTimeout = "1s"
  108. idleTimeout = "10s"