Skip to content

Instantly share code, notes, and snippets.

@wppurking
Created April 9, 2018 04:59
Show Gist options
  • Save wppurking/27c61db4f3490ded6e5db72fa28d7603 to your computer and use it in GitHub Desktop.
Save wppurking/27c61db4f3490ded6e5db72fa28d7603 to your computer and use it in GitHub Desktop.
nsq-ruby producer send message will lose
# statsd & graphite
sg: docker run --name graphite --rm -p 80:80 -p 2003-2004:2003-2004 -p 2023-2024:2023-2024 -p 8125:8125/udp -p 8126:8126 hopsoft/graphite-statsd
# nsqdlookupd http:4161, tcp:4160
nsqdlookupd: nsqlookupd
# nsqd http:4151, https: 4152, tcp: 4150
nsqd: nsqd -lookupd-tcp-address=127.0.0.1:4160 -mem-queue-size=0 -broadcast-address=127.0.0.1 -statsd-address="127.0.0.1:8125" -statsd-interval="10s"
nsqd2: nsqd -lookupd-tcp-address=127.0.0.1:4160 -mem-queue-size=0 -tcp-address=0.0.0.0:4250 -http-address=0.0.0.0:4251 -https-address=0.0.0.0:4252 -data-path=./nsqd2 -broadcast-address=127.0.0.1 -statsd-address="127.0.0.1:8125" -statsd-interval="10s"
# nsqadmin http: 4171
nsqadmin: nsqadmin -lookupd-http-address="127.0.0.1:4161" -graphite-url="http://127.0.0.1:80"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment