nsqd.cfg.example 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. ## log verbosity level: debug, info, warn, error, or fatal
  2. log_level = "info"
  3. ## unique identifier (int) for this worker (will default to a hash of hostname)
  4. # id = 5150
  5. ## <addr>:<port> to listen on for TCP clients
  6. tcp_address = "0.0.0.0:4150"
  7. ## <addr>:<port> to listen on for HTTP clients
  8. http_address = "0.0.0.0:4151"
  9. ## <addr>:<port> to listen on for HTTPS clients
  10. # https_address = "0.0.0.0:4152"
  11. ## address that will be registered with lookupd (defaults to the OS hostname)
  12. # broadcast_address = ""
  13. ## cluster of nsqlookupd TCP addresses
  14. nsqlookupd_tcp_addresses = [
  15. "127.0.0.1:4160"
  16. ]
  17. ## duration to wait before HTTP client connection timeout
  18. http_client_connect_timeout = "2s"
  19. ## duration to wait before HTTP client request timeout
  20. http_client_request_timeout = "5s"
  21. ## path to store disk-backed messages
  22. # data_path = "/var/lib/nsq"
  23. ## number of messages to keep in memory (per topic/channel)
  24. mem_queue_size = 10000
  25. ## number of bytes per diskqueue file before rolling
  26. max_bytes_per_file = 104857600
  27. ## number of messages per diskqueue fsync
  28. sync_every = 2500
  29. ## duration of time per diskqueue fsync (time.Duration)
  30. sync_timeout = "2s"
  31. ## duration to wait before auto-requeing a message
  32. msg_timeout = "60s"
  33. ## maximum duration before a message will timeout
  34. max_msg_timeout = "15m"
  35. ## maximum size of a single message in bytes
  36. max_msg_size = 1024768
  37. ## maximum requeuing timeout for a message
  38. max_req_timeout = "1h"
  39. ## maximum size of a single command body
  40. max_body_size = 5123840
  41. ## maximum client configurable duration of time between client heartbeats
  42. max_heartbeat_interval = "60s"
  43. ## maximum RDY count for a client
  44. max_rdy_count = 2500
  45. ## maximum client configurable size (in bytes) for a client output buffer
  46. max_output_buffer_size = 65536
  47. ## maximum client configurable duration of time between flushing to a client (time.Duration)
  48. max_output_buffer_timeout = "1s"
  49. ## UDP <addr>:<port> of a statsd daemon for pushing stats
  50. # statsd_address = "127.0.0.1:8125"
  51. ## prefix used for keys sent to statsd (%s for host replacement)
  52. statsd_prefix = "nsq.%s"
  53. ## duration between pushing to statsd (time.Duration)
  54. statsd_interval = "60s"
  55. ## toggle sending memory and GC stats to statsd
  56. statsd_mem_stats = true
  57. ## the size in bytes of statsd UDP packets
  58. # statsd_udp_packet_size = 508
  59. ## message processing time percentiles to keep track of (float)
  60. e2e_processing_latency_percentiles = [
  61. 1.0,
  62. 0.99,
  63. 0.95
  64. ]
  65. ## calculate end to end latency quantiles for this duration of time (time.Duration)
  66. e2e_processing_latency_window_time = "10m"
  67. ## path to certificate file
  68. tls_cert = ""
  69. ## path to private key file
  70. tls_key = ""
  71. ## set policy on client certificate (require - client must provide certificate,
  72. ## require-verify - client must provide verifiable signed certificate)
  73. # tls_client_auth_policy = "require-verify"
  74. ## set custom root Certificate Authority
  75. # tls_root_ca_file = ""
  76. ## require client TLS upgrades
  77. tls_required = false
  78. ## minimum TLS version ("ssl3.0", "tls1.0," "tls1.1", "tls1.2")
  79. tls_min_version = ""
  80. ## enable deflate feature negotiation (client compression)
  81. deflate = true
  82. ## max deflate compression level a client can negotiate (> values == > nsqd CPU usage)
  83. max_deflate_level = 6
  84. ## enable snappy feature negotiation (client compression)
  85. snappy = true