Fix cells JSON example

The previous cells JSON example was wrong. This patch
updates it to be the same as that in etc/nova/cells.json
from the nova codebase.

Change-Id: I0d692edd11a5a3921fc7b2f9e463899984277df6
Closes-Bug: 1240800
This commit is contained in:
Tom Fifield
2013-12-20 10:23:58 +08:00
committed by annegentle
parent b339aac910
commit ae06e3b8bc

View File

@@ -253,22 +253,31 @@ rabbit_virtual_host=cell1_vhost</programlisting></para>
rabbit://&lt;username>:&lt;password>@&lt;hostname>:&lt;port>/&lt;virtual_host>
</programlisting>
<para>The scheme may be either 'rabbit' (shown above) or 'qpid'. The following sample shows this optional configuration:</para>
<programlisting language="json">
[{
"name": "Cell1",
"api_url": "http://example.com:8774",
"transport_url": "rabbit://hare:wabbit@rabbit.cell1.example.com/cell1",
"weight_offset": 0.0,
"weight_scale": 1.0,
"is_parent": false
}, {
"name": "Parent",
"api_url": "http://example.com:8774",
"transport_url": "rabbit://hare:wabbit@rabbit.parent.example.com/parent",
"weight_offset": 0.0,
"weight_scale": 1.0,
"is_parent": true
}]
</programlisting>
<programlisting language="json">{
"parent": {
"name": "parent",
"api_url": "http://api.example.com:8774",
"transport_url": "rabbit://rabbit.example.com",
"weight_offset": 0.0,
"weight_scale": 1.0,
"is_parent": true,
},
"cell1": {
"name": "cell1",
"api_url": "http://api.example.com:8774",
"transport_url": "rabbit://rabbit1.example.com",
"weight_offset": 0.0,
"weight_scale": 1.0,
"is_parent": false,
},
"cell2": {
"name": "cell2",
"api_url": "http://api.example.com:8774",
"transport_url": "rabbit://rabbit2.example.com",
"weight_offset": 0.0,
"weight_scale": 1.0,
"is_parent": false,
}
}</programlisting>
</section>
</section>