设为首页 收藏本站
查看: 3946|回复: 2

[经验分享] VMware NSX part 3 之 NSX Controller部署

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-1-30 08:58:33 | 显示全部楼层 |阅读模式
一、NSX ControllerThe NSX controller is a user space VM that is deployed by the NSX manager. It is one of the core components of NSX and could be termed as the “distributed hive mind” of NSX. It provides a control plane to distribute network information to hosts. To achieve a high level of resiliency the NSX Controller is clustered for scale out and HA.
The NSX controller holds three primary tables. These are a MAC address table, ARP table and a VTEP table. These tables collate VM and host information together for each three tables and replicate this throughout the NSX domain. The benefit of such action is to enable multi-cast free VXLAN on the underlay. Previous versions of vCNS and other VXLAN enabled solutions required VXLAN enabled on the Top of Rack Switches or the entire physical fabric. This provided a significant administrative overhead and removing this alleviates a lot of complexity.
By maintaining these tables an additional benefit is ARP suppression. ARP suppression will allow for the reduction in ARP requests throughout the environment. This is important when layer two segments stretch across various L3 domains. If a segment requests the IP of a MAC address that isn’t on a local segment the host will have the replicated information in its tables pushed to it by the controller.

二、Roles and functionThe NSX Controller has five roles:
  • API Provider, Persistence Server
  • Logical Manager
  • Switch Manager
  • Directory server

The API provider maintains the Web-services API which are consumed by NSX Manager. The Persistence server assures data preservation across nodes for data that must not be lost; network state information. Logical manager deals with the computation of policy and the network topology. The switch manager role will manage the hypervisors and push the relevent configuration to the host. The directory server will focus on VXLAN and the distributed logical routing directory of information.
Whilst each role needs a different master each role can be elected to sit on the same or different host. If a node failure occurs and there is no master for an elected role a new node is promoted to master after the election process.
Most deployment scenarios see three, five or seven controllers deployed. This is due to the controller running Zoo Keeper. A Zoo Keeper cluster, known as an ensemble, requires a majority to function and this is best achieved through an odd number of machines. This tie-breaker scenario is used in many cases and HA conditions during NSX for vSphere operations.
三、SlicingIn a rapidly dynamic environment that may see multiple changes per second how do you dynamically distribute workload across available clusters, re-arrange workloads when new cluster members are added and sustain failure without impact all while this occurs behind the scenes? Slicing.
wKiom1TKPCeQPI3RAADB_pcZaBA750.jpg
A role is told to create x number of slices of it self. An application will collate its slices and assign the object to a slice. This ensures that no individual node can cause a failure of that NSX controller role.
wKiom1TKPCnwGDYEAADLqeU2p1k981.jpg
When a failure of a Controller node occurs the slices that the controller is in charge of will be replicated and reproduced onto existing controllers. This ensures consistent network information and continuous state.

四、部署1. "Installation"->"Management"->"NSX Controller Nodes",选择“+”号,表示添加NSX Controller Nodes
wKiom1TKPC3BqWHJAAHqJ2S0eGM459.jpg
2. 选择“NSX Manager”、数据中心、资源池等信息,“Connected to”选择Controller虚拟机的管理网段,本测试环境所有管理网段全是VLAN 10,即192.168.10.0网段。“IP Pool”选项选择“Select”
wKiom1TKPC6Q7NuwAAEMofchEkg681.jpg
3. 选择“+”,添加"IP Pool"
wKiom1TKPC-CX0cGAADP7y_TqWo332.jpg
4. 按如下图所示输入“IP Pool”相关信息,其中“Prefix Legth”表示子网掩码位数。其它信息根据需要实际环境进行设置
wKioL1TKPRPRH1vDAAFWsFKTjaE475.jpg
5. 设置IP Pool的地址段
wKioL1TKPRSDdPEtAAFUocp7oDU582.jpg
6. 选择刚创建的IP Pool
wKioL1TKPRWgtRn6AAEoxO0gNKU736.jpg
7. 输入密码,该密码复杂度要求比较高,该密码为admin用户密码,可以用于ssh到nsx controller进行配置
wKioL1TKPRfS5MTzAAGyb95wN34428.jpg
8. 自动生成NSX-Controller虚拟机
wKioL1TKPS_AibyVAAFINZe2yCw105.jpg
9. NSX-Controll正在启动
wKioL1TKPTDRFULfAAHTHPjbp_s963.jpg
10. 通过SSH登录到NSX-Controller虚拟机,可以查看Controller集群状态
wKioL1TKPTLyG-OeAAEmbMiJgpI274.jpg
11. 查看该NSX-Controller的角色,目前集群中只有一台?NSX Controller虚拟机,为了确保NSX Controller高可用性,部署3台NSX Controller虚拟机,加入到同一个集群,形成高可用集群,不管哪个节点出现故障,都能正常提供对外服务。所以建议运行NSX Controll的vSphere集群至少包含三个ESXi主机,本测试环境只有一台ESXi主机,三个节点全在一个主机上运行,仅仅用于功能演示。
wKioL1TKPXOA3gGbAAGGEv-7APo563.jpg
12. 选择“+”继续添加Controller节点
wKiom1TKPJbzSHVYAAGKZRMeESE384.jpg
13. 设置相应的数据中心、资源池、存储等信息,选择相应的IP Pool
wKioL1TKPXqA7KYZAAFtyVekqGQ038.jpg
14. 显示警告,由于我把所有controller节点全放在一台ESXi主机上。在生产环境强烈不建议。
wKiom1TKPJniVgu_AAFe6CZC9xQ803.jpg
15. 继续添加第三个Controller节点
wKiom1TKPJygfOw9AAFvzCVovrU303.jpg
16. 完成3个Controller节点的添加,且全部自动添加到同一个Controller集群中。
wKiom1TKPJ7Q75DPAAHkiFctlDc664.jpg
17. 通过SSH登录到NSX Controller,显示集群内的三个节点
wKiom1TKPLSTJIMQAACUlmdUTYw225.jpg
18. 至此完成NSX Controller部署,后续进行ESXi主机准备。


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-41707-1-1.html 上篇帖子: VMware NSX part 2 之 NSX-Manager安装 下篇帖子: VMware vSphere 初体验 5.1版本
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表