Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

ドリコムのInfrastructure as code

17,404 views

Published on

Published in: Technology
  • Hi there! I just wanted to share a list of sites that helped me a lot during my studies: .................................................................................................................................... www.EssayWrite.best - Write an essay .................................................................................................................................... www.LitReview.xyz - Summary of books .................................................................................................................................... www.Coursework.best - Online coursework .................................................................................................................................... www.Dissertations.me - proquest dissertations .................................................................................................................................... www.ReMovie.club - Movies reviews .................................................................................................................................... www.WebSlides.vip - Best powerpoint presentations .................................................................................................................................... www.WritePaper.info - Write a research paper .................................................................................................................................... www.EddyHelp.com - Homework help online .................................................................................................................................... www.MyResumeHelp.net - Professional resume writing service .................................................................................................................................. www.HelpWriting.net - Help with writing any papers ......................................................................................................................................... Save so as not to lose
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating for everyone is here: ❤❤❤ http://bit.ly/369VOVb ❤❤❤
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Sex in your area is here: ❶❶❶ http://bit.ly/369VOVb ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

ドリコムのInfrastructure as code

  1. 1. Copyright Drecom Co., Ltd. All Rights Reserved. 1 ドリコムの Infrastructure as Code 2014.05.23 最新インフラエンジニア技術勉強会
  2. 2. Copyright Drecom Co., Ltd. All Rights Reserved. 2 名前  ひらしー(とか狂犬?とか)  出身:グンマー 所属  サービス基盤本部 サービス基盤部 インフラグループ 職種  インフラエンジニア
  3. 3. Copyright Drecom Co., Ltd. All Rights Reserved. 3 ⁃ ドリコムのインフラ規模 ⁃ Chef運用 ⁃ コード管理 ⁃ テスト駆動インフラ
  4. 4. Copyright Drecom Co., Ltd. All Rights Reserved. 4 ドリコムのインフラ規模 ⁃ 1日の全アプリ合計PV ⁃ 1日の全アプリ合計DAU 1億以上 100万以上
  5. 5. Copyright Drecom Co., Ltd. All Rights Reserved. 5 ドリコムのインフラ規模 ⁃ サーバ台数 ホスティング クラウド 約300台 約1000台
  6. 6. Copyright Drecom Co., Ltd. All Rights Reserved. 6 ドリコムのインフラ規模 ⁃ サーバ台数 1ヶ月の増加台数 約30台~50台
  7. 7. Copyright Drecom Co., Ltd. All Rights Reserved. 7 ドリコムのインフラ規模 ⁃ 上記サーバを診るインフラエンジニア
  8. 8. Copyright Drecom Co., Ltd. All Rights Reserved. 8 ドリコムのインフラ規模 3人
  9. 9. Copyright Drecom Co., Ltd. All Rights Reserved. 9 ドリコムのインフラ規模 少人数で早く正確なインフラを回すには?
  10. 10. Copyright Drecom Co., Ltd. All Rights Reserved. 10 ⁃ ドリコムのインフラ規模 ⁃ Chef運用 ⁃ コード管理 ⁃ テスト駆動インフラ
  11. 11. Copyright Drecom Co., Ltd. All Rights Reserved. 11 Chefの運用方法 米国Chef社(旧: Opscode社)が開発 オープンソースとして公開されている サーバの構成管理を行うフレームワーク
  12. 12. Copyright Drecom Co., Ltd. All Rights Reserved. 12 Chefの運用方法 ⁃ 特徴  Rubyで書ける(内部DSL)  べき等性という考え方  Rubyエンジニアが多いため、 構築状況が共有しやすい
  13. 13. Copyright Drecom Co., Ltd. All Rights Reserved. 13 Chefの運用方法 何度実行しても”nginx.conf.src”というChef管理のファイルと等しくなるべき べき等性に沿った記述
  14. 14. Copyright Drecom Co., Ltd. All Rights Reserved. 14 Chefの運用方法 Chef-Server Chef-Solo
  15. 15. Copyright Drecom Co., Ltd. All Rights Reserved. 15 Chefの運用方法 Chef-Server構成 ※Chef社公式サイトから引用
  16. 16. Copyright Drecom Co., Ltd. All Rights Reserved. 16 Chefの運用方法 Chef-Solo構成 ※Chef社公式サイトから引用
  17. 17. Copyright Drecom Co., Ltd. All Rights Reserved. 17 Chefの運用方法 Chef-Server Chef-Solo
  18. 18. Copyright Drecom Co., Ltd. All Rights Reserved. 18 Chefの運用方法 ⁃ Why  以前はChef-Server構成だったが  クライアント100台を超えたあたりからCouchDB がボトルネックになった ※Chef11からPostgreSQLが採用された  Chef-ServerとChef-Client連携による定期的収束 を既存サーバに適用できなかった
  19. 19. Copyright Drecom Co., Ltd. All Rights Reserved. 19 Chefの運用方法 ⁃ Why  プロビジョニング処理とサーバ情報の取得と いう観点ではChef-Serverが必要ない  現状Chef-Soloとシェルスクリプト の組み合わせで十分
  20. 20. Copyright Drecom Co., Ltd. All Rights Reserved. 20 Chefの運用方法 ドリコムのChef開発フロー
  21. 21. Copyright Drecom Co., Ltd. All Rights Reserved. 21 Chefの運用方法 レシピの開発
  22. 22. Copyright Drecom Co., Ltd. All Rights Reserved. 22 22 CI DC DC DC 本番環境 インフラメンバ git push Chefの運用方法
  23. 23. Copyright Drecom Co., Ltd. All Rights Reserved. 23 Chefの運用方法 GitLab
  24. 24. Copyright Drecom Co., Ltd. All Rights Reserved. 24 24 CI DC DC DC 本番環境 GitLab Chefの運用方法 インフラメンバ
  25. 25. Copyright Drecom Co., Ltd. All Rights Reserved. 25 Chefの運用方法 Jenkins
  26. 26. Copyright Drecom Co., Ltd. All Rights Reserved. 26 Chefの運用方法 Vagrant vagrant snapshot back OSインストール直後のスナップショット vagrant provision Chefの実行
  27. 27. Copyright Drecom Co., Ltd. All Rights Reserved. 27 Chefの運用方法 Foodcritic
  28. 28. Copyright Drecom Co., Ltd. All Rights Reserved. 28 Chefの運用方法 serverspec nginxの状態をテストする例
  29. 29. Copyright Drecom Co., Ltd. All Rights Reserved. 29 29 CI DC DC DC 本番環境 GitLab Jenkins Vagrant Chefの運用方法 インフラメンバ
  30. 30. Copyright Drecom Co., Ltd. All Rights Reserved. 30 30 CI DC DC DC 本番環境 GitLab Jenkins Vagrant Chefの運用方法 インフラメンバ
  31. 31. Copyright Drecom Co., Ltd. All Rights Reserved. 31 31 CI DC DC DC 本番環境 インフラメン バ GitLab Jenkins Vagrant Chefの運用方法 git push
  32. 32. Copyright Drecom Co., Ltd. All Rights Reserved. 32 32 CI DC DC DC 本番環境 インフラメン バ GitLab Jenkins Vagrant Chefの運用方法
  33. 33. Copyright Drecom Co., Ltd. All Rights Reserved. 33 Rundeck ホスト名やIPアドレスを正規表現で検索 Chefの運用方法 Zabbix-APIにて取得済のホスト情報
  34. 34. Copyright Drecom Co., Ltd. All Rights Reserved. 34 Rundeck ホスト毎の実行結果 Chefの運用方法
  35. 35. Copyright Drecom Co., Ltd. All Rights Reserved. 35 35 CI DC DC DC 本番環境 インフラメン バ GitLab Jenkins Vagrant Chefの運用方法
  36. 36. Copyright Drecom Co., Ltd. All Rights Reserved. 36 ⁃ ドリコムのインフラ規模 ⁃ Chef運用 ⁃ コード管理 ⁃ テスト駆動インフラ
  37. 37. Copyright Drecom Co., Ltd. All Rights Reserved. 37 コード管理 3つの 「○○ Driven Infrastracture」
  38. 38. Copyright Drecom Co., Ltd. All Rights Reserved. 38 コード管理 Issue Driven Infrastructure
  39. 39. Copyright Drecom Co., Ltd. All Rights Reserved. 39 コード管理 Pull Request Driven Infrastructure
  40. 40. Copyright Drecom Co., Ltd. All Rights Reserved. 40 コード管理 マサカリ Driven Infrastructure
  41. 41. Copyright Drecom Co., Ltd. All Rights Reserved. 41 ⁃ ドリコムのインフラ規模 ⁃ Chef運用 ⁃ コード管理 ⁃ テスト駆動インフラ
  42. 42. Copyright Drecom Co., Ltd. All Rights Reserved. 42 テスト駆動インフラ テスト項目書 作業手順書 インフラ作業といえば…
  43. 43. Copyright Drecom Co., Ltd. All Rights Reserved. 43 テスト駆動インフラ serverspecで作業項目を記載 GitLabを使ってコードレビュー 開発環境で実行・テスト 本番環境で実行・テスト
  44. 44. Copyright Drecom Co., Ltd. All Rights Reserved. 44 44 テストシナリオ(yaml) drecom-serverspec 実行するserverspecファイルパス テスト対象ホスト テスト駆動インフラ
  45. 45. Copyright Drecom Co., Ltd. All Rights Reserved. 45 45 drecom-serverspec テスト結果(コマンド出力) テスト項目(describe) テスト対象サーバ テスト駆動インフラ
  46. 46. Copyright Drecom Co., Ltd. All Rights Reserved. 46 まとめ
  47. 47. Copyright Drecom Co., Ltd. All Rights Reserved. 47 少人数で早く正確なインフラを回すには?
  48. 48. Copyright Drecom Co., Ltd. All Rights Reserved. 48 ⁃ 早 ⁃ 正確  Chefによるプロビジョニング自動化  CIツールとserverspecによるテスト自動化  PDCAサイクルによる品質管理
  49. 49. Copyright Drecom Co., Ltd. All Rights Reserved. 49 49 Plan Do Check Action Chef,serverspecのコードレビュー Chef,Rundeckによる実行 serverspec実行 Chef,serverspecコード修正
  50. 50. Copyright Drecom Co., Ltd. All Rights Reserved. 50 その他雑感
  51. 51. Copyright Drecom Co., Ltd. All Rights Reserved. 51 ⁃ Chef-Server  Chef-Serverを有効に活用できている事例ってある? ⁃ Rundeck  リモートサーバのオペレーション管理が便利すぎるのに無名
  52. 52. Copyright Drecom Co., Ltd. All Rights Reserved. 52 ご静聴ありがとうございました!!
  53. 53. Copyright Drecom Co., Ltd. All Rights Reserved. 53 会社概要 社名: 証券コー ド: 本社: 電話番号: 社員数: 設立年月 日: 資本金: 事業内容: 株式会社ドリコム 3793 東証マザーズ 〒153-0064 東京都目黒区下目黒1丁目8-1 アルコタワー17F TEL:03-6682-5700 FAX:03-6682-5711 239名 (正社員・契約社員のみ) 2001年11月13日 1,124百万円 (2014年3月末現在) ソーシャルゲーム事業 ソーシャルラーニング事業 アドソリューション事業 Copyright Drecom Co., Ltd. All Rights Reserved.

×