apache / apache/cloudstack

Improvements for bandwidth configuration of network offering

Đang mở
#10,189 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
archive type:new-feature
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ả

##### ISSUE TYPE

* Improvement Request

##### COMPONENT NAME

Network offerings

##### CLOUDSTACK VERSION
~~~
4.20.0.0
~~~

##### OS / ENVIRONMENT

Ubuntu 22.04 (if relevant)
mysql 8

##### SUMMARY

All default network offerings are shown in UI as having 200Mb/s network rate. I created my own network offering without specifying network rate, and it's also shown in UI as having 200Mb/s.
Then I checked database and found that no network offering has a positive value in `network_offerings` table. All System ones have 0, while all other (default) ones have NULL.
But then, when I checked xml of Virtual router (I use isolated network with nat, if relevant again), I found this definition on my external network
```





```
That is 25Mb/s.

After I set network rate to 65K in my network offering, it become consistent at least between DB and CloudStack UI, VR then got
```




```
And another, minor, issue on the way - mysql defines the field as smallint:
`nw_rate smallint unsigned DEFAULT NULL COMMENT 'network rate throttle mbits/s'`
that does not allow values larger than 65K (worth adding an info on this to UI of creating network offering).
Modern networks can work on a larger speeds (e.g. 800Gb/s). Besides would be nice to be able not to limit it at all.

Thanks,
Alex.

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

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

Hướng nghiên cứu

Bắt đầu bằng cách theo dõi cách các network offering được hiển thị trong UI và cách network_offerings.nw_rate được lưu trữ cũng như diễn giải. So sánh các giá trị đó với băng thông được phát ra trong XML của virtual-router, sau đó xác định hoàn tất khi các giá trị chưa được thiết lập và các giá trị tốc độ cao được xử lý nhất quán, bao gồm hướng dẫn rõ ràng trong UI về giới hạn hoặc băng thông không giới hạn.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, mysql
Lĩnh vực
cloud, infrastructure, networking
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

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.