apache / apache/cloudstack

Improvements for bandwidth configuration of network offering

未關閉
#10,189 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
archive type:new-feature
主要語言
Java
星號
3.1k
分支
1.4k
平均合併
6 天 19 小時
30 天內合併 PR
32

描述

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

貢獻指南

開啟貢獻指南

研究方向

首先追蹤網路供應項目如何在 UI 中顯示,以及 network_offerings.nw_rate 如何儲存和解讀。將這些值與 virtual-router XML 中輸出的頻寬進行比較,然後將一致處理未設定值和高速率值定義為完成條件,其中包括在 UI 中清楚說明頻寬限制或無限頻寬。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java, mysql
領域
cloud, infrastructure, networking
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。