config.conf 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.HelloServer
  24. </client>
  25. <server>
  26. #not cout
  27. closecout = 0
  28. #app name
  29. app = TestApp
  30. #server name
  31. server = HelloServer
  32. #path
  33. basepath = ./
  34. datapath = ./
  35. #log path
  36. logpath = ./
  37. #merge net and imp thread
  38. mergenetimp = 0
  39. netthread=4
  40. #local ip, for tarsnode
  41. # local = tcp -h 127.0.0.1 -p 15001 -t 10000
  42. #tarsnode
  43. # node = ServerObj@tcp -h 127.0.0.1 -p 2345 -t 10000
  44. #config obj
  45. # config = tars.tarsconfig.ConfigObj
  46. #notify obj
  47. # notify = tars.tarsconfig.NotifyObj
  48. #log obj
  49. # log = tars.tarslog.LogObj
  50. <HelloAdapter>
  51. #ip:port:timeout
  52. endpoint = tcp -h 127.0.0.1 -p 8999 -t 10000
  53. #allow ip
  54. allow =
  55. #max connection num
  56. maxconns = 20000
  57. #imp thread num
  58. threads = 5
  59. #servant
  60. servant = TestApp.HelloServer.HelloObj
  61. #queue capacity
  62. queuecap = 1000000
  63. #tars protocol
  64. protocol = tars
  65. </HelloAdapter>
  66. </server>
  67. </application>
  68. </tars>