updates/removes examples

This commit is contained in:
Alvaro Videla 2014-03-27 16:22:13 +01:00
parent a3dd052cc3
commit 98e3a870ba
6 changed files with 1 additions and 44 deletions

View File

@ -5,4 +5,4 @@ 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
$CTL set_policy rkey-shard "^rkey\." '{"sharded": true, "shards-per-node": 2, "routing-key": "1234"}'
$CTL set_policy rkey-shard "^rkey\." '{"shards-per-node": 2, "routing-key": "1234"}'

View File

@ -1,6 +0,0 @@
#!/bin/sh
CTL=$1
$CTL set_parameter sharding routing-key '"4321"'
$CTL set_parameter sharding-definition rkey2 '{"sharded": true, "shards-per-node": 2}'
$CTL set_policy rkey2-shard "^rkey2\." '{"sharding-definition": "rkey2"}'

View File

@ -1,11 +0,0 @@
#!/bin/sh
CTL=$1
curl -i -u guest:guest -H "content-type:application/json" \
-XPUT -d'{"type":"x-consistent-hash","durable":true}' \
http://localhost:15672/api/exchanges/%2f/sharding.test
$CTL set_parameter sharding-definition spn_test '{"sharded": true, "routing-key": "1234"}'
$CTL set_parameter sharding shards-per-node "3"
$CTL set_policy spn_test "^sharding\." '{"sharding-definition": "spn_test"}'
$CTL clear_parameter sharding shards-per-node

View File

@ -1,5 +0,0 @@
#!/bin/sh
CTL=$1
$CTL set_parameter sharding-definition my_shard '{"sharded": true, "shards-per-node": 4}'
$CTL set_policy my_shard "^shard\." '{"sharding-definition": "my_shard"}'

View File

@ -1,9 +0,0 @@
#!/bin/sh
CTL=$1
curl -i -u guest:guest -H "content-type:application/json" \
-XPUT -d'{"type":"x-consistent-hash","durable":true}' \
http://localhost:15672/api/exchanges/%2f/three.ex
$CTL set_parameter sharding-definition 3_shard '{"sharded": true, "shards-per-node": 3}'
$CTL set_policy 3_shard "^three\." '{"sharding-definition": "3_shard"}'

View File

@ -1,12 +0,0 @@
#!/bin/sh
CTL=$1
curl -i -u guest:guest -H "content-type:application/json" \
-XPUT -d'{"type":"x-consistent-hash","durable":true}' \
http://localhost:15672/api/exchanges/%2f/three.ex
$CTL set_parameter sharding-definition 3_shard '{"sharded": true, "shards-per-node": 3}'
$CTL set_policy 3_shard "^three\." '{"sharding-definition": "3_shard"}'
$CTL set_parameter sharding-definition 3_shard '{"sharded": true, "shards-per-node": 5}'
$CTL set_policy 3_shard "^three\." '{"sharding-definition": "3_shard"}'