nsqio / nsq

A realtime distributed messaging platform
https://nsq.io
MIT License
24.72k stars 2.89k forks source link

NSQ remote hosting issue #1490

Open iqra-shams opened 2 weeks ago

iqra-shams commented 2 weeks ago

I want to remotely host the NSQ on fly.io. Could not find any guide or reference for hosting NSQ remotely with each app running on separate machine.

I have created 3 different apps for NSQD , NSQLOOKUPD and NQSADMIN. But the NSQD expects the NSQLOOKUPD app to also be running on the same machine. Specifying the --lookupd-tcp-address arg as domain_name:port gives error "port is missing".

Here is my Dockerfile for nsqd https://gist.github.com/iqra-shams/213ecbd45f648f3cf618538bbaedcce3

When i load LOOKUPD_TCP_ADDRESS value from the ENV in CMD, it gives the missing port error although i had provided the port in LOOKUPD_TCP_ADDRESS value.

When i hard code the LOOKUPD_TCP_ADDRESS value in CMD with port 80 it gives the error that response body size exceed the limit .

When i increase the response body size it gives memory run out error

Kindly provide the guide for NSQ remote hosting