mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-27 00:15:56 +03:00
[GH-ISSUE #415] long instance loading time (~2 minutes) #258
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#258
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?
Originally created by @vzwa on GitHub (Mar 15, 2021).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/415
Hello all,
there is the following problem:
I have ~90 Computes running over SSH, so far everything works fine, but when I switch to "Instances" the load time is at about 2 minutes.
WebVirtCloud runs on a relatively fast machine and my internet connection is far from being busy.
Is it possible to reload the Instances in the background while still seeing the previous state (caching / daemonize)?
@catborise commented on GitHub (Mar 15, 2021):
i also have some response problems and i switched from sqlite to mysql. it has solved some of my problems. sqlite is suitable for a few host and instances (~10 host, ~150 instances)
may be you should switch it.
@vzwa commented on GitHub (Mar 16, 2021):
Thanks for the answer, may I ask how to do this?
@vzwa commented on GitHub (Mar 16, 2021):
I managed to switch to mysql, here is how i did it:
You need a working mysql and change the following points in webvirtcloud/settings.py
DATABASES = { "default": { "ENGINE": "django.db.backends.mysql", "NAME": os.path.join("your_db_name"), "USER": 'user', 'PASSWORD': 'password', 'HOST': '127.0.0.1', 'PORT': '3306', } }then you use the managa.py to migrate to mysql
python manage.py migratethen restart services or reboot
Unfortunately, that was not the solution. The loading times are still just as long. I suspect that it is due to the many connections (SSH); Is it possible to cache the previous instances and reload in the background / only reload with the press of a button?