Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

Miiverse

Slide 4

Slide 4 text

3DS/Wii U Miiverse

Slide 5

Slide 5 text

Miiverse

Slide 6

Slide 6 text

Miiverse Miiverse Git

Slide 7

Slide 7 text

Miiverse

Slide 8

Slide 8 text

Wii U 3DS Mii

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Web

Slide 12

Slide 12 text

Miiverse API /

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

3 Miiverse Amazon Web Services (AWS) JP/US/EU 3

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

REST API

Slide 17

Slide 17 text

JAWS UG Developers Summit http://developer.hatenastaff.com/entry/2014/03/25/1 85521 https://speakerdeck.com/hatena/devsumi-2015- miiverse

Slide 18

Slide 18 text

Miiverse

Slide 19

Slide 19 text

Miiverse

Slide 20

Slide 20 text

Capistrano2 & Git Git Git git pull Pull

Slide 21

Slide 21 text

Capistrano2 & Git git pull Miiverse 3 git pull Git git pull

Slide 22

Slide 22 text

Git Git Slave Miiverse Git Slave Git Slave git pull

Slide 23

Slide 23 text

Git Git Slave Git Slave 10 1 lsyncd inode rsync git push lsyncd rsync

Slide 24

Slide 24 text

Git Git Git Slave Wii U 3DS etc... Git Slave sleep `expr $RANDOM % #{$main.sleep_divisor}` && git ...

Slide 25

Slide 25 text

Git lsyncd JS CSS Git rsync git fetch

Slide 26

Slide 26 text

Git Git Slave Git

Slide 27

Slide 27 text

tips

Slide 28

Slide 28 text

tips Capistrano role Mackerel API net-ssh

Slide 29

Slide 29 text

tips Mackerel https://mackerel.io/

Slide 30

Slide 30 text

tips Mackerel role Capistrano

Slide 31

Slide 31 text

tips Mackerel Mackerel AutoScale Mackerel / cron kick EC2

Slide 32

Slide 32 text

tips DB

Slide 33

Slide 33 text

Miiverse Miiverse Pull Cap2 Git Git Git Slave Git Slave

Slide 34

Slide 34 text

Git

Slide 35

Slide 35 text

Miiverse Redmine

Slide 36

Slide 36 text

Miiverse Redmine GitHub Enterprise NEW!

Slide 37

Slide 37 text

2 git push git push ghe master git push origin master Merge pull request GHE

Slide 38

Slide 38 text

Git

Slide 39

Slide 39 text

google/hesokuri ghm

Slide 40

Slide 40 text

hesokuri google/hesokuri Distributed Git repo synchronization tool. Google Git

Slide 41

Slide 41 text

ghm in-house Web Application for mirroring pairs managements Stores mirroring pairs Has Webhook API that invoke mirroring (later) Provides some APIs @ GHE 2 GREE Tech Talk

Slide 42

Slide 42 text

ghm

Slide 43

Slide 43 text

ghm

Slide 44

Slide 44 text

3 ghm Miiverse

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

JSON over HTTP API

Slide 47

Slide 47 text

REST API Git : /servers(/:id) : /servers/:id/promote, /servers/:id/demote : /servers/:server_id/repos(/:id) : /jobs/sync

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

GHE

Slide 50

Slide 50 text

(1) GHE git push

Slide 51

Slide 51 text

(2) GHE Webhook

Slide 52

Slide 52 text

(3) Webhook payload

Slide 53

Slide 53 text

(4) Git Slave DB

Slide 54

Slide 54 text

(5) Git Slave DB

Slide 55

Slide 55 text

(6) GHE git pull

Slide 56

Slide 56 text

(7) git push

Slide 57

Slide 57 text

GHE 1. GHE git push 2. GHE Webhook 3. payload 4. Git 5. Git 6. GHE git pull 7. git push

Slide 58

Slide 58 text

HTTP POST github.com GHE Git

Slide 59

Slide 59 text

Git Git Git git push --force

Slide 60

Slide 60 text

ghm

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

Git Pull Git Pull 2 1. commit 2.

Slide 64

Slide 64 text

Git Pull Miiverse Git 3

Slide 65

Slide 65 text

Pull

Slide 66

Slide 66 text

Consul + stretcher strecher Pull Hashicorp Consul http://tech.kayac.com/archive/10_stretcher.html https://github.com/fujiwara/stretcher

Slide 67

Slide 67 text

Consul + stretcher 1. Amazon S3 2. manifest (YAML) Amazon S3 3. consul event 4. stretcher agent

Slide 68

Slide 68 text

Consul + stretcher Amazon S3 Git manifest rollback manifest

Slide 69

Slide 69 text

Consul + stretcher Jenkins Amazon S3

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

1) GHE git push

Slide 72

Slide 72 text

2) GHE webhook Jenkins

Slide 73

Slide 73 text

3) Jenkins S3 push

Slide 74

Slide 74 text

4) Consul master

Slide 75

Slide 75 text

5) backend S3

Slide 76

Slide 76 text

Git Cap2 & Git Consul + stretcher

Slide 77

Slide 77 text

100 AWS JP/US/EU Miiverse

Slide 78

Slide 78 text

Cap2 & Git 1,142 Consul + strecher 29 strecher 40 !

Slide 79

Slide 79 text

Consul + strecher Cap2 & Git Consul + strecher deploy:update git pull vs S3 DL

Slide 80

Slide 80 text

Consul + strecher carton install 210 1/10 carton install Cap2 & Git

Slide 81

Slide 81 text

1 AutoScale Consul + strecher

Slide 82

Slide 82 text

2 Miiverse Miiverse 3 Consul https://www.consul.io/docs/guides/datacenters.html

Slide 83

Slide 83 text

Pull Consul + stretcher Miiverse 40 AutoScale

Slide 84

Slide 84 text

Miiverse Miiverse Pull Git Git Consul + stretcher

Slide 85

Slide 85 text

No content

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

No content