Following these simple instructions, you can have a functioning NSQ machine or cluster in CoreOS, ready for Development
- Install Vagrant and the provider of your choice
- Clone
https://github.com/coreos/coreos-vagrant
somewhere - Copy
user-data
tocoreos-vagrant
- Add the following port forwards to the Vagrantfile in
coreos-vagrant
config.vm.network "forwarded_port", guest: 4001, host: 4001
config.vm.network "forwarded_port", guest: 4150, host: 4150
config.vm.network "forwarded_port", guest: 4151, host: 4151
config.vm.network "forwarded_port", guest: 4160, host: 4160
config.vm.network "forwarded_port", guest: 4161, host: 4161
- Run
vagrant up
- SSH in to vagrant -
vagrant ssh
- Execute
fleetctl start nsqlookupd*
- Execute
fleetctl start nsqd.service
after nsqlookupd has started
That should be it!
- tcp api on
localhost:4150
- http api on
localhost:4151
- tcp api on
localhost:4160
- http api on
localhost:4161
- http api on
localhost:4001
- nsqlookupd-sidekick.service sets two keys in etcd on discovery -
/nsqlookupd
and/nsqlookupd-http
containing the tcp and http api hostnames. Necessary when using multiple nodes in the CoreOS cluster