56
DevOps News 维杂闻

DevOps News 20150712

  • Upload
    tao-xu

  • View
    141

  • Download
    2

Embed Size (px)

Citation preview

Page 1: DevOps News 20150712

DevOps News运维杂闻

Page 2: DevOps News 20150712

无题

● 没有主题的主题● 没有做过特别完整的系统● 讲故事/段子● 一些不实际的东西● 开阔一下眼界● Just for fun● 好,下面故事开始。。。

Page 3: DevOps News 20150712

SmartOS另一个世界

Page 6: DevOps News 20150712

OpenSolaris● Open Source● Wiki: OpenSolaris● 始于 2005● Oracle 没有后续支持● 衍生了一些 Fork

Page 7: DevOps News 20150712

illumos● Base on OpenSolaris● Wiki: illumos● 浴火重生 ?

Page 8: DevOps News 20150712

考究派

● 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

Page 9: DevOps News 20150712

SmartOS● 主角来了● SmartOS is a Joyent

distribution features NetBSD packaging and is designed for cloud computing

Page 10: DevOps News 20150712

Features● Solaris heritage● Zones - OS level virtualization● Crossbow - virtual NICs● ZFS - pooled storage, data integrity ● DTrace - production safe Dynamic Tracing● Hypervisor Focus

Page 11: DevOps News 20150712

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

Page 12: DevOps News 20150712

Zones● LXC/Container● Docker● 现在大家对这个概念应该很熟悉了● SmartMachine - Joyent 的用法

Page 13: DevOps News 20150712

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`

Page 14: DevOps News 20150712

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

Page 15: DevOps News 20150712

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

Page 16: DevOps News 20150712

ZFS● Compression● Deduplication● Adaptive Replacement Cache● Hybrid Storage● SLOG L2ARC

Page 17: DevOps News 20150712

iMac● ARC (Adaptive Replacement Cache) ● L2ARC● Apple 1TB Fusion Drive - MacOSX● FlashCache - Linux

Page 18: DevOps News 20150712

OpenZFS● Mac● Linux● 可用?有人在用

Page 19: DevOps News 20150712

Btrfs● Linux● Btrfs vs ZFS● 背后好像都是 Oracle ?

Page 20: DevOps News 20150712

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

Page 21: DevOps News 20150712

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

Page 22: DevOps News 20150712

SystemTap● Linux● SystemTap Wiki (据说要被弃?)● LTTng Wiki● 很杂,不统一,文化冲突● 最后 - strace, ltrace

Page 23: DevOps News 20150712

Node.js● Joyent 雇佣了创始人● 去年才成立基金会?● 交给社区 Node.js vs io.js● SmartOS 很多工具是 Javascript 写的

Page 24: DevOps News 20150712

KVM● Porting, Porting, Porting● Solaris 现在都不支持?

Page 25: DevOps News 20150712

Docker● Triton● LX Branded Zones● Porting, Porting, Porting● 幸亏底子好● 还是有点累● 未来的趋势

Page 26: DevOps News 20150712

全家福

Page 27: DevOps News 20150712

遇到的问题

1. Guset OS hang up2. 网络带宽限制是分离 - illumos overlay for

SDN3. 目前还不支持热迁移4. 不支持AMD的CPU -现在支持了5. 没有解决网络存储的问题

Page 28: DevOps News 20150712

Brendan牛人 Brendan

Page 29: DevOps News 20150712

Brendan Gregg● Blog● Sun -> Joyent -> Netflix● Solaris -> SmartOS -> Linux● 大势所趋,都去搞 Linux 了● Shouting in the Datacenter● 直得关注

Page 30: DevOps News 20150712

Sysdig● Linux● Sysdig Cloud● process/container Level● Demo● 开源了一部分 agent 代码● NewRelic - 还没试过

Page 31: DevOps News 20150712

Push● PushBullet - 良心服务● PushOver● PagerDuty

Page 32: DevOps News 20150712

New OS新世界

Page 33: DevOps News 20150712

News● 其实,我想说高潮来了● 用了那么久的 OS● 有没有什么新的变化呢?● 难道一直就如此了么?● OS 其实是个慢活● 但是新世界真的来了

Page 34: DevOps News 20150712

Hypervisor

https://speakerdeck.com/garethr/the-end-of-the-general-purpose-operating-system

Page 35: DevOps News 20150712

HypervisorXen, ESX and HyperV are Type 1 hypervisors

Page 36: DevOps News 20150712

Hypervisor of containers

Page 37: DevOps News 20150712

AtomicFrom RedHat, uses RPM-OSTree under the hood

Page 38: DevOps News 20150712

CoreOSBuilt-in service-discovery and clustering support

Page 39: DevOps News 20150712

Snappy● Snappy from Ubuntu,

basically replaces apt-get with docker

● transactional updates● 升级 kernel 挂了都可以回

滚,类似 ChromeOS 的 2 个系统 (印象里是这样的)

Page 40: DevOps News 20150712

RancherOSDocker running on Docker running as PID 1

Page 41: DevOps News 20150712

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

Page 42: DevOps News 20150712

Virtual machines

Page 43: DevOps News 20150712

Containers

Page 44: DevOps News 20150712

Unikernel

Page 45: DevOps News 20150712

OSv

Page 46: DevOps News 20150712

Mirage OS

Page 47: DevOps News 20150712

Erlang On XEN

Page 48: DevOps News 20150712

AnyKernel● RumpKernel● ?

Page 49: DevOps News 20150712

昙花

● 也许只是昙花一现● 不要期望替换我们现有系统● 但是可以关注

Page 50: DevOps News 20150712

Network OS网络设备的快速发展

Page 51: DevOps News 20150712

Network OS● Wiki● JUNOS● Cisco IOS● FTOS● OpenWRT● DD-WRT

Page 52: DevOps News 20150712

Cumulus Linux ● a Linux Operating System for industry

standard switch hardware. ● based on Debian Linux● DELL/HP● Force10 S4810 就可以安装

Page 53: DevOps News 20150712

DNOSDell Networking Operating System

Page 54: DevOps News 20150712

Facebook OCP● Open Compute Project● FBOSS● Wedge● OCP networking project

Page 55: DevOps News 20150712

故事结束了

● 软件发展很迅速● 有很多新的东西出来● 有很多东西可以尝试● 但是现实世界是业务驱动的● 够用就好了 :-)● 更重要的也许是生态 - 抱团

Page 56: DevOps News 20150712

End