mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-25 23:55:57 +03:00
[PR #388] [MERGED] Persistent Libvirt Connections #643
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/retspen/webvirtmgr/pull/388
Author: @Phist0ne
Created: 8/22/2014
Status: ✅ Merged
Merged: 8/27/2014
Merged by: @retspen
Base:
master← Head:connection-pooling-pr📝 Commits (4)
4a01c78Implemented connection pooling in vrtManager/connection.py:0948c01add new settings and explanation to settings.py and local_settings.py.examplec8f0293remove socket host active check as it leads to weird messages in auth.log (at least for ssh connections). Connection error messages should be enough to determine what went wrong.9aaca9efix pep8📊 Changes
5 files changed (+571 additions, -89 deletions)
View changed files
📝
servers/views.py(+8 -44)📝
vrtManager/connection.py(+297 -45)➕
vrtManager/rwlock.py(+226 -0)📝
webvirtmgr/local/local_settings.py.example(+20 -0)📝
webvirtmgr/settings.py(+20 -0)📄 Description
Implements connection pooling. Only one connection per vm-host per webserver-process is created and managed by a new class "wvmConnectionManager".
Outside of the vrtManager.connection module the old behaviour is preserved.
This is tested with apache2 using mod_wsgi and the Django development server. Nginx was not tested.
The branch https://github.com/myvision-de/webvirtmgr/tree/connection-pooling-debug may be useful when testing this PR with another server.
Commit
c8f0293is optional. It prohibits some further log spamming in auth.log. It may be more practical to evaluate the error code from libvirt to determine if authentication fails or the server is just down.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.