mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 11:16:47 +00:00
With threaded workers a request waiting on a stuck host holds one thread, but each new request to that host (a VM list's poll every 5 s, an F5) held another until the threads ran out. In a process at most two web requests now use one host at a time, counted by its name whatever the login. Another waits up to the connect timeout (5 s) for one of them to end, and is then refused as the host not answering: VM lists show the host as not reachable, pages show the connection error. A request counts on the host it connected to last, until it ends, so one that reads several hosts in turn holds none it has left. Threads outside a request (the job worker's, the consoles') are not counted: a job holds its host for as long as it runs. |
||
|---|---|---|
| .. | ||
| tests | ||
| __init__.py | ||
| connection.py | ||
| create.py | ||
| hostdetails.py | ||
| instance.py | ||
| interface.py | ||
| libvirt-ssh | ||
| network.py | ||
| nodedevs.py | ||
| nwfilters.py | ||
| rwlock.py | ||
| storage.py | ||
| util.py | ||
| virtsecrets.py | ||