gOnt

Untitled

May 13th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. ########################################################
  2.  
  3.  
  4. # Server socket backlog size
  5. # Default: 50
  6. # See http://www.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/023/2333/2333s2.html
  7. ServerBindSocketBacklog = 50
  8.  
  9. # IO execution mode
  10. # Default: POOLED(<cpu_core_count>)
  11. # - POOLED All IO operations are executed in a special thread IO execution pool.
  12. # - FIXED All IO operations execution is spread across fixed number of treads
  13. #
  14. IOExecutionMode = POOLED
  15.  
  16. # Num of IO execution threads.
  17. # Default: -1 - Num of CPU cores.
  18. #
  19. IOExecutionThreadNum = -1
  20.  
  21. # Income packet execution mode.
  22. # Default: DIRECT
  23. # - DIRECT - The worst. Income packets are directly executed after receiving and decrypting. As packets here implemented terribly, it not only increases latency, but decrease overall performance significant.
  24. # - OFFLOAD - Offloads execution to a IOExecutor(when IOExecutionMode set to POOLED) or a default ThreadPoolManager. Good option with POOLED IOExec mode. Increases throughput but also may increase context switch count.
  25. # - QUEUED - Same as OFFLOAD but packets are queued before execution. May decrease latency, may not.
  26. #
  27. PacketExecMode = QUEUED
  28.  
  29.  
  30. # Client socket options.
  31. # Default: SO_SNDBUF(4096);SO_RCVBUF(4096);TCP_NODELAY(true)
  32. # - SO_SNDBUF - the size of the socket's send buffer. On most systems this the size of a kernel buffer so be careful! See RFC1323.
  33. # - SO_RCVBUF - the size of the socket's receive buffer. On most systems this the size of a kernel buffer so be careful! See RFC1323.
  34. # - TCP_NODELAY - The Nagle algorithm. Enabling it increases throughput but also increases latency. See RFC1122.
  35. ClientSocketOptions = SO_SNDBUF(8192);SO_RCVBUF(8192);TCP_NODELAY(true)
  36.  
  37.  
  38. # Server socket options.
  39. # Default: SO_REUSEADDR(false);SO_RCVBUF(4096)
  40. # - SO_REUSEADDR - if true, prevents socket from usage until all opened sockets are really closed. See RFC793.
  41. ServerSocketOptions = SO_REUSEADDR(true);SO_RCVBUF(4096)
  42.  
  43. # Size of buffer for income packets in bytes.
  44. # Default: 32768
  45. #
  46. RecvBufferSize = 32768
  47.  
  48. # Type of buffer for income packets. DIRECT or HEAP
  49. # Default: DIRECT
  50. #
  51. RecvBufferType = DIRECT
  52.  
  53. # Size of buffer for outcome packets in bytes.
  54. # Default: 65536
  55. #
  56. SendBufferSize = 65536
  57.  
  58. # Type of buffer for outcome packets. DIRECT or HEAP
  59. # Default: DIRECT
  60. #
  61. SendBufferType = DIRECT
  62.  
  63. # Enables packet logging for teriann hosts. Must be disabled during normal operation.
  64. # Default: false
  65. #
  66. PktDbgEnabled = false
  67.  
  68. # Hosts for logging. Delimiters are ';' or ','
  69. # Example: 127.0.0.1;11.22.33.44;192.168.0.1
  70. #
  71. PktDbgHosts = 127.0.0.1
Add Comment
Please, Sign In to add comment