1
0

config.conf 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <tars>
  2. <application>
  3. <client>
  4. #tarsregistry locator
  5. locator = tars.tarsregistry.QueryObj@tcp -h 127.0.0.1 -p 17890
  6. #max invoke timeout
  7. sync-invoke-timeout = 5000
  8. #refresh endpoint interval
  9. refresh-endpoint-interval = 10000
  10. #stat obj
  11. stat = tars.tarsstat.StatObj
  12. #max send queue length limit
  13. sendqueuelimit = 100000
  14. #async queue length limit
  15. asyncqueuecap = 100000
  16. #async callback thread num
  17. asyncthread = 3
  18. #net thread
  19. netthread = 1
  20. #merge net and sync thread
  21. mergenetasync = 0
  22. #module name
  23. modulename = TestApp.BServer
  24. </client>
  25. <server>
  26. #not cout
  27. closecout = 0
  28. #app name
  29. app = TestApp
  30. #server name
  31. server = BServer
  32. #path
  33. basepath = ./
  34. datapath = ./
  35. #log path
  36. logpath = ./
  37. #merge net and imp thread
  38. mergenetimp = 0
  39. #opencoroutine
  40. opencoroutine = 1
  41. #local ip, for tarsnode
  42. # local = tcp -h 127.0.0.1 -p 15001 -t 10000
  43. #tarsnode
  44. # node = ServerObj@tcp -h 127.0.0.1 -p 2345 -t 10000
  45. #config obj
  46. # config = tars.tarsconfig.ConfigObj
  47. #notify obj
  48. # notify = tars.tarsconfig.NotifyObj
  49. #log obj
  50. # log = tars.tarslog.LogObj
  51. <BAdapter>
  52. #ip:port:timeout
  53. endpoint = tcp -h 127.0.0.1 -p 9200 -t 10000
  54. #allow ip
  55. allow =
  56. #max connection num
  57. maxconns = 4096
  58. #imp thread num
  59. threads = 5
  60. #servant
  61. servant = TestApp.BServer.BServantObj
  62. #queue capacity
  63. queuecap = 1000000
  64. #tars protocol
  65. protocol = tars
  66. </BAdapter>
  67. </server>
  68. </application>
  69. </tars>