sapcc / manila

Shared filesystem management project for OpenStack.
http://openstack.org
Apache License 2.0
0 stars 2 forks source link

improve share-server-list performance #158

Closed chuan137 closed 6 months ago

chuan137 commented 6 months ago

The API takes long to finish, because share network is fetched for every share server. We make a single query to fetch all share networks before building the share server list.

This work is collaborative between @chuan137 and @Carthaca

Change-Id: Ia08a9ba8894a51dd20234cb0c7fdeadd5655ca7e

chuan137 commented 6 months ago

test in na-us-3 shows that the improvement is very good

>>> exec(open("debug-manila.py").read())
>>> ss = shareserver(ctx)
Time taken:  0:00:03.971640
>>> ss[0].share_network_name
'neo-na-us-3-factoryus2-st-ase-a01'