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