[ISSUE #3949] Add deploy guide

This commit is contained in:
zhouxiang
2022-04-29 15:36:54 +08:00
parent 86284b4e1e
commit 2a53918817
2 changed files with 35 additions and 0 deletions
+3
View File
@@ -33,6 +33,9 @@
- [Cluster Deployment](dledger/deploy_guide.md)introduce how to deploy Dledger in cluster.
- [GRPC Proxy Deployment](proxy/deploy_guide.md)
Introduce how to deploy gRPC proxy (both `Local` mode and `Cluster` mode).
### 5. Operation and maintenance management
- [Operation](operation.md)introduce RocketMQ's deployment modes that including single-master mode, multi-master mode, multi-master multi-slave mode and so on, as well as the usage of operation tool mqadmin.
+32
View File
@@ -0,0 +1,32 @@
# RocketMQ Proxy Deployment Guide
## Overview
RocketMQ Proxy supports two deployment modes, `Local` mode and `Cluster` mode.
With `Local` mode, `Proxy` deployed with `Broker` in the same process with inter-process communication.
While `Cluster` mode, `Proxy` is a single cluster who communicate `Broker` with remote procedure call. In this way, `Proxy` acts as a stateless computing components while `Broker` is a stateful components with local storage. This form of deployment makes RocketMQ an architecture of separation of computing and storage.
## Configuration
The configuration applies to both the `Cluster` mode and `Local` mode, whose default path is distribution/conf/rmq-proxy.json directory.
## `Cluster` mode
* Set configuration field `nameSrvAddr`.
* Set configuration field `proxyMode` to `cluster` (case insensitive).
Run the command below.
```shell
nohup sh mqproxy &
```
The command will only run `Proxy` itself. It requires `Namesrv` and `Broker` components running.
## `Local` mode
* Set configuration field `nameSrvAddr`.
* Set configuration field `proxyMode` to `local` (case insensitive).
Run the command below.
```shell
nohup sh mqproxy &
```
The command will not only run `Proxy`, but also run `Broker`. It requires `Namesrv` only and there's no need for extra `Broker`.