inside windows azure web sites

26
Inside Windows Azure Websites Microsoft Corporation 河野 通宗

Upload: developer-camp-2012-japan-fall

Post on 26-May-2015

7.466 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Inside Windows Azure Web Sites

InsideWindows Azure Websites

Microsoft Corporation河野通宗

Page 2: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

自己紹介

• Azure Web サイトを作っています

• SDET です

• こんなところで働いてます

Page 3: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

自己紹介

• チーム全体で 40 人くらいです ( Dev / Test / PM )

• 他の AAPT チームも近くにいます

Page 4: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

Agenda

• Azure Websites 概要

•開発動機

•内部動作の詳細

•保守・監視機構

•開発プロセス

Page 5: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

Windows Azure Websites とは

Start Simple

数クリックで作成完了

メジャーなOSSに対応

データベース提供

10サイトまで無料

Go Live Rapid Scale

Scale out

Scale up/down

Page 6: Inside Windows Azure Web Sites

Demo

Page 7: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

必要は発明の母

デプロイ時間

容易でないスケール変更

既存資産を再利用しづらい

ストレージの保守

スケーリング困難

複雑な初期設定

ミニプロジェクト開始 プロジェクト開始

Antares

Page 8: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

Antares 開発 principles (たぶん)

• 単一ビルドで をサポート

の確保されたマルチテナント環境

重視(ダウンタイムをゼロに近づける)

低下をできるだけ抑える

Page 9: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

Websites master

API endpoint

Azure Infrastructure(portal, DNS, etc)

Stamp3

Stamp2

Stamp1

全体構成

Page 10: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

Websites master

API endpoint

Azure Infrastructure(portal, DNS, etc)

Stamp3

Stamp2

Stamp1

サイト新規作成site1

create

site1

site1@Stamp2

Page 11: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

Websites master

API endpoint

Azure Infrastructure(portal, DNS, etc)

Stamp3

Stamp2

Stamp1

サイト呼び出し

HTTP

site1?

IP

Stamp3

Stamp1

DNS query

HTTP

External endpoint

Internal endpoint

site1@Stamp2

Page 12: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

HTTP WebWorkerWebWorker

WebWorkerFrontend(IIS ARR)

SQL Database VHD blobs

SQL Database

API endpoint

Publish endpoint

File Server

WebWorker

サイト呼び出し(Cold)

http://site1..../

Page 13: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

Frontend(IIS ARR)

SQL Database

VHD blobs

SQL Database

API endpoint

Publish endpoint

File Server

サイト呼び出し(Cold)

WebWorker

site1site1

Page 14: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

HTTP WebWorkerWebWorker

WebWorker

SQL Database VHD blobs

SQL Database

API endpoint

Publish endpoint

File Server

サイト呼び出し(Hot)

http://site1..../

site1

WebWorker

Frontend(IIS ARR)

Page 15: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

ストレージ

File Server

File Server

File Server

File Server

File Server

Page 16: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

ストレージ

1TB × 100=

1TB × 100=

1TB × 100=

Page 17: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

リージョンとサイト

サブスクリプション: 課金の単位

Page 18: Inside Windows Azure Web Sites

Demo

Page 19: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

ソースコントロール

Git プロトコルで通信

Push notification を受けて pull 実行

ASP.NET/mvc は Web サイトがビルド

TFS サーバがビルド

WebDeploy で Web サイトにデプロイ

ユーザは気にする必要なし!使い慣れたリポジトリを使い続ければOK!

Page 20: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

WebWorker

Frontend(IIS ARR)

SQL Database

API endpoint

Publish endpoint

File Server

監視系

Page 21: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

開発プロセス

• 1スプリント=約3~6週間

• Feature crew 単位で scrum

• 役割• PM: スケジューリング、バグ管理、Live Site 諸々

• Dev: 設計・実装・バグ修正

• Test: テストの設計・実装・実行・バグ修正、Sign off

• Ops: 運用環境デプロイ、監視

• Servicing Loop

Page 22: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

テスト: すべて自動化

• 機能テスト

• End-to-end シナリオテスト

• ストレステスト

• パフォーマンステスト

• 可用性テスト

• セキュリティテスト

• アップグレードテスト

• アプリケーション互換性テスト

Page 23: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

アップグレード

• VIP swap 不使用

• ダウンタイム ゼロ

• データベースのフリーズなし

Page 24: Inside Windows Azure Web Sites

Developer Camp | 2012 Japan Fall

どんどん使ってください!

• フィードバックお待ちしてます

• 面白い使いかたをお待ちしてます

• これからも改善を続けます

Page 25: Inside Windows Azure Web Sites

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of

Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Page 26: Inside Windows Azure Web Sites