<div dir="ltr"><div><font face="garamond, serif">Hi all:</font></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif">    I deploy my OpenStack with VMware driver, one nova-compute connect to VMware deployment, </font></div><div><font face="garamond, serif">    there are about 3000 VMs in VMware deployment. I use mysql. </font><span style="font-family:garamond,serif">The method of InstanceList.get_by_host</span></div><div><span style="font-family:garamond,serif">    rasie rpc timeout error when ComputeManager.init_host() and _sync_power_states periodic task execute.</span></div><div><font face="garamond, serif">    Currently, one nova-compute host map to the whole VMware deployment that maybe contain several clusters</font></div><div><font face="garamond, serif">    in nova VMware driver. </font><span style="font-family:garamond,serif">When InstanceList.get_by_host execute in ComputeManager, it indicate that nova-compute</span></div><div><span style="font-family:garamond,serif">    will execute a rpc call to nova-conducutor, </span><span style="font-family:garamond,serif">nova-conductor will fetch a lots of instances in the whole VMware</span></div><div><span style="font-family:garamond,serif">    deployment in once, in my case , it's 3000 instances. </span><span style="font-family:garamond,serif">The long time SQL query maybe lead to the rpc timeout</span></div><div><span style="font-family:garamond,serif">    from nova-compute to nova-conductor. We only face the issue in VMWare driver.</span></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif"><a href="https://bugs.launchpad.net/nova/+bug/1420662">https://bugs.launchpad.net/nova/+bug/1420662</a></font></div><div><font face="garamond, serif"><a href="https://review.openstack.org/#/c/155676/">https://review.openstack.org/#/c/155676/</a></font></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif">In the patch I split the large rpc request to multiple small rpc requests using pagination mechanism in order to</font></div><div><font face="garamond, serif">fix this issue, but sahid think it looks like a hack and need a real pattern to handle this problem.</font></div><div><font face="garamond, serif"><br></font></div><div><span style="font-family:garamond,serif">If you have other better idea, please let me know.</span><br></div><div><span style="font-family:garamond,serif">Feel free to discuss it. </span><span style="font-family:garamond,serif">Thanks.</span><span style="font-family:garamond,serif"><br></span></div><div><font face="garamond, serif"><br></font></div><div><font face="garamond, serif">Best Regards</font></div></div>