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:
@@ -253,22 +253,31 @@ rabbit_virtual_host=cell1_vhost</programlisting></para>
|
||||
rabbit://<username>:<password>@<hostname>:<port>/<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>
|
||||
|
||||
Reference in New Issue
Block a user