Upload
tao-xu
View
141
Download
2
Embed Size (px)
Citation preview
DevOps News运维杂闻
无题
● 没有主题的主题● 没有做过特别完整的系统● 讲故事/段子● 一些不实际的东西● 开阔一下眼界● Just for fun● 好,下面故事开始。。。
SmartOS另一个世界
Solaris● SunOS● Wiki: Solaris● Sun -> Oracle● Solaris 11
OpenSolaris● Open Source● Wiki: OpenSolaris● 始于 2005● Oracle 没有后续支持● 衍生了一些 Fork
illumos● Base on OpenSolaris● Wiki: illumos● 浴火重生 ?
考究派
● An open source descendant of OpenSolaris● ...which itself was a branch of Solaris Nevada ● ...which was the name of the release after Solaris 10 ● ...and was open but is now closed● ...and is itself a descendant of Solaris 2.x● ...but it can all be called “SunOS 5.x”● ...but not “SunOS 4.x” — thatʼs different
SmartOS● 主角来了● SmartOS is a Joyent
distribution features NetBSD packaging and is designed for cloud computing
Features● Solaris heritage● Zones - OS level virtualization● Crossbow - virtual NICs● ZFS - pooled storage, data integrity ● DTrace - production safe Dynamic Tracing● Hypervisor Focus
Features● Core OS image booted from external media
Persist user data and minimal convenience config Tools to simplify management
● KVM - Hardware Virtualization● Open Source distribution of illumos illumos is
the successor of OpenSolaris
Zones● LXC/Container● Docker● 现在大家对这个概念应该很熟悉了● SmartMachine - Joyent 的用法
Crossbow● Create virtual NICs and virtual switches● Connect VNICs to:
○ Physical NICs ○ Virtual switch
● Antispoof● MAC address IP addresses DHCP● Bandwidth controls● Simple as `dladm create-vnic -l igb0 foo0`
ZFS● ZFS is a copy on write filesystem● Pooled Storage● Don’t have to guess your partition sizes● Managed in datasets● Quotas and reservations can be changed on
the fly zvols - virtual block devices
ZFS● Multiple RAID options● RAID 1 (Mirroring)● RAID Z1, Z2, Z3 (Single, double, and triple
parity) RAID 0 (Striping)● Enterprise features built in● 128-bit Checksums on everything● Data Integrity
ZFS● Compression● Deduplication● Adaptive Replacement Cache● Hybrid Storage● SLOG L2ARC
iMac● ARC (Adaptive Replacement Cache) ● L2ARC● Apple 1TB Fusion Drive - MacOSX● FlashCache - Linux
OpenZFS● Mac● Linux● 可用?有人在用
Btrfs● Linux● Btrfs vs ZFS● 背后好像都是 Oracle ?
DTrace● Dynamic instrumentation of production
systems● Originally released in 2003 for Solaris 10,
open-sourced in 2005● Available on SmartOS, illumos, and all other
Solaris-derived systems● Available on Mac OS X, FreeBSD, QNX, and
WIP on Linux, NetBSD, Sony Vita
DTrace● Supports static and dynamic probes in both
userland and the kernel with arbitrary actions and predicates
● Aggregates data in the kernel● Allows us to support high numbers of events
per second Designed to be safe for production use from the get go
SystemTap● Linux● SystemTap Wiki (据说要被弃?)● LTTng Wiki● 很杂,不统一,文化冲突● 最后 - strace, ltrace
Node.js● Joyent 雇佣了创始人● 去年才成立基金会?● 交给社区 Node.js vs io.js● SmartOS 很多工具是 Javascript 写的
KVM● Porting, Porting, Porting● Solaris 现在都不支持?
Docker● Triton● LX Branded Zones● Porting, Porting, Porting● 幸亏底子好● 还是有点累● 未来的趋势
全家福
遇到的问题
1. Guset OS hang up2. 网络带宽限制是分离 - illumos overlay for
SDN3. 目前还不支持热迁移4. 不支持AMD的CPU -现在支持了5. 没有解决网络存储的问题
Brendan牛人 Brendan
Brendan Gregg● Blog● Sun -> Joyent -> Netflix● Solaris -> SmartOS -> Linux● 大势所趋,都去搞 Linux 了● Shouting in the Datacenter● 直得关注
Sysdig● Linux● Sysdig Cloud● process/container Level● Demo● 开源了一部分 agent 代码● NewRelic - 还没试过
Push● PushBullet - 良心服务● PushOver● PagerDuty
New OS新世界
News● 其实,我想说高潮来了● 用了那么久的 OS● 有没有什么新的变化呢?● 难道一直就如此了么?● OS 其实是个慢活● 但是新世界真的来了
Hypervisor
https://speakerdeck.com/garethr/the-end-of-the-general-purpose-operating-system
HypervisorXen, ESX and HyperV are Type 1 hypervisors
Hypervisor of containers
AtomicFrom RedHat, uses RPM-OSTree under the hood
CoreOSBuilt-in service-discovery and clustering support
Snappy● Snappy from Ubuntu,
basically replaces apt-get with docker
● transactional updates● 升级 kernel 挂了都可以回
滚,类似 ChromeOS 的 2 个系统 (印象里是这样的)
RancherOSDocker running on Docker running as PID 1
UniKernelA library to build your own operating systemNo userspaceYou application is compiled into a kernelDrastically smaller surface area for attackVery fast to boot, but with strong isolation guarantees
Virtual machines
Containers
Unikernel
OSv
Mirage OS
Erlang On XEN
AnyKernel● RumpKernel● ?
昙花
● 也许只是昙花一现● 不要期望替换我们现有系统● 但是可以关注
Network OS网络设备的快速发展
Network OS● Wiki● JUNOS● Cisco IOS● FTOS● OpenWRT● DD-WRT
Cumulus Linux ● a Linux Operating System for industry
standard switch hardware. ● based on Debian Linux● DELL/HP● Force10 S4810 就可以安装
DNOSDell Networking Operating System
Facebook OCP● Open Compute Project● FBOSS● Wedge● OCP networking project
故事结束了
● 软件发展很迅速● 有很多新的东西出来● 有很多东西可以尝试● 但是现实世界是业务驱动的● 够用就好了 :-)● 更重要的也许是生态 - 抱团
End