I run contrail in a 3 machines: 1 control node (all control functions,
openstack, opencontrail, analysis...) + 2 compute node. we build about
50 virtual networks inside it.
a single contrail-api process performance is not enough, After start
contrail-api for about 10 minutes, contrail-api process always runs at
almost 100% cpu usage:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND
21354 root 20 0 3445484 2.754g 6688 R 97.0 8.8
904:45.28 contrail-api
I check the contrail-api-0-stdout.log, most request need 100ms to
process, so the thought of contrail-api drop down to 10 req/s:
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/instance-ip/a4e9e1de-82bc-4b1b-b6f9-de9ca53ae03f?exclude_back_refs=True&exclude_childre
n=True HTTP/1.1" 200 1537 0.098818
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/virtual-machine/2d884c8c-9274-4488-a8d2-a2f42a209c1f?exclude_back_refs=True&exclude_chi
ldren=True HTTP/1.1" 200 1052 0.103258
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/service-instance/cbc4122b-77dd-4748-97d0-17569c1adc5c?exclude_back_refs=True&exclude_ch
ildren=True HTTP/1.1" 200 1431 0.112101
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/service-instance/cbc4122b-77dd-4748-97d0-17569c1adc5c?fields=logical_router_back_refs
H
TTP/1.1" 200 1431 0.092717
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/virtual-machine-interfaces?count=False&parent_id=4347dd92-f08b-4d37-bccc-98eb2fd3ca1c&d
etail=True&back_ref_id=4347dd92-f08b-4d37-bccc-98eb2fd3ca1c&fields=logical_router_back_refs%2Cinstance_ip_back_refs%2Cfloating_ip
_back_refs HTTP/1.1" 200 4369 0.088587
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/virtual-network/9ab3d427-ad49-4f58-a600-c007632ba6bb?exclude_back_refs=True&exclude_chi
ldren=True HTTP/1.1" 200 1750 0.086206
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/virtual-machine/4347dd92-f08b-4d37-bccc-98eb2fd3ca1c?exclude_back_refs=True&exclude_chi
ldren=True HTTP/1.1" 200 1054 0.092348
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/service-instance/45466c69-96cd-40a4-bd0e-99763058f942?exclude_back_refs=True&exclude_ch
ildren=True HTTP/1.1" 200 1346 0.087249
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/service-instance/45466c69-96cd-40a4-bd0e-99763058f942?fields=logical_router_back_refs
H
TTP/1.1" 200 1346 0.088960
127.0.0.1 - - [2015-04-21 21:38:48] "GET
/virtual-network/4a4eef52-a2e3-4660-96e6-e628f4525750?exclude_back_refs=True&exclude_chi
ldren=True HTTP/1.1" 200 1752 0.087439
127.0.0.1 - - [2015-04-21 21:38:49] "GET
/virtual-machine/4347dd92-f08b-4d37-bccc-98eb2fd3ca1c?exclude_back_refs=True&exclude_chi
ldren=True HTTP/1.1" 200 1054 0.075231
127.0.0.1 - - [2015-04-21 21:38:49] "GET
/service-instance/45466c69-96cd-40a4-bd0e-99763058f942?exclude_back_refs=True&exclude_ch
ildren=True HTTP/1.1" 200 1346 0.074864
127.0.0.1 - - [2015-04-21 21:38:49] "GET
/service-instance/45466c69-96cd-40a4-bd0e-99763058f942?fields=logical_router_back_refs
H
TTP/1.1" 200 1346 0.074885
在 2015年04月22日 01:36, Harshad Nakil 写道:
There is support coming for multiple API server workers in next release. That
is the only way to run multiple API servers on same machine. If you manually
start multiple processes it may cause undesirable side effects.
Regards
-Harshad
On Apr 21, 2015, at 9:25 AM, Pedro Marques <[email protected]> wrote:
On Apr 21, 2015, at 5:18 AM, 温曙光 <[email protected]> wrote:
Hi all:
Can I run multiple contrail-api processes on the same machine?
Yes.
For ZooKeeper, each contrail-api instance using a directory with worker id
appended, so i think it's safe for both of them to access Zookeeper.
For RabbitMQ, it use similar to seperate the queue, and it's safe too.
What happen to cassandra if two contrail-api processes share the same
keyspace?
They all use the same keyspace (across machines).
What happen when both contrail-api processes update the same object?
The answer is independent on whether they run in the same machine or not.
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org