2. MMIK HUANG
6 years in Trend, 2 years in IT and 4 years in QA
12 years IT industry
2014 project: SecureCloud disk encryption service @ AWS
Current project: Deep Security @ Azure
3. PAIN POINT FOR RD/QA
在過去4年的測試經驗中,發現最花時間的幾件事情有以下幾點
In the previous 4 years experience, the pain point from RD/QA
New feature/OS support.
Prepare New OS template
Keep system up to date
Lab testing environment
GA Deploy
Collect log
4. Cloud Service 可以幫助你解決的問題有哪些 ?
What kind of cloud services you can use ?
21. MLB
7TB of data per game, 2340 games per session = 17PB of raw data
How will statcast change baseball (5:21)
https://www.youtube.com/watch?v=847HY-JATrs
SUCCESS STORIES
22.
23. Yelp
http://www.yelp.com/
http://www.businessinsider.com/pacific-trust-
thinks-yelp-is-deteriorating-2015-4
Map of restaurants
S3: 1.2TB log per day
Hadoop
MapReduce job: 30TB / 250 jobs
SUCCESS STORIES
28. 出發前,當時測試環境的狀態
嘗試使用AWS做測試環境,beta site,staging site
嘗試透過AWS 作環境自動化
嘗試建立 log collect system
The status before AWS Re:invent
Try to use AWS as test lab, beta site and staing server
Try to use 3rd party tool to build environment automatically
Survey and build log collect system.
29. 出發前收到 AWS 2014 Re:invent 的重點項目
The hightlights of AWS 2014 Re:invent
Service
App development & mgmt.
Big data & DR
Security
AWS development tool
All kind of architecture
Success stories in different view
AWS infra enhance
34. 早起的鳥兒 AWS 有得吃,準時開動準時開課,記得帶個水瓶去,沙漠水很貴
Get up early, you can get breakfast from AWS ($0, $28.99)
Water is free in AWS, but not free outside
35. 人實在太多,很多資源都是有限的,座位,食物,正妹解說員 : P
Attend to any session on time, everything is limited, food , seats, even representative : P
36. 這次參加AWS Re:Invent最大的收穫,不是上課,是認識人
問講師問題,快速判斷哪些自動化服務可用,跟講師留聯絡資訊
吃飯時跟旁邊其他的公司員工打屁,順便 promote 一下自己的產品
去 Booth 看哪些廠商的產品可以試用看看
The best experience from AWS Re:Invent is not the sessions, is ….
Asking questions to presenter, learning failure experience from them
Talking to the people seat with you, lunch with you, get some feedback related
to your own product
Going to booth and survey what you can use on the market
37. 要認識人,記得要帶名片,還有準備一個 twitter account
Bring your name cards there!!! As possible as you can, left email to 3rd party venders and
get evaluate license for service you are interesting.
People use twitter there, not facebook, not line, not skype
40. 回去後,運用新知識,做出測試環境自動化
把小範圍測試,擴大測試範圍到100個OS
把python code 移植到 aws
利用 chef 做到auto launch/purge vm
利用 Sumologic 蒐集log
After back home, we use knowledge to enhance QA testing
Extend OS coverage to 100
Use the same python code to test AWS, ETS lab vm
Use chef to build environment on AWS
Use Sumologic as log collect system
42. 過去,非常多的地方需要QA花時間,人力下去準備
Too many human resource (QA) manually trigger script, maintain environment
Phrase1 prepare environment
[QA] Launch AWS instance
[QA] install staff
[QA] Setup related environment information (hosts, DNS, shell)
[QA] Save as template
[QA] Study AWS api, write code to handle instance (start,stop)
Phrase 2 trigger test
[QA] Launch AWS instance
[QA] execute python + staff
[staff] Deploy testing code
[staff] Trigger testing and collect result/log
Phrase 3 get log and test result
[QA] check instance one by one, cost high for investigate
43. 經過環境自動化改善後,每個階段都大幅減少人力的時間
After leverage new knowledge, we can do things smart than before
Phrase1 prepare environment
[AWS] leverage default aws template, no need to customize
Phrase 2 trigger test
[QA] Launch AWS instance
[Chef] execute python + staff
[staff] Deploy testing code
[staff] Trigger testing and collect result/log
Phrase 3 get log and test result
[Sumologic] collect log to Lab server
[QA] check log, reproduce fail case
44. 並且讓品質測試更穩定,涵蓋率更高,需要的人力更少
Product background
Support OS template on AWS: 58 (windows/linux)
Support AWS 11 regions (different region with different AWS template)
Aws will renew template every 6 months
AWS templates/regions will increase day by day
Old day:
Prepare 58 template every 6 months (launch instance, implement staff, save as template)
Maximum coverage will be 638 templates (58*11) * ? hours
Can not collect log back to lab
New way:
No need to prepare template, use default AWS template
Using chef to launch instance in 15 sec then deploy staf/python code to client
Collect log back to lab for investigate.
45. 新架構的好處
Benefit for new test framework
Benefit – easy scale out
CSP (HP/Azure/AWS/vCloud…….)
Zone (public/VPC/US/JP…..)
OS (RHEL/Cent/uBuntu….)
Benefit – easy adopt current test script
You can move any shell command into chef
Benefit – efficient
testing for 1 instance from [1 day ] to [10-15 min]
Benefit – Cost
No storage cost for keep customized templates
Benefit – easy investigate
reduce cost for keep AWS vm running
Centralized console for log search
49. Create your first cookbook
http://learn.getchef.com/legacy/tutorials/create-your-first-cookbook/
Learning Chef on Youtube
http://www.youtube.com/channel/UCxEieNpB_tXiUBoF9zkPmAw
http://nathenharvey.com/blog/2012/12/06/learning-chef-part-1/
Example
http://gettingstartedwithchef.com/first-steps-with-chef.html