[GH-ISSUE #415] long instance loading time (~2 minutes) #258

Open
opened 2026-02-27 15:57:59 +03:00 by kerem · 3 comments
Owner

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)?

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)?
Author
Owner

@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.

<!-- gh-comment-id:799404375 --> @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.
Author
Owner

@vzwa commented on GitHub (Mar 16, 2021):

Thanks for the answer, may I ask how to do this?

<!-- gh-comment-id:800257500 --> @vzwa commented on GitHub (Mar 16, 2021): Thanks for the answer, may I ask how to do this?
Author
Owner

@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 migrate
then 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?

<!-- gh-comment-id:800383008 --> @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 migrate` then 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?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#258
No description provided.