SlideShare a Scribd company logo
1 of 30
Umeng Operations Infrastructure & Practice
Wang Yuxi, Umeng
w@umeng.com
About Me
โ— Before 2014, the only ops at Umeng
โ— Now, core member of ops team
โ— Technical generalist, responsible for the overall reliability and performance
of Umeng
โ— ArchLinux user
@Jasey_Wang | http://JaseyWang.Me
Agenda
โ— About Umeng
โ— IDC
โ— Network
โ— Server
โ— Product
โ— On Giantโ€™s Shoulders
โ— OS
โ— User Management
โ— Critical Infrastructure
โ— Package Management
โ— Code Deployment
โ— Configuration Management
โ— Monitoring
โ— Tuning
โ— Documation
โ— Outage & Diagnose
โ— Security
โ— With Dev
โ— What We Are Doing Now
About Umeng
โ— Founded on April 2010
โ— Incubated by Innovation
Works
โ— $10 Million raised from
Matrix China
โ— Acquired by Alibaba
โ— Largest Mobile app
analytical platform in
China
โ— 400K+ Apps
โ— ~1B mobile device
IDC
โ— IDC
o 3 + 1
โ— Rack
o ~90
โ— Server
o 800+
โ— Network device
o 100+
Network
โ— Bandwidth
o 4Gbps+
o BGP cost
โ— Internal Network
o 10G interconnection
o Third Network arch
๏‚ง Upgrade on Q2, 2014
๏‚ง Nexus 752
๏‚ง Bonding
o OOB issue
Network(cont.)
Server
โ— Before 2014
o Dell(11G, 12G)
โ— Now
o Dell, HP, Huawei, Inspur
โ— 10G NIC, enterprise SSD
โ— Power supply, hot-plug, redundant
โ— Hard drive, hot-plug
Product
โ— Real time analytics(thunder)
o 150k req/s
o ~ 5B log/d
o 100+ shards
โ— Batch processing system(iceberg)
o ~ 300 2U node, 2T/3T, 7200 SAS
o ~ 3T/d daily incremental data
o 4P/5P usage
โ— Push, Social
Product(cont.)
On Giantโ€™s Shoulders
โ— OSS
o Nginx(Tengine)
o Finagle, Thrift
o Redis
o Kafka
o Storm
o MongoDB
o Hadoop & ecosystem
โ— Enterprise
o Google apps
o Github enterprise
o Redhat
o NewRelic
o CDN
OS
โ— Before 2013
o Ubuntu 10.04/12.04
โ— Now
o RedHat 6.2, 2.6.32-279(80%)
o professional technical support
โ— BIOS, RAID
o automatic tools
o done before delivery
http://goo.gl/TyDEVR
OS(cont.)
โ— OS template
o ks & preseed(great pain)
o partition(ext3/ext4, mount options)
o unnecessary service(irqbalance, cpuspeed, netfilter, etc.)
o sshd, monitoring agent
o handy tools(nmap, tcpdump, htop, iftop, screen, etc.)
o lang(Java/Scala, Python, Ruby)
โ— Custom init setup via Cobbler
โ— Added automatically by Zabbix
User Management
โ— OpenVPN(multi path)
o Incredibly stable for 3 years, ZERO outage
o TCP vs UDP
โ— Public key
o OK for startup, quick & dirty
โ— IPA(identity, policy, audit(snoopy))
o preferred
โ— Headache for us, history reason
o engineers enjoy the โ€œfree styleโ€
o so, the sooner the better
Critical Infrastructure
โ— DNS
o use IP, not hostname in your code
o retry, timeout
โ— NTP
โ— Netfilter
o disabled by default
o conntrack
o NAT server
Package Management
โ— Internal repo
o sync periodically
o GFWed issue :-(
โ— Really need compile?
โ— package manager
o yum/apt
o rpm/dpkg
o how we use them
โ— One package principle
o rpm
o tgz
Code deployment
โ— Capistrano
o Written in Ruby
o Deploy any language
o Easy to use
โ— Configuration management
o dev use
o ops
Configuration Management
โ— 2011
o tens of servers
o free to use, mainly shell
โ— 2012 ~ 2013
o just ME
o Puppet is ok, learn some
Ruby
o tens of modules written by
me
โ— Now
o prerequisite
๏‚ง team skill tree
๏‚ง learning curve
o Puppet
๏‚ง obsolete in new IDC
๏‚ง complex syntax, slow
o Saltstack
๏‚ง easy to pick up
๏‚ง flexible & plain
๏‚ง ansible as backup
o Python/ruby scripts, product
level
Monitoring
โ— Metrics, Metrics, Metrics!!!
โ— โ€œAll monitoring software evolves towards becoming an
implementation of Nagiosโ€
http://goo.gl/PvBYky
Monitoring(cont.)
โ— From top to bottom
o customer perspective
o business level(dau, etc.), critical sensitive
o application level(qps, latency, return code, exception)
o system level(load, nic, cpu, memory)
๏‚ง fork
๏‚ง swap in/out
๏‚ง nic speed/drops/errors
๏‚ง tcp queue, retransmit
o hardware level
Monitoring(cont.)
โ— Ideal
o near-real time
o flexible, 5s, 60s, 300s,
1800s
o comparable by date/time
o active/passive or just feed
โ— Dashboard(core metric)
โ— Before
o Nagios/Munin(out of box)
โ— Now
o Zabbix/Graphite
o networkbench,
alibench(user end)
o New relic
โ— log
o rsyslog
o ELK
o scripts
Tuning
โ— From app level to system level
โ— App level, not covered here
โ— System level, take away for common use
โ— Donโ€™t forget hardware(BIOS, RAID)
โ— Baseline comes first
โ— One modification one time
โ— Never over-optimized
o โ€œit worksโ€, then โ€œit runs happilyโ€
o business driven
Tuning(cont.)
โ— Donโ€™t modify kernel
parameter unless 100%
sure
o timestamp issue
o ecn issue
โ— Tcp related
โ— Ring buffer, interrupts,
open files, etc.
โ— DB, watch out
Documentation
โ— Routine
o regular deploy & setup, weekly report
o online standard, 100+ slides for engineer
o ops share every Thu
โ— Post-Mortem
o blameless
o timeline & deadline
โ— Github Wiki & Google Docs
Outage & Diagnose
โ— This year(2014)
o SLA 99% ~ 99.9%
o issues every week, mostly invisible to customers
โ— When site is down
o from bottom to top, vice-versa
o good bug can reproduce
o tools are key power
๏‚ง system http://goo.gl/wrNLi7
๏‚ง app
o inform support & bd
o technical background share(http://blog.umeng.com/?cat=4)
โ— Network is a unreliable, and it can breakdown
Security
โ— IP issue, long long
history
o public & private ip
o port restricted, listen()
o oob
โ— test IDC
โ— UDP amplification
โ— Bash, SSL vulnerability
โ— DDoS
โ— whitehat(WooYun, etc.)
http://goo.gl/Q1SkXV
With Dev
โ— Tradeoff
o less devโ€™s work usually means more reliable system
o there will always be conflicts between ops & dev
๏‚ง unless one of them gives in
๏‚ง aggressive or mild, choose one
โ— Understand business logic
o code talks
o data talks
http://goo.gl/Qwh6Ze
What We Are Doing Now
โ— New IDCs, New beginning, Great challenge
o active - backup
o active - active
โ— Transfer data from BJ to SH
โ— Env setup, stress test, benchmark
โ— Finally, switchover
http://goo.gl/TMDnnS
What We Are Doing Now(cont.)
โ— Private Cloud
o capex & opex
o resource(hardware,
software)
o workforce
End
Q & A

More Related Content

Recently uploaded

VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
SUHANI PANDEY
ย 
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
ย 
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
SUHANI PANDEY
ย 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
SUHANI PANDEY
ย 
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
SUHANI PANDEY
ย 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
singhpriety023
ย 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
SUHANI PANDEY
ย 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
SUHANI PANDEY
ย 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 

Recently uploaded (20)

VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
ย 
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
๐Ÿ“ฑDehradun Call Girls Service ๐Ÿ“ฑโ˜Ž๏ธ +91'905,3900,678 โ˜Ž๏ธ๐Ÿ“ฑ Call Girls In Dehradun ๐Ÿ“ฑ
ย 
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Prashant Vihar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
ย 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
ย 
Top Rated Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund โŸŸ 6297143586 โŸŸ Call Me For Genuine Sex Servi...
ย 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
ย 
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
ย 
Microsoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck MicrosoftMicrosoft Azure Arc Customer Deck Microsoft
Microsoft Azure Arc Customer Deck Microsoft
ย 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
ย 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
ย 
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service โ˜Ž๏ธ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
ย 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
ย 
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
ย 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
ย 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
ย 
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
Pirangut | Call Girls Pune Phone No 8005736733 Elite Escort Service Available...
ย 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
ย 
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
ย 
All Time Service Available Call Girls Mg Road ๐Ÿ‘Œ โญ๏ธ 6378878445
All Time Service Available Call Girls Mg Road ๐Ÿ‘Œ โญ๏ธ 6378878445All Time Service Available Call Girls Mg Road ๐Ÿ‘Œ โญ๏ธ 6378878445
All Time Service Available Call Girls Mg Road ๐Ÿ‘Œ โญ๏ธ 6378878445
ย 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
ย 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
ย 

Featured (20)

2024 State of Marketing Report โ€“ by Hubspot
2024 State of Marketing Report โ€“ by Hubspot2024 State of Marketing Report โ€“ by Hubspot
2024 State of Marketing Report โ€“ by Hubspot
ย 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
ย 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
ย 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ย 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
ย 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
ย 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
ย 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
ย 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
ย 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
ย 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
ย 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ย 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
ย 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
ย 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
ย 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
ย 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
ย 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
ย 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
ย 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
ย 

Umeng Operations Infrastructure & Practice

  • 1. Umeng Operations Infrastructure & Practice Wang Yuxi, Umeng w@umeng.com
  • 2. About Me โ— Before 2014, the only ops at Umeng โ— Now, core member of ops team โ— Technical generalist, responsible for the overall reliability and performance of Umeng โ— ArchLinux user @Jasey_Wang | http://JaseyWang.Me
  • 3. Agenda โ— About Umeng โ— IDC โ— Network โ— Server โ— Product โ— On Giantโ€™s Shoulders โ— OS โ— User Management โ— Critical Infrastructure โ— Package Management โ— Code Deployment โ— Configuration Management โ— Monitoring โ— Tuning โ— Documation โ— Outage & Diagnose โ— Security โ— With Dev โ— What We Are Doing Now
  • 4. About Umeng โ— Founded on April 2010 โ— Incubated by Innovation Works โ— $10 Million raised from Matrix China โ— Acquired by Alibaba โ— Largest Mobile app analytical platform in China โ— 400K+ Apps โ— ~1B mobile device
  • 5. IDC โ— IDC o 3 + 1 โ— Rack o ~90 โ— Server o 800+ โ— Network device o 100+
  • 6. Network โ— Bandwidth o 4Gbps+ o BGP cost โ— Internal Network o 10G interconnection o Third Network arch ๏‚ง Upgrade on Q2, 2014 ๏‚ง Nexus 752 ๏‚ง Bonding o OOB issue
  • 8. Server โ— Before 2014 o Dell(11G, 12G) โ— Now o Dell, HP, Huawei, Inspur โ— 10G NIC, enterprise SSD โ— Power supply, hot-plug, redundant โ— Hard drive, hot-plug
  • 9. Product โ— Real time analytics(thunder) o 150k req/s o ~ 5B log/d o 100+ shards โ— Batch processing system(iceberg) o ~ 300 2U node, 2T/3T, 7200 SAS o ~ 3T/d daily incremental data o 4P/5P usage โ— Push, Social
  • 11. On Giantโ€™s Shoulders โ— OSS o Nginx(Tengine) o Finagle, Thrift o Redis o Kafka o Storm o MongoDB o Hadoop & ecosystem โ— Enterprise o Google apps o Github enterprise o Redhat o NewRelic o CDN
  • 12. OS โ— Before 2013 o Ubuntu 10.04/12.04 โ— Now o RedHat 6.2, 2.6.32-279(80%) o professional technical support โ— BIOS, RAID o automatic tools o done before delivery http://goo.gl/TyDEVR
  • 13. OS(cont.) โ— OS template o ks & preseed(great pain) o partition(ext3/ext4, mount options) o unnecessary service(irqbalance, cpuspeed, netfilter, etc.) o sshd, monitoring agent o handy tools(nmap, tcpdump, htop, iftop, screen, etc.) o lang(Java/Scala, Python, Ruby) โ— Custom init setup via Cobbler โ— Added automatically by Zabbix
  • 14. User Management โ— OpenVPN(multi path) o Incredibly stable for 3 years, ZERO outage o TCP vs UDP โ— Public key o OK for startup, quick & dirty โ— IPA(identity, policy, audit(snoopy)) o preferred โ— Headache for us, history reason o engineers enjoy the โ€œfree styleโ€ o so, the sooner the better
  • 15. Critical Infrastructure โ— DNS o use IP, not hostname in your code o retry, timeout โ— NTP โ— Netfilter o disabled by default o conntrack o NAT server
  • 16. Package Management โ— Internal repo o sync periodically o GFWed issue :-( โ— Really need compile? โ— package manager o yum/apt o rpm/dpkg o how we use them โ— One package principle o rpm o tgz
  • 17. Code deployment โ— Capistrano o Written in Ruby o Deploy any language o Easy to use โ— Configuration management o dev use o ops
  • 18. Configuration Management โ— 2011 o tens of servers o free to use, mainly shell โ— 2012 ~ 2013 o just ME o Puppet is ok, learn some Ruby o tens of modules written by me โ— Now o prerequisite ๏‚ง team skill tree ๏‚ง learning curve o Puppet ๏‚ง obsolete in new IDC ๏‚ง complex syntax, slow o Saltstack ๏‚ง easy to pick up ๏‚ง flexible & plain ๏‚ง ansible as backup o Python/ruby scripts, product level
  • 19. Monitoring โ— Metrics, Metrics, Metrics!!! โ— โ€œAll monitoring software evolves towards becoming an implementation of Nagiosโ€ http://goo.gl/PvBYky
  • 20. Monitoring(cont.) โ— From top to bottom o customer perspective o business level(dau, etc.), critical sensitive o application level(qps, latency, return code, exception) o system level(load, nic, cpu, memory) ๏‚ง fork ๏‚ง swap in/out ๏‚ง nic speed/drops/errors ๏‚ง tcp queue, retransmit o hardware level
  • 21. Monitoring(cont.) โ— Ideal o near-real time o flexible, 5s, 60s, 300s, 1800s o comparable by date/time o active/passive or just feed โ— Dashboard(core metric) โ— Before o Nagios/Munin(out of box) โ— Now o Zabbix/Graphite o networkbench, alibench(user end) o New relic โ— log o rsyslog o ELK o scripts
  • 22. Tuning โ— From app level to system level โ— App level, not covered here โ— System level, take away for common use โ— Donโ€™t forget hardware(BIOS, RAID) โ— Baseline comes first โ— One modification one time โ— Never over-optimized o โ€œit worksโ€, then โ€œit runs happilyโ€ o business driven
  • 23. Tuning(cont.) โ— Donโ€™t modify kernel parameter unless 100% sure o timestamp issue o ecn issue โ— Tcp related โ— Ring buffer, interrupts, open files, etc. โ— DB, watch out
  • 24. Documentation โ— Routine o regular deploy & setup, weekly report o online standard, 100+ slides for engineer o ops share every Thu โ— Post-Mortem o blameless o timeline & deadline โ— Github Wiki & Google Docs
  • 25. Outage & Diagnose โ— This year(2014) o SLA 99% ~ 99.9% o issues every week, mostly invisible to customers โ— When site is down o from bottom to top, vice-versa o good bug can reproduce o tools are key power ๏‚ง system http://goo.gl/wrNLi7 ๏‚ง app o inform support & bd o technical background share(http://blog.umeng.com/?cat=4) โ— Network is a unreliable, and it can breakdown
  • 26. Security โ— IP issue, long long history o public & private ip o port restricted, listen() o oob โ— test IDC โ— UDP amplification โ— Bash, SSL vulnerability โ— DDoS โ— whitehat(WooYun, etc.) http://goo.gl/Q1SkXV
  • 27. With Dev โ— Tradeoff o less devโ€™s work usually means more reliable system o there will always be conflicts between ops & dev ๏‚ง unless one of them gives in ๏‚ง aggressive or mild, choose one โ— Understand business logic o code talks o data talks http://goo.gl/Qwh6Ze
  • 28. What We Are Doing Now โ— New IDCs, New beginning, Great challenge o active - backup o active - active โ— Transfer data from BJ to SH โ— Env setup, stress test, benchmark โ— Finally, switchover http://goo.gl/TMDnnS
  • 29. What We Are Doing Now(cont.) โ— Private Cloud o capex & opex o resource(hardware, software) o workforce

Editor's Notes

  1. push product, fast growth mentor other team member, help to debug
  2. out of control often 2011 10 am event trigger 10:30 pm, peak period just like nice app, I attend their ctoโ€™s speech at archsummit ~6B/d dau m & a by alibaba: idc migrate, and the related proj 7 eng, 4 pe, 1 network eng, 1 it, 1 director part time IT before 2012, cross wall startup road almost the same 2011, 2012 not hot from 2013, hot growth fast, now, a is smaller, but v is still large Q4, 2013 dau 2B Q4, 2014 dau 6B, 300% zhihu daily report 3m(andriod), 2m installation 1m, 1.5m launch
  3. IDC ~ outage/m, active - active is a must bandwidth limited
  4. 3 gen 1: 2011, simple 2: 2012, fast 3: Q2, 2014 752, Q1 ~ Q2, 2014, many challenge, via my blog, finally, works mulit uplink incoming > outcoming, different from the trad web
  5. server: so many type, operational problems 10 nic lvs nat server all db shipped with ssd power must dual, often power outage few vms running first xen, network problems run lvs on xen, wtf
  6. thunder from ruby 2 scala sdk resend problem sdk envelope, etc. kafka mirror, 600Mbps
  7. scp data from finagle, not stable then kafka mirror, quite well hbase buggy mongo reshard, acceptable, stable front end, new relic, code level call
  8. no fancy technology github, redhat wonderful, have a try jiankongbao, jidiao redhat, nice doc, vmcore analytics
  9. all raid10, no reason, just for easy management
  10. analysis vmcore
  11. dns is not reliable, even in alibaba, for hadoop, hosts but hosts is not easy to mantain
  12. puppet, dsl salt, so young, community active, but less ordered, google sometimes not work
  13. almost outage due to lack of metrics
  14. 1.5K nvps kids, redis sharding oss better than umeng
  15. the items refer above must tuned for high load node networking is critical, tcp retransmit, overflow oc, tons of small packet, 100B pkg size begins to drop, 200kpps/s disk, hadoop, noatime, ext3 not ext4
  16. 4xx: ~ 0.4% mobile network is different 5xx: ~ 0.005% no 3xx kernel panic for switch 208.5d panic results are stupid
  17. idrac hacked db connected without auth from public weak passwd ddos affect us, actually the same uplink
  18. instagram already migrate from aws to facebookโ€™s idc, spend 1 year to prepare for us, tens of problems to solve
  19. push, typical case thunder, some app(wannianli), 10am, traffic spike resend control