Update README.md

This commit is contained in:
Jin 2022-10-26 17:13:21 +07:00 committed by GitHub
parent aaa687ad70
commit e484758545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -158,6 +158,11 @@ policy to shard it:
$CTL set_policy images-shard "^shard.images$" '{"shards-per-node": 2, "routing-key": "1234"}' $CTL set_policy images-shard "^shard.images$" '{"shards-per-node": 2, "routing-key": "1234"}'
``` ```
Note, on Windows, above command will be like this:
```
rabbitmqctl set_policy images-shard "^shard.images$" '{\"shards-per-node\": 2, \"routing-key\": \"1234\"}'
```
This will create `2` sharded queues per node in the cluster, and will This will create `2` sharded queues per node in the cluster, and will
bind those queues using the `"1234"` routing key. bind those queues using the `"1234"` routing key.