Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same tcp_client_port and tcp_server_port in case of >2 emqx nodes #1

Open
edoardesd opened this issue Nov 8, 2019 · 2 comments
Open

Comments

@edoardesd
Copy link

rpc.tcp_client_port and rpc.tcp_server_port remain the same when more than 2 emqx nodes are created. This arises problems when multiple nodes run concurrently (i.e., the 3rd, 4th and so on crash due to port conflict).
My workaround is to add PORT_INC also to tcp_client_port and tcp_server_port. I don't know if this can cause some problem in RPC

@terry-xiaoyu
Copy link
Owner

Hi, I can't find a way to configure more than 2 emqx nodes on my local PC. This is because you have to set rpc.tcp_client_port of node A to the same value as rpc.tcp_server_port of node B.

We've forked gen_rpc at https://github.com/emqx/gen_rpc, but we have no chance to make an improvement on this problem.

@16871560
Copy link

cd emqx2

EMQX_NODE__NAME='emqx2@127.0.0.1'
EMQX_STATSD__SERVER='127.0.0.1:8124'
EMQX_LISTENERS__TCP__DEFAULT__BIND='0.0.0.0:1882'
EMQX_LISTENERS__SSL__DEFAULT__BIND='0.0.0.0:8882'
EMQX_LISTENERS__WS__DEFAULT__BIND='0.0.0.0:8082'
EMQX_LISTENERS__WSS__DEFAULT__BIND='0.0.0.0:8085'
EMQX_DASHBOARD__LISTENERS__HTTP__BIND='0.0.0.0:18082'
./bin/emqx console.

but I can't find /bin/emqx under emqx2 directory , I wanna run 2 isolate instances on same server with different port , could you tell me how ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants