-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SKS-1474: Get VM NIC IP from K8s node to speed up VM reconcile (#124)
## 问题 [SKS-1474] CAPE同步VM网络信息慢 - Jira http://jira.smartx.com/browse/SKS-1474。 导致CAPE创建VM时有些时候需要等待3分钟才能从Tower处获取到IP,明显降低了VM创建速度。 ## 根因 ELF同步已安装vmtools的VM的IP数据时,同步时延不固定,快的话1分钟内。慢的话也有2-3分钟的。 ELF同步慢的原因为每次要同步状态的虚拟机太多了,所以导致执行一轮耗费的时间太长。 ## 修复 当Tower API没有返回网卡IP时,从k8s node获取VM第一块网卡IP。VM单网卡场景中可以加快CAPE同步VM IP的速度,加速VM创建过程。 Co-authored-by: Jesse Hu <[email protected]>
- Loading branch information
1 parent
5747927
commit 2f3c90a
Showing
4 changed files
with
281 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.