運用監視OperationMonitoring―Don't forget. always,somewhere,someone is fighting for you.―As long as you remember her.you are not alone.忘れないで、いつもどこかで誰かがあなたの為に戦っている。彼女を覚えている限り、あなたは一人じゃない。(出典:魔法少女まどかマギカ最終話「わたしの、最高の友達」)
36.
DECISIVE BATTLEA HUMANWORKYou can advance.This Photo is under creative commons license by torkildrhttp://www.flickr.com/photos/torkildr/3462606643/sizes/l/in/photostream/
The NIST Definitionof Cloud Computing (NIST Special Publication 800-145)http://csrc.nist.gov/publications/nistpubs/800-145/SP800-145.pdfNISTによるクラウドコンピューティングの定義 米国国立標準技術研究所による推奨(IPA翻訳版)https://www.ipa.go.jp/files/000025366.pdf基本的な特長:• オンデマンド・セルフサービス• 幅広いネットワークアクセス• リソースの共用• スピーディーな拡張性• サービスが計測可能であることサービスモデル:• SaaS ( Software as a Service )• PaaS ( Platform as a Service )• IaaS ( Infrastructure as a Service )実装モデル:• Private Cloud• Community Cloud• Public Cloud• Hybrid Cloud
ニンゲンヤメマスカ?Do you resignas human being?It is necessary to answer the following questions to start OPERATION.YES はいはい YES運用を続けるためには、イカの質問に答える必要があります。正直、キツそうです。
OpenStackCloudStackMackerelAmazon Web ServicesGoogleCloud PlatformWindows AzureSoftLayerNiftyクラウドさくらのクラウドSalesforceHerokuDigitalOceanLinodeさくらのVPSVMwareCircle CIJenkinsGitHubSlackNewRelicDatadogIaaSパブリック・クラウド日本国内パブリッククラウドVPSMonitoringPagerDutyOperationsCIPaaSAtlasプライベートクラウド開発環境 SaaSCloud nDocker( Linux Containers)クラウドを取り巻く業界俯瞰図2年前に登場したDockerは
74.
OpenStackCloudStackMackerelAmazon Web ServicesGoogleCloud PlatformWindows AzureSoftLayerNiftyクラウドさくらのクラウドSalesforceHerokuDigitalOceanLinodeさくらのVPSVMwareCircle CIJenkinsGitHubSlackNewRelicDatadogIaaSパブリック・クラウド日本国内パブリッククラウドVPSMonitoringPagerDutyOperationsCIPaaSAtlasプライベートクラウド開発環境 SaaSCloud nDocker( Linux Containers)クラウドを取り巻く業界俯瞰図あっと言う間に巻き込みます
[zem@artemis ~]$ dockerrun Ubuntu echo “Hey World”Hey World[zem@artemis ~]$ docker run centos cat /etc/redhat-releaseCentOS Linux release 7.1.1503 (Core)[zem@artemis ~]$ docker run centos:6 cat /etc/redhat-releaseCentOS release 6.6 (Final)[zem@artemis ~]$ docker run ubuntu cat /etc/issueUbuntu 14.04.2 LTS ¥n ¥lプロセスとして手軽に実行をすることができます。
84.
[zem@artemis ~]$ dockerrun –t -i --name=madoka ubuntu bashUnable to find image 'ubuntu:latest' locallylatest: Pulling from ubuntu83e4dde6b9cf: Extracting 65.79 MB/65.79 MBb670fb0c7ecd: Download complete29460ac93442: Download completed2a0ecffe6fa: Download completeubuntu:latest: The image you are pulling has been verified. Important: imageverification is a tech preview feature and should not be relied on to providesecurity.Digest:sha256:cb90b1a107073ab3e17271e45a6177b23f548b44157d88d955b7e8bcdbcfd14aStatus: Downloaded newer image for ubuntu:latest446712c7188861edb406fc85e3c50ecb2efab329d2cb8c5511a4e323358c75earoot@e1096840bb9e:/#これは、典型的な起動例。bashを実行するコンテナを起動しているものです。
85.
# ps axPIDTTY STAT TIME COMMAND1 ? Ss 0:00 bash16 ? R+ 0:00 ps ax----root 933 0.0 0.1 66216 1176 ? Ss Jul17 0:34 /usr/sbin/sshdroot 32109 0.0 0.3 99964 4032 ? Ss 19:54 0:00 ¥_ sshd: root@pts/0root 32111 0.0 0.1 108304 1892 pts/0 Ss 19:54 0:00 | ¥_ -bashroot 878 0.0 0.7 153372 7436 pts/0 Sl+ 20:03 0:00 | ¥_ docker run -t -i --name=madoka ubuntu bashコンテナのなかではPID「1」でも、ホスト側からは別のPIDを持っています。
$ docker ps-aCONTAINER ID IMAGE COMMAND CREATED STATUSPORTS NAMEScdd86dbb4b50 magical_girl:mami "bash" About a minute ago Exited (0) 6 seconds agoinsane_blackwelladd71b4968ba magical_girl:mami "bash" 2 minutes ago Exited (127) About a minute agomad_yalow04bb8e9143b5 magical_girl:mami "bash" 2 minutes ago Exited (0) 2 minutes agocranky_ritchie3fbf384fce5b magical_girl:mami "cat /who.txt" 12 minutes ago Exited (0) 12 minutes agohigh_perlman75ed3382443c magical_girl:madoka "cat /who.txt" 12 minutes ago Exited (0) 12 minutes agoelated_goldstine47f99d7f78a7 magical_girl "bash" 14 minutes ago Exited (0) 14 minutes agojovial_pasteurd4a7018a4949 magical_girl "bash" 18 minutes ago Exited (0) 18 minutes agotrusting_goldstinee1096840bb9e ubuntu "bash" 37 minutes ago Exited (0) 19 minutes agomadoka$ docker rm $(docker ps -aq --filter='status=exited')でも、別々のコンテナIDが作られるので、因果が…容量を圧迫するので、たまに綺麗に片付けましょう。
95.
95Introduction to DockerBasic Course‣ https://hub.docker.com/Docker Hub# docker search wordpressNAME DESCRIPTION STARS OFFICIAL AUTOMATEDwordpress The WordPress rich content management syst... 358 [OK]tutum/wordpress Wordpress Docker image - listens in port 8... 44 [OK]tutum/wordpress-stackable Wordpress Docker image - listens in port 8... 23 [OK]centurylink/wordpress Wordpress image with MySQL removed. 7...ブラウザ上で公式イメージを含む様々な検索が可能です。
96.
物理マシン 物理マシン 物理マシンOSOS OSHyperVisor HyperVisor HyperVisorVM VM VM VM VM VMGuestOSGuestOSGuestOSGuestOSGuestOSGuestOS物理マシン 仮想マシン クラウドOS OS OSDockerEngineDockerEngineDockerEngineApp App App App App AppApp App App App仮想化・クラウド Dockerのコンテナ管理でも、Docker Engineだけでは足りない所があります。
97.
物理マシン 物理マシン 物理マシンOSOS OSHyperVisor HyperVisor HyperVisorVM VM VM VM VM VMGuestOSGuestOSGuestOSGuestOSGuestOSGuestOS物理マシン 仮想マシン クラウドOS OS OSDockerEngineDockerEngineDockerEngineGUICLIAPIDocker Cluster 管理レイヤ( ECS, Docker Swarm, rkt, Rancher …etc )App App App App App App App App App App仮想化・クラウド Dockerのコンテナ管理クラスタ管理部分が今は弱い
98.
物理マシン 物理マシン 物理マシンOSOS OSHyperVisor HyperVisor HyperVisorVM VM VM VM VM VMGuestOSGuestOSGuestOSGuestOSGuestOSGuestOSApp App App App物理マシン 仮想マシン クラウドOS OS OSDockerEngineDockerEngineDockerEngineApp App App App App AppGUICLIAPIDocker Cluster 管理レイヤ( ECS, Docker Swarm, rkt, Rancher …etc )オーケストレーションサービス検出・クラスタ管理仮想化・クラウド Dockerのコンテナ管理色々な動きが進みそうです。
111Introduction to DockerBasic CourseDocker Compose‣ 複数コンテナのアプリケーション自動設定Dockerfile を複数のコンテナに拡張したようなイメージ‣ コマンドラインで操作docker-compose docker-compose.yml‣ Linux, Windows, Mac OS X に対応‣ 構成情報を YAML 形式のファイルで定義
127 / 130TheTao of HashiCorp•最も簡単にするためのワークフローを考え、そこに対応するツールが無ければ作るという設計思想•Unix哲学と同様、全体の問題を解決するのではなく、個々の要素(コンポーネント)に分解•システムや基盤に対するバージョン管理や自動化によって、システムにとっても人にとっても利点となるhttps://hashicorp.com/blog/tao-of-hashicorp.html
Development environments madeeasy. Vagrant isthe defacto way to create and configure lightweight,reproducible, and portable developmentenvironments with support for VirtualBox, VMware,Hyper-V, Docker, and more.Say goodbye to long onboarding times and “works onmy machine” excuses.開発環境を簡単にします。Vagrant は開発環境の作成として広く使われており、簡単な設定、持ち運び可能です。サポートしている環境は VirtualBox、VMware、Hyper-V、Docker 等です。長い待機時間と「私のマシンでは動くのに」問題にサヨナラを。https://vagrantup.com/
Packer is atool for creating images for platformssuch as Amazon AWS, OpenStack, VMware, VirtualBox,Docker, and more – all from a single sourceconfiguration.Common use case for Packer include creatingappliances, pre-baking deployment images, packagingapplications, testing configuration management, andmore.Packer は Amazon AWS、OpenStack、VMware、VirtualBox、Docker といったプラットフォーム向けのイメージを作成するためのツールであり、すべて単一のソースから作成します。アプライアンスにPackerを使うのは一般的な使用例であり、アプリケーションを組み込み、環境構築済みであり、テストされ、設定済みのイメージを提供します。https://packer.io
Serf is alightweight and decentralized solution forcluster membership, failure detection, and orchestration.Serf is used as a building block for highly availablesystems, such as Consul.Serf はクラスタのメンバー管理、障害検出のほか、オーケストレーションを行うための軽量かつ非中央集権的ソリューションです。Serf は Consul という高可用性を持つシステムの確立のためにも使われています。https://serfdiom.io
Consul is adistributed, highly-available, and multi-datacenter aware tool for service discovery, configuration,and orchestration. In the ever-growing datacenter, Consulenables rapid deployment, configuration, and maintenanceof service-oriented architectures.Consul は分散し、高い可用性を持ち、複数のデータセンタでサービス検出や、設定、オーケストレーションを行うためのツールです。成長しつづけるデータセンタにおいて、Consul は迅速なデプロイ、設定、サービス指向アーキテクチャにおける管理機能を提供します。https://consul.io
Terraform allows youto effortlessly combine high-levelsystem providers with you own or with each – fromphysical and virtual servers to email and DNS providers.Once launched, Terraform safely and efficiently changesinfrastructure as the configuration is evolved.Terraform によって、自分自身で持っているかどうかに関わらず、高レベルのシステム、たとえば物理や仮想サーバであったり、メールや DNSプロバイダが提供するシステムを効率的に連携することができます。https://terraform.io
Atlas provides aunified dashboard and workflow fordeveloping, deploying, and maintaining applications onany public, private, or hybrid infrastructure. Developersand operators have a single unified view to manager andprovide visibility for infrastructure.Atlas は開発・デプロイ・アプリケーションの維持を、統一のダッシュボードとワークフローを通し、あらゆるパブリック、プライベート、ハイブリッドなインフラで提供します。開発者と運用担当者は統一画面で一緒に管理し、インフラの可視性を提供するものです。https://atlas.hashicorp.com