RocketMQ Proxy supports two deployment modes: Local
and Cluster
.
The configuration file applies to both Cluster
and Local
mode, whose default path is
distribution/conf/rmq-proxy.json.
- Set configuration field
nameSrvAddr
. - Set configuration field
proxyMode
tocluster
(case insensitive).
Run the command below.
nohup sh mqproxy &
The command will only launch the Proxy
component itself. It assumes that Namesrv
nodes are already running at the address specified nameSrvAddr
, and broker nodes, registering themselves with nameSrvAddr
, are running too.
- Set configuration field
nameSrvAddr
. - Set configuration field
proxyMode
tolocal
(case insensitive).
Run the command below.
nohup sh mqproxy &
The previous command will launch the Proxy
, with Broker
in the same process. It assumes Namesrv
nodes are running at the address specified by nameSrvAddr
.