Hi, all
 
Recently, I find that the  API reponse time of Ussuri is slower than the Stein. Here are some tests I have did:
 
Stein: 
[root@aa ~]# time curl "https://127.0.0.1/xxx/openstack/compute/v2.1/[tenant_id]/host-network-placement?host_aggregate=1"  -H "X-Auth-Token: [token]"  --insecure
{"host-network-placement": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sea": [{"host_aggregate": "1", "networks": []}], "host-network-placement-ovs": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sriov": [{"host_aggregate": "1", "networks": []}]}
real    0m2.880s
user    0m0.080s
sys    0m0.070s
[root@aa ~]# time curl "https://127.0.0.1/xxx/openstack/compute/v2.1/[tenant_id]/host-network-placement?host_aggregate=1"  -H "X-Auth-Token: [token]"  --insecure
{"host-network-placement": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sea": [{"host_aggregate": "1", "networks": []}], "host-network-placement-ovs": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sriov": [{"host_aggregate": "1", "networks": []}]}
real    0m0.485s
user    0m0.079s
sys    0m0.057s
[root@aa ~]# time curl "https://127.0.0.1/xxx/openstack/compute/v2.1/[tenant_id]/host-network-placement?host_aggregate=1"  -H "X-Auth-Token: [token]"  --insecure
{"host-network-placement": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sea": [{"host_aggregate": "1", "networks": []}], "host-network-placement-ovs": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sriov": [{"host_aggregate": "1", "networks": []}]}
real    0m0.460s
user    0m0.079s
sys    0m0.058s
 
 
Ussuri :
[root@aa ~]# time curl "https://127.0.0.1/xx/openstack/compute/v2.1/[tenant_id]/host-network-placement?host_aggregate=1"   -H "x-auth-token: [token]"   --insecure
{"host-network-placement": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sea": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sriov": [{"host_aggregate": "1", "networks": []}], "host-network-placement-ovs": [{"host_aggregate": "1", "networks": []}]}
real    0m3.705s
user    0m0.012s
sys     0m0.005s
[root@aa ~]# time curl "https://127.0.0.1/xx/openstack/compute/v2.1/[tenant_id]/host-network-placement?host_aggregate=1"   -H "x-auth-token: [token]"   --insecure
{"host-network-placement": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sea": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sriov": [{"host_aggregate": "1", "networks": []}], "host-network-placement-ovs": [{"host_aggregate": "1", "networks": []}]}
real    0m2.941s
user    0m0.013s
sys     0m0.005s
[root@aa ~]# time curl "https://127.0.0.1/xx/openstack/compute/v2.1/[tenant_id]/host-network-placement?host_aggregate=1"   -H "x-auth-token: [token]"   --insecure
{"host-network-placement": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sea": [{"host_aggregate": "1", "networks": []}], "host-network-placement-sriov": [{"host_aggregate": "1", "networks": []}], "host-network-placement-ovs": [{"host_aggregate": "1", "networks": []}]}
real    0m2.726s
user    0m0.015s
sys     0m0.006s
 
For the S version, the API response time are: 2.880s, 0.485s, 0.460s
For the U version, the API response time are: 3.705s, 2.941s, 2.726s
 
 
I have some questions about the results:
1. Why the U API response time is slower than the S?
2. For the U version or the S version, why the three API response time are less and less(2.880s > 0.485s > 0.460s, 3.705s > 2.941s > 2.726s) ?
Is there any cache for API?
 
 
Please feel free to give me some comments!
 
 
Thanks
Zhi Chang