rabbitmq-server/deps/rabbitmq_sharding/etc/rkey.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
279 B
Bash
Raw Permalink Normal View History

2014-01-10 23:10:28 +08:00
#!/bin/sh
CTL=$1
2014-02-27 04:00:44 +08:00
curl -i -u guest:guest -H "content-type:application/json" \
-XPUT -d'{"type":"x-consistent-hash","durable":true}' \
http://localhost:15672/api/exchanges/%2f/rkey.ex
2014-03-27 23:22:13 +08:00
$CTL set_policy rkey-shard "^rkey\." '{"shards-per-node": 2, "routing-key": "1234"}'