Upgrade to Pro — share decks privately, control downloads, hide ads and more …

はじめてのRancherシリーズ-Longhorn

 はじめてのRancherシリーズ-Longhorn

Wenhan Shi

June 18, 2020
Tweet

More Decks by Wenhan Shi

Other Decks in Technology

Transcript

  1. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 1

    © Copyright 2020 Rancher Labs. All Rights Reserved. 1 ͸͡Ίͯͷ3BODIFSγϦʔζ -POHIPSO 2020/06/18 Wenhan Shi Support Engineer
  2. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 2

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 2 ࢪ จᷨ ʢγ ϒϯΧϯʣ 8FOIBO4IJ 5XJUUFS!TIJ@XFOIBO ܦྺ • ೔ཱ੡࡞ॴ  -JOVY ΧʔωϧϞδϡʔϧͷอकαϙʔτ • 3FE)BU,, (MVTUFS'40QFO4IJGUαϙʔτ • $BOPOJDBM+BQBO,,  6CVOUV0QFO4UBDL,VCFSOFUFTαϙʔτ • 3BODIFS-BC*OD  ݄̍೔ೖࣾ ࣗݾ঺հ
  3. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 3

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 3 Kubernetes Storage • ֎෦ετϨʔδΛར༻࣌ͷ՝୊ • ,VCFSOFUFTωΠςΟϒͰ͸ͳ͍ • ༰ྔ૿ՃʹΑΔαϙʔτίετ • ֎෦ετϨʔδอकͷίετ • όοΫΞοϓͷ࣌ؒɾࣦഊͷՄೳੑ
  4. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 4

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 4 Open Source Distributed Block Storage Software for Kubernetes https://longhorn.io/ One click to add persistent storage support to any Kubernetes cluster
  5. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 5

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 5 A CNCF sandbox project Longhornとは • ,VCFSOFUFTωΠςΟϒͷ෼ࢄܕ ϒϩοΫετϨʔδιϑτ΢ΣΞ • ܰྔߴ৴པʢFOUFSQSJTFHSBEFʣ • ࢖͍΍͍͢ -POHIPSO8FC6* • 3BODIFSͷΧλϩά͔ΒDMJDLͰσϓϩΠ • ,VCFDUMɺIFMN΋Մೳ • ೝఆ͞Εͨ,VCFSOFUFTͰ͝ར༻Մೳ • CBDLFOEετϨʔδʹґଘ͠ͳ͍ • 7PMVNF୯Ґͷ༰ྔ֦ுɺ4OBQTIPU CBDLVQSFTUPSFػೳ • 7PMVNFʹӨڹͳ͠ͷ-JWF6QHSBEF
  6. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 6

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 6 Longhorn 0.8 Volume resizing Automatic recover faulted volume Air gap Longhorn 1.0 GA Announced on June 3rd With v0.6.0, Longhorn could scale up to 40 volumes per node. Longhorn 1.0 GA scales +80 volumes per node. Increase in volumes per node 200% Volume attaching/detaching for +20 volumes per node reduced from a couple of hours to a few seconds Faster than v0.6 100x Longhorn GA リリース Longhorn 0.6 Volume attaching/ detaching +50% faster CNCF Sandbox Longhorn 0.5 DR Volume Helm chart Longhorn 0.3 Support S3 for backup Basic K8s support Open sourced Re-written in Go, built for Docker Closed source Written in C++ Pre-K8s era ‘14 ‘16 ‘18 ‘19 ‘19 ‘20
  7. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 7

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 7 OpenEBS and Longhorn • OpenEBSは2017年頃にLonghornの技術を採用(folk) • 修正やエンハンスをLonghorn main upstreamにPush back https://blog.openebs.io/openebs-building-blocks-rancher-longhorn-b8928b5921fa
  8. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 8

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 8 Longhornと他のストレージ製品
  9. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 9

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 9 *50QT %FWFMPQFST -POHIPSOͷϝϦοτ ਝ଎ͳ ϦΧόϦʔ όοΫΞοϓ ˍεφοϓ ؆୯ʹ࢖͑Δ ϒϩοΫ ετϨʔδ
  10. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 10

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 10 5FDIOPMPHZ-FBEFST -POHIPSOͷϝϦοτ $MPVEOBUJWF අ༻Λ௿ݮ ։ൃऀͷ ޮ཰ੑΞοϓ 1FSTJTUFOU TUPSBHF FWFSZXIFSF
  11. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 11

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 11 アーキテクチャー
  12. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 12

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 12 Longhorn UI
  13. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 13

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 13 ユースケース1 VM Vmstore local disk Other SAN LUN LVM VG /data/longhorn Combine multiple storage backends into one Mounted on linux FS
  14. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 14

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 14 Kubernetes Cluster Region A ユースケース2 Pod A Standby DR Volume passively replicates from incremental snapshots being sent to a backup store S3 / NFS backup Store Multi-Cluster, Multi-site Disaster Recovery Kubernetes Cluster Region B Pod A Scheduled backups continually send deltas of volume to external cold storage In the event of failover, user syncs with the latest backup and becomes active for workloads in the cluster. Time to recovery is short because most of the delta is already replicated
  15. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 15

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 15 推奨構成 • ハードウェア(最小) • 3 nodes • 4 vCPUs per node • 4 GiB per node • システム • Ubuntu 18.04 • CentOS 7/8 • ディスク • システム(/)と異なるディスクを利用 • 複数のディスクをLVMで1パーティションに構成
  16. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 16

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 16 demo 1. クラスタdemo1でLonghornのInstall 2. クラスタdemo1でLonghornのstorageClassを使って、WordpressのInstall 3. クラスタdemo1でWordpressの記事を新規作成してから、AWS S3にVolumeをバックアップ 4. クラスタdemo2でバックアップからVolumeをリストア 5. クラスタdemo2でリストアされたVolumeを使ってWordpressをInstall 6. クラスタdemo2でのWordpressからdemo1で作成した記事を確認
  17. © Copyright 2019 Rancher Labs. All Rights Reserved. Confidential 17

    © Copyright 2020 Rancher Labs. All Rights Reserved. Confidential 17 Information • Homepage • https://longhorn.io/ • Documentation • https://longhorn.io/docs/1.0.0/ • Roadmap • https://github.com/longhorn/longhorn/wiki/Roadmap • Development updates • https://github.com/longhorn/longhorn/milestones/