さくらのIoT Platform αの裏側すべて見せます(第32回さくらの夕べ in 沖縄)

Preview:

Citation preview

さくらインターネットのIoT

(C) Copyright 1996-2016 SAKURA Internet Inc.

2016/07/06 @ さくらの⼣べ in 沖縄

さくらインターネット 技術本部 江草 陽太

(C) Copyright 1996-2016 SAKURA Internet Inc.

@

⾃⼰紹介 江草 陽太

2

(C) Copyright 1996-2016 SAKURA Internet Inc.

3

⾃⼰紹介

(C) Copyright 1996-2016 SAKURA Internet Inc. 4

IoT

(C) Copyright 1996-2016 SAKURA Internet Inc. 5

IoTと呼ばれているもの

(C) Copyright 1996-2016 SAKURA Internet Inc. 6

(C) Copyright 1996-2016 SAKURA Internet Inc. 7

(C) Copyright 1996-2016 SAKURA Internet Inc. 8

Sensor

UI

API

IoTPF

Sensor

UI

API

IoTPF

Sensor

UI

API

IoTPF

(C) Copyright 1996-2016 SAKURA Internet Inc.

さくらのIoT Platform で提供するもの

IoTSoracom Softbank

IoT

- Outgoing Webhook

- WebSocket

12

(C) Copyright 1996-2016 SAKURA Internet Inc. 13

OtherOur

Services

Customer site SAKURA

SAKURACommunication

Board

SAKURAIoT

Platform

OurPartner’sServicesThings

SAKURAIoT

Platform

(C) Copyright 1996-2016 SAKURA Internet Inc. 14

通信 モジュール

通信 モジュール

通信 モジュール

通信 モジュール 認証・認可

連携情報

通信モジュールからのデータの流れ

接続管理 リアルタイム処理

蓄積サービス連携

⾃社

サー

ビス

(C) Copyright 1996-2016 SAKURA Internet Inc. 15

通信 モジュール

通信 モジュール

通信 モジュール

通信 モジュール 認証・認可

連携情報

通信モジュールからのデータの流れ

接続管理 リアルタイム処理

蓄積サービス連携

⾃社

サー

ビス

(C) Copyright 1996-2016 SAKURA Internet Inc. 16

通信 モジュール

通信 モジュール

通信 モジュール

通信 モジュール 認証・認可

連携情報

通信モジュールからのデータの流れ

接続管理 リアルタイム処理

蓄積サービス連携

⾃社

サー

ビス

WEB

(C) Copyright 1996-2016 SAKURA Internet Inc. 17

(C) Copyright 1996-2016 SAKURA Internet Inc. 18

さくらのIoT 通信

モジュール

さくらのIoT 通信

モジュール

(C) Copyright 1996-2016 SAKURA Internet Inc. 19

Demo

(C) Copyright 1996-2016 SAKURA Internet Inc. 20

• 3G/LTEモデム

• ARMマイコン (STM32)

• RTOS (FreeRTOS)

• TCP/IPプロトコルスタック (LwIP)

• HTTP・MQTT等(独⾃実装)

通信モジュール側

(C) Copyright 1996-2016 SAKURA Internet Inc. 21

• GSLB

• DNSコンテンツ・キャッシュ

• データベース

• RabbittMQ

• Mesosマスタ+Dockerクラスタ

• Webロードバランサ

• BGPルータ

• サービス収容ルータ

• Docker Repository

データセンター側

(C) Copyright 1996-2016 SAKURA Internet Inc. 22

全て“さくらのクラウド”でできてます

ハイブリッド接続/プライベートリンクVPCルーター

Sacloudモジュール GSLB・DNS シンプル監視

(C) Copyright 1996-2016 SAKURA Internet Inc. 23

アプリケーションのデプロイ

必要なコンテナを必要な数だけ必要な場所にデプロイすることが可能

(C) Copyright 1996-2016 SAKURA Internet Inc. 24

クラスタ環境はAnsibleで構築

さくらのクラウドで作るMesos+Marathon+Dockerクラスタ環境

(C) Copyright 1996-2016 SAKURA Internet Inc. 25

(参考) Marathon UI

(C) Copyright 1996-2016 SAKURA Internet Inc. 26

MarathonによるBlue-Greenデプロイ

MarathonのAPIと連携するロードバランサを開発

• API経由でバージョンの切り替えが可能

• イメージの作成からデプロイ、          切り替えが⾃動化可能に

GitHub:e → ビルド/デプロイ → テスト → 切り替え

(C) Copyright 1996-2016 SAKURA Internet Inc. 27

ファームウエアの更新

1MB FLASH0x00000000

0x00020000

0x00100000

更新しない →

更新する →⾃

⾝を

書き

換え

る• 提供するファームウエアの管理

• 暗号化等による耐タンパ性

(C) Copyright 1996-2016 SAKURA Internet Inc. 28

さくらのIoT Platform α 利⽤例

Web Slack

Outgoing Webhook AP

(C) Copyright 1996-2016 SAKURA Internet Inc. 29

さくらのIoT Platform α 利⽤例

(C) Copyright 1996-2016 SAKURA Internet Inc.

OtherOur

Services

Customer site SAKURA

SAKURACommunication

Board

SAKURAIoT

PlatformSAKURA

IoTPlatform

Slack

30

(C) Copyright 1996-2016 SAKURA Internet Inc.

”T”

31

(C) Copyright 1996-2016 SAKURA Internet Inc. 32

(C) Copyright 1996-2016 SAKURA Internet Inc. 33

(C) Copyright 1996-2016 SAKURA Internet Inc. 34

(C) Copyright 1996-2016 SAKURA Internet Inc. 35

(C) Copyright 1996-2016 SAKURA Internet Inc.

(C) Copyright 1996-2016 SAKURA Internet Inc. 37

(C) Copyright 1996-2016 SAKURA Internet Inc.

(C) Copyright 1996-2016 SAKURA Internet Inc. 39

(C) Copyright 1996-2016 SAKURA Internet Inc.

スカイスポーツ

40

(C) Copyright 1996-2016 SAKURA Internet Inc.

パラグライダー

41

(C) Copyright 1996-2016 SAKURA Internet Inc.

携帯回線は使えない︕

42

(C) Copyright 1996-2016 SAKURA Internet Inc. 43

Recommended