ubnt azure unifi by alliedbizdl.ubnt.com.cn/ucc/2014/ubnt azure unifi by...
TRANSCRIPT
UBNT UniFi with 微软 Azure 云
Huang Chao & David
Allied Business IT Consultants
UBNT Unify(UAC)部署⽅方案
场馆2 场馆1
场馆3
场馆4
宽带
路由器
宽带
路由器
宽带
路由器
宽带
路由器
微软 Azure 数据中⼼心全球分布
Global Footprint
21V国内版华东上海
21V国内版华北北京
亚太国际版香港
亚太国际版新加坡
云服务模型模型
Cloud Models On Premises
Storage
Servers
Networking
O/S
Middleware
Virtualization
Data
Applications
Runtime
You
man
age
Infrastructure (as a Service)
Storage
Servers
Networking
O/S
Middleware
Virtualization
Data
Applications
Runtime
Managed by M
icrosoft
You
man
age
Platform (as a Service)
Managed by M
icrosoft
You
man
age
Storage
Servers
Networking
O/S
Middleware
Virtualization
Applications
Runtime
Data
Software (as a Service)
Managed by M
icrosoft
Storage
Servers
Networking
O/S
Middleware
Virtualization
Applications
Runtime
Data
创建Azure虚机 我们选择的是东亚数据中心, Windows server 2012 R2 Datacenter 双核虚机 (A2计划)
点击左下 +NEW 创建新虚机
点击 VIRTUAL MACHINE -> FROM GALLERY
选择虚机镜像
输⼊入⽤用户名密码,选择CPU内存配置。
选择地理位置,公⺴⽹网名称,对外发布的端⼝口(可以稍后配置)
完成配置。
Azure 虚机 ENDPOINTS 设置
参考文档:http://wiki.ubnt.com/UniFi_FAQ#Install_the_controller_in_.22the_cloud.22_--_Amazon_Web_Services_.28AWS.29
Unifi 要求对外要开放的⼀一些端⼝口。
Windows
防⽕火墙中也要对应开放。
安装 UniFi Controller
配置 UniFi Controller Can I run UniFi Controller as a Windows Service?
Yes, we added the support since 2.2.0.
Make sure UniFi is not running Locate your java installation directory.
On 64-bit, it's usually at "C:\Program Files (x86)\Java\jre6\bin"; otherwise "C:\Program Files\Java\jre6\bin". (replace jre6 for jre7 if
you have the latest Java)
Add the dir above to the PATH (from Computer->Properties->Advanced system settings)
run a command prompt (as an Administrator, right click on 'Command Prompt' and choose 'Run as administrator'. THIS IS
IMPORTANT ON WIN2008/7+, otherwise the service may not get created)
cd <unifi_base> (cd "%userprofile%/Ubiquiti Unifi" will usually do the trick, including the quote marks)
java -jar lib\ace.jar installsvc
Start the service: net start "Unifi Controller”
http://wiki.ubnt.com/UniFi_FAQ#Install_the_controller_in_.22the_cloud.22_--_Amazon_Web_Services_.28AWS.29
Azure资源动态调整
升级或降级都⾮非常容易,⿏鼠标点击就能完成。
也可以使⽤用powershell建⽴立脚本,设置计划任务。
⽐比如⽩白天⼯工作时间使⽤用⾼高配置服务器,晚上闲暇时使⽤用低配置,甚⾄至关闭服务器。
单核虚机,每⽉月170美元左右
8核虚机,每⽉月1400美元左右
华交会2014 最⾼高在线6500设备
Font: 思源⿊黑体 CN Regular
华交会2014 最⾼高在线6500设备
当⽤用户达到5000以上时,对系统的负载明显上升,原来的双核虚机⽆无法应对。
但是基于云平台的灵活性, 可以可以随时将虚机升级为8核来应对. 并最⼤大程度上节省成本
Azure 磁盘I/O的限制:IOPS
Azure 每块虚拟磁盘提供的 IOPS为 500。
最多 500*8 =4,000 IOs/sec
Azure temporary storage =IOs/sec: 126,011
(临时存储,IOPS极⾼高,重启后数据丢失)
使⽤用 Azure temporary storage 存放 MongoDB可以满⾜足⾼高负载需要,有⻛风险,需要仔细权衡,制定备份策略。
微软Azure云 选择
国际版选择东亚⾹香港新加坡数据中⼼心
• 上海电信 Ping ⾹香港: 130ms 上海联通 Ping⾹香港: 130ms
国内版选择上海或北京数据中⼼心
• 上海电信/联通 Ping上海数据中⼼心: <= 2ms
• 上海电信/联通 Ping北京数据中⼼心ping: < 20ms
A1套餐/170.75USD⽉月: 单核 1.75GB虚机:⼩小于20个AP,⼩小于200⽤用户时
A8套餐/1365.99USD⽉月:8核56G虚机:⼤大约200个AP,⼩小于6000⽤用户
国际版价格
国内价格,⽐比国际版稍稍便宜⼀一点
场景: ChinaJoy 2014
⼈人多: 预计20万, 实际25万;单位⾯面积⼈人多
⺴⽹网多: 电信等有线宽带230根以上,多接⽆无线路由器
信号干扰严重: 2.4G/5G都有信号源, 超过50个/75DB
展商计划的互动多是基于⽆无线的
项目公司前期参与, 在预算限制下, 确认委托UC展台等由我们提供Wifi服务, 希望1000人在线
Day1: E4馆检票⼝口实况, 需要⾛走过E1, E2, E3近300M⾏行程到达
ChinaJoy 2014 ⽅方案
AP选择: UAC
数量: 8个
放置⽅方式: 地板朝上
带宽: 30M/电信EIP
Unifi 版本: 3.2.1
Unifi Azure: ⾹香港, A2,
Tempore Storage
ChinaJoy 2014的启⽰示
⽆无线有干扰
规划要谨慎
放置很重要
在⾼高密度下:
保证静态⽤用户
放弃移动⽤用户
82
Q&A (現在答疑)
David: 13901666840
THANK YOU
上海万联信息科技有限公司 微软云合作伙伴:MPN851395
上海电信信⺴⽹网部“智慧会展”合作伙伴
莱桥公司的⼩小伙伴
UBNT的资深粉丝