SLIDE 1
DevOps ⽇旦常
SLIDE 2 My name is Fung
- NCCU
- ALPHA Camp
- Back-end developer
- DevOps in iCook
SLIDE 3
DevOps in team
SLIDE 4
當⼤夨家在開發的時候
SLIDE 5
當⼤夨家在部署的時候
SLIDE 6
當服務成功上線之後
SLIDE 7
當夜深⼈亻靜的時候
SLIDE 8
所以我們到底在幹⿇麼?
SLIDE 9
⼀丁個support的概念
SLIDE 10
Environment Maintenance Monitor Deploy
SLIDE 11
Elasticsearch Upgrade
SLIDE 12
Security Configurations Instance
SLIDE 13
EC2 + ELB
SLIDE 14
Security Configurations Instance
SLIDE 16 IAM
- 動作 => Read S3
- 對象 => elasticsearch
- 可以做 / 不可以做 => Allow
SLIDE 18 Security Group
- port => 9200-9300
- group => ec2-elasticsearch-group
SLIDE 19
Security Configurations Instance
SLIDE 20 Chef
- write infrastructure as code
- online resources
SLIDE 21
Recipe
include_recipe "monit" include_recipe "java" include_recipe "elasticsearch"
SLIDE 22 Recipe
if url = node[:elasticsearch][:corpus][:ik] script "install_ik_data" do interpreter "bash" user "root" cwd node[:elasticsearch][:default_path] code <<-EOH wget #{url} tar -zxf ik.tar.gz EOH end end
SLIDE 23
AWS Opswork
SLIDE 24
Environment Maintenance Monitor Deploy
SLIDE 25
Deploy flow Review code
SLIDE 26
Pull request on Github
SLIDE 27
Hound CI
SLIDE 28
Travis CI
SLIDE 29
Deploy flow Review code
SLIDE 30
Hubot
SLIDE 31
hubot deploy iCook
SLIDE 32
Heaven Github Hubot AWS Opswork
SLIDE 33
SLIDE 34
Environment Maintenance Monitor Deploy
SLIDE 35
Server Schedule Log
SLIDE 36
Papertrail
SLIDE 37
Loggly
SLIDE 38
Fluentd
SLIDE 39
Server Schedule Log
SLIDE 40 Monit
“mysql” running “nginx” running “elasticsearch” execute failed “td-agent” restarting
SLIDE 41
Librato
SLIDE 42
SLIDE 43
Pingdom
SLIDE 44
Server Schedule Log
SLIDE 45
Pagerduty
SLIDE 46
Environment Maintenance Monitor Deploy
SLIDE 47
Code Climate
SLIDE 48
Bugsnag
SLIDE 49
Skylight
SLIDE 50
Lots of tools and service
SLIDE 51 It works not only
SLIDE 52
Thank you