We are experimenting with Hops parallel processing . We have set up a small test with a hops component calling a python function on the Hops server. It all works fine. Except that the component only seems to send two meshes at a time to the server. This means that only two meshes are being processed in parallel.
We have set the following settings:
For the Hops component:
- we set the URL e.g. “http://172.xx.xx.xxx:5000/meshTest”
- we set the component to “asynchronous”
- we switch off caching
In Grasshopper File > Preferences > Solver
- Added the server URL, e.g. “http://172.xx.xx.xxx:5000”
- Set “Max concurrent requests” to 100
- Tried a few settings for “Child Process Count”, e.g. 1, 10
We we run the server as localhost on the same machine it works, in that case many meshes get sent in parallel. But if we run the server on a different machine, then only two meshes get sent. This suggests it might have something to do with the server setup. But we have not done anything special - we just set up the normal Flask/hops-server as shown in the Hops video.
Do we need to add a gateway, e.g. Gunicorn ?