apache / apache/cloudstack

GET certain paths like systemVM and networkofferings are very very slow

Đang mở
#12,740 6 bình luận 0 reaction 1 người được giao Được @shwstppr nhận Xem trên GitHub
status:needs-reproducing
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.4k
Merge trung bình
6 ngày 19 giờ
Pull request đã merge (30 ngày)
32

Mô tả

### problem

**Background**
We have just recently deployed our first production Cloudstack environment.
At the moment we have 2 zones 1 pod 1 cluster, with 4 hosts each inside.
In total we have created 4 extra networkofferings over the default ones, 5 shared networks and 5 instances.
And we have 4 systemvm's.
So as you can understand its still a very small deployment still.

Our management server is a VM.
Running on a oVirt cluster.
VM is 4 cores and 8GB ram.
MariaDB and CS Mangement server are located on the same VM.

**Issue**
When we try to GET certain paths either if its using the webui or cloudmonkey script the load times are very long and our MariaDB goes to 100% for a while on one core.
Path where the issue is seen are:
GET systemVMs ~45 seconds
GET networkofferings ~50seconds

Image

Doing following select queries towards the MariaDB the response back is instant and no load seen on the DB.
```
select * from network_offerings;
select * from console_proxy;
select * from vm_instance;
select * from secondary_storage_vm;
```

**More Background**
During the setup we accidently imported each ldap user entry as a domain resulted in ~52k now inactive domains. I believe that we started seeing this issue after that was done. We have deleted each domain but they still show up when doing a select * from domain but as inactive.
I also remember that we had alot of systemvm entries during the first cluster because cloudstack had some network issue and it created alot of systemvm entries. But they have also been deleted.

I have enabled expunged.resources.purge.enabled
And i have cleaned up our event and alert tables.

### versions

ACS 4.22

### The steps to reproduce the bug

Not been able to reproduce the issue.

### What to do about it?

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.