file.conf 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright 1999-2019 Seata.io Group.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. transport {
  15. # tcp, unix-domain-socket
  16. type = "TCP"
  17. #NIO, NATIVE
  18. server = "NIO"
  19. #enable heartbeat
  20. heartbeat = true
  21. # the tm client batch send request enable
  22. enableTmClientBatchSendRequest = true
  23. # the rm client batch send request enable
  24. enableRmClientBatchSendRequest = true
  25. #thread factory for netty
  26. threadFactory {
  27. bossThreadPrefix = "NettyBoss"
  28. workerThreadPrefix = "NettyServerNIOWorker"
  29. serverExecutorThread-prefix = "NettyServerBizHandler"
  30. shareBossWorker = false
  31. clientSelectorThreadPrefix = "NettyClientSelector"
  32. clientSelectorThreadSize = 1
  33. clientWorkerThreadPrefix = "NettyClientWorkerThread"
  34. # netty boss thread size
  35. bossThreadSize = 1
  36. #auto default pin or 8
  37. workerThreadSize = "default"
  38. }
  39. shutdown {
  40. # when destroy server, wait seconds
  41. wait = 3
  42. }
  43. serialization = "seata"
  44. compressor = "none"
  45. }
  46. service {
  47. #transaction service group mapping
  48. vgroupMapping.default_tx_group = "default"
  49. #only support when registry.type=file, please don't set multiple addresses
  50. default.grouplist = "127.0.0.1:8091"
  51. #disable seata
  52. disableGlobalTransaction = false
  53. }
  54. client {
  55. rm {
  56. reportSuccessEnable = false
  57. sagaBranchRegisterEnable = false
  58. sagaJsonParser = jackson
  59. sagaRetryPersistModeUpdate = false
  60. sagaCompensatePersistModeUpdate = false
  61. }
  62. loadBalance {
  63. type = "RandomLoadBalance"
  64. virtualNodes = 10
  65. }
  66. }