GitXplorerGitXplorer
h

nsqd-discovery

public
26 stars
14 forks
2 issues

Commits

List of commits on branch master.
Unverified
79c8b2a298beefd2b3ee31264647b9e8f4c9f774

add --check-interval (#9)

committed 7 years ago
Unverified
07c26ed95b73fef4736c906752f6f915b608ed3c

add support for http configuration (for nsqadmin) (#8)

committed 7 years ago
Unverified
d8fef261b213749ba0ddf2b9b7c9dab6babdb63d

Create MIT-LICENSE

hharlow committed 7 years ago
Unverified
a0b0c1953d33bf4383aa1ed2f139f7442c270c34

Fix link to "Read more about" article. (#6)

ttamsky committed 7 years ago
Unverified
0cae0c90f6b4d72267d6fc05d3d4cea5532fc8b0

Merge pull request #4 from ernoaapa/dont-fail-on-missing-dns

hharlow committed 9 years ago
Unverified
b60c7fddcb65e3dab17dab75e2913c918941c7d1

Don't fail at startup if no DNS record found

eernoaapa committed 9 years ago

README

The README file for this repository.

DNS config for NSQD

Dynamically configure nsqd with IP addresses from DNS A-record. Read more about NSQ dynamic service discovery with DNS records.

Set up

  1. Create a private zone in AWS Route 53
  2. Create a Record Set with an address
  3. Add an A record w/ a list of IP's for nsqlookupd

Note: Step 3 should be automated. When nsqlookupd boots the IP should be automatcially added to the above A record.

Command Line Options

-config-http-address=: <addr>:<port> of the HTTP config endpoint
-lookupd-dns-address=: <addr> of DNS A record that provides nsqlookupd IP Addresses
-lookupd-tcp-port=4160: <port> of nsqlookupd TCP address

Run

docker run --rm -it harlow/nsqd-discovery \
  --lookupd-dns-address $LOOKUPD_DNS_ADDRESS \
  --config-http-address $CONFIG_HTTP_ADDRESS

Development

After verifying the desired functionality build the docker image in preparation for deployment.

The image is around ~5MB. Thanks to this post from Travis Reeder.

make build

Deploy

make deploy