SlideShare a Scribd company logo
Zing Me Configuration System Architecture Nguyen Quang Nam Zing Me Team
Content Why Introduction Designs 1 3 2 Q&A 4
Introduction
Some info: - Servers: ~700 - ZiDB: ~115 instances - Memcached: ~80 instances - MySQL: ~20 instances - Cassandra: ~8 instances - Others: Gearman, Scribe, HBase, ZiHttpd, ZiProxy, ..: many many How to manage?
Why
- Too many services to keep in your head   - Auto synchronize configuration changes - C/C++/Java/PHP (or any) apps can share same configurations
Designs
System design
Modules design
- Written in C++ - NonblockingServer with Thrift interface - Cache: hash table data structure with zallocator is designed to reduce memory fragmentation - Persistent DB: ZiDB core - Very high performance: 180K reads per second ServicesMap
- Written in C++ - Agent is scheduled to read only changed config from ServicesMap - SHM ConfSet is on Shared Memory - SHM ConfSet contains double buffer to store both old & new conf Agent & SHM ConfSet
ConfSet Extension - Written in C & C++ - Provide APIs for PHP app to access SHM ConfSet
APC? - Access APC from PHP: 120K reads per second - Access SHM ConfSet using ConfSet Extension from PHP: 250K reads per second - So hard to build my own module to access APC - APC can be accessed from any PHP application
PHP to ServicesMap? - Direct access through a TCP connection: <10K reads per second - ServicesMap is dead, nothing can works - Network is slow, anything can works?
Agents Monitoring - ServicesMap manages all agents - Each agent in ServicesMap has 2 state Active or Dead - Each agent in ServicesMap has a last sync time field, and an expiration time duration - ServicesMap exposes APIs for Admin module getting all agents and states
Q & A Contact: Nguyễn Quang Nam [email_address] http://me.zing.vn/nam.nq

More Related Content

What's hot (18)

PDF
Http2 in practice
Patrick Meenan
 
PDF
Configurable horizontal pod autoscaler
Paul Guth
 
PPTX
SignalR Overview
Michael Sukachev
 
PPTX
Resource Prioritization
Patrick Meenan
 
PDF
Building Asynchronous Microservices with Armeria
LINE Corporation
 
PDF
Aceu2009 Synapse Scalability Availability
guest60ed0b
 
PDF
Антон Серпутько “Testing and optimization of client-side performance”
Dakiry
 
PPT
SFDCP – sfdc project
Peter, Ivan Orlik
 
PPTX
SignalR. Code, not toothpaste - TechDays Belgium 2012
Maarten Balliauw
 
PPTX
How fast is it?
Patrick Meenan
 
PDF
DrupalCamp SP 2015 - Escalando PHP e Drupal- Performance ao infinito e além!
Taller Negócio Digitais
 
PDF
Escalando php e drupal- performance ao infinito e além! - Drupal camp sp 2015
Handrus Nogueira
 
PDF
Rubyhosting
Artit Rubybox
 
PDF
Scaling a Web Service
Leon Ho
 
PDF
From One to a Cluster
guestd34230
 
PPTX
Windows Azure Service Bus
Pavel Revenkov
 
ODP
jBPM 5 (JUDCon 2010-10-08)
Geoffrey De Smet
 
PPTX
signalr
Owen Chen
 
Http2 in practice
Patrick Meenan
 
Configurable horizontal pod autoscaler
Paul Guth
 
SignalR Overview
Michael Sukachev
 
Resource Prioritization
Patrick Meenan
 
Building Asynchronous Microservices with Armeria
LINE Corporation
 
Aceu2009 Synapse Scalability Availability
guest60ed0b
 
Антон Серпутько “Testing and optimization of client-side performance”
Dakiry
 
SFDCP – sfdc project
Peter, Ivan Orlik
 
SignalR. Code, not toothpaste - TechDays Belgium 2012
Maarten Balliauw
 
How fast is it?
Patrick Meenan
 
DrupalCamp SP 2015 - Escalando PHP e Drupal- Performance ao infinito e além!
Taller Negócio Digitais
 
Escalando php e drupal- performance ao infinito e além! - Drupal camp sp 2015
Handrus Nogueira
 
Rubyhosting
Artit Rubybox
 
Scaling a Web Service
Leon Ho
 
From One to a Cluster
guestd34230
 
Windows Azure Service Bus
Pavel Revenkov
 
jBPM 5 (JUDCon 2010-10-08)
Geoffrey De Smet
 
signalr
Owen Chen
 

Similar to Php day 2011 - Zing me configuration system arch (20)

PPT
Zend Con 2008 Slides
mkherlakian
 
ODP
Caching and tuning fun for high scalability @ FOSDEM 2012
Wim Godden
 
ZIP
All The Little Pieces
Andrei Zmievski
 
PDF
Facebook architecture
mysqlops
 
PDF
Qcon 090408233824-phpapp01
jgregory1234
 
PDF
Facebook architecture
drewz lin
 
PDF
Facebook的架构
yiditushe
 
PPTX
EEDC 2010. Scaling Web Applications
Expertos en TI
 
ODP
Caching and tuning fun for high scalability @ PHPTour
Wim Godden
 
ODP
Caching and tuning fun for high scalability
Wim Godden
 
PDF
Common Sense Performance Indicators in the Cloud
Nick Gerner
 
ODP
Caching and tuning fun for high scalability
Wim Godden
 
KEY
Deployment Strategies (Mongo Austin)
MongoDB
 
ODP
Caching and tuning fun for high scalability
Wim Godden
 
ODP
Caching and tuning fun for high scalability @ phpBenelux 2011
Wim Godden
 
KEY
Living with SQL and NoSQL at craigslist, a Pragmatic Approach
Jeremy Zawodny
 
PDF
Develop and deploy using Hybrid Cloud Strategies confoo2012
Combell NV
 
PDF
Memcached Study
nam kwangjin
 
ODP
Nagios Conference 2011 - Nicholas Scott - Nagios Performance Tuning
Nagios
 
PDF
Bottom to Top Stack Optimization with LAMP
katzgrau
 
Zend Con 2008 Slides
mkherlakian
 
Caching and tuning fun for high scalability @ FOSDEM 2012
Wim Godden
 
All The Little Pieces
Andrei Zmievski
 
Facebook architecture
mysqlops
 
Qcon 090408233824-phpapp01
jgregory1234
 
Facebook architecture
drewz lin
 
Facebook的架构
yiditushe
 
EEDC 2010. Scaling Web Applications
Expertos en TI
 
Caching and tuning fun for high scalability @ PHPTour
Wim Godden
 
Caching and tuning fun for high scalability
Wim Godden
 
Common Sense Performance Indicators in the Cloud
Nick Gerner
 
Caching and tuning fun for high scalability
Wim Godden
 
Deployment Strategies (Mongo Austin)
MongoDB
 
Caching and tuning fun for high scalability
Wim Godden
 
Caching and tuning fun for high scalability @ phpBenelux 2011
Wim Godden
 
Living with SQL and NoSQL at craigslist, a Pragmatic Approach
Jeremy Zawodny
 
Develop and deploy using Hybrid Cloud Strategies confoo2012
Combell NV
 
Memcached Study
nam kwangjin
 
Nagios Conference 2011 - Nicholas Scott - Nagios Performance Tuning
Nagios
 
Bottom to Top Stack Optimization with LAMP
katzgrau
 
Ad

More from Quang Anh Le (20)

PDF
Mobilemonday.vn mobile interaction - mr ng cuu long goldsun focus media
Quang Anh Le
 
PPTX
Mobilemonday.vn adflex
Quang Anh Le
 
PPTX
Mobilemonday.vn momo-monetize thinking_tu do tai chinh_v1.2
Quang Anh Le
 
PDF
02 mobile monday hanoi april 2013 vinova
Quang Anh Le
 
PPT
01 mobile monday hanoi april 2013 mobile game - afoli
Quang Anh Le
 
PPTX
03 mobile monday hanoi april 2013 monetize thinking g mo m-work
Quang Anh Le
 
PPT
2. minh chau momo t4
Quang Anh Le
 
PPT
0. mobilemonday.vn hcm 20130424
Quang Anh Le
 
PPT
Vietnam mobile day 2012 phan mem cho phai dep - mana
Quang Anh Le
 
PPTX
Vietnam mobile day 2012 i os memory management - techmaster
Quang Anh Le
 
PPTX
Vietnam mobile day 2012 monetizing mobile apps games - rubycell
Quang Anh Le
 
PDF
Vietnam mobile day 2012 cuoc cach mang thoi ky hau mobile - misfit
Quang Anh Le
 
PPTX
Vietnam mobile day 2012 multi platform development - game loft
Quang Anh Le
 
PDF
Vietnam mobile day 2012 developer opportunity - nokia
Quang Anh Le
 
PPT
Vietnam mobile day 2012 building a mobile linux firmware for your router - ...
Quang Anh Le
 
PPT
Vietnam mobile day 2012 ban quyen mobile contents - vsm
Quang Anh Le
 
PDF
Vietnam mobile day 2012 platform mo va ung dung de phat trien mang xa hoi m...
Quang Anh Le
 
PPT
Vietnam mobile day 2012 co hoi mobile tai vietnam - cyber agent
Quang Anh Le
 
PPTX
Vietnam mobile day 2012 html5 game using impact js - aiti-aptech
Quang Anh Le
 
PPTX
Vietnam mobile day 2012 tuong lai cho nha phat trien nds - share plus
Quang Anh Le
 
Mobilemonday.vn mobile interaction - mr ng cuu long goldsun focus media
Quang Anh Le
 
Mobilemonday.vn adflex
Quang Anh Le
 
Mobilemonday.vn momo-monetize thinking_tu do tai chinh_v1.2
Quang Anh Le
 
02 mobile monday hanoi april 2013 vinova
Quang Anh Le
 
01 mobile monday hanoi april 2013 mobile game - afoli
Quang Anh Le
 
03 mobile monday hanoi april 2013 monetize thinking g mo m-work
Quang Anh Le
 
2. minh chau momo t4
Quang Anh Le
 
0. mobilemonday.vn hcm 20130424
Quang Anh Le
 
Vietnam mobile day 2012 phan mem cho phai dep - mana
Quang Anh Le
 
Vietnam mobile day 2012 i os memory management - techmaster
Quang Anh Le
 
Vietnam mobile day 2012 monetizing mobile apps games - rubycell
Quang Anh Le
 
Vietnam mobile day 2012 cuoc cach mang thoi ky hau mobile - misfit
Quang Anh Le
 
Vietnam mobile day 2012 multi platform development - game loft
Quang Anh Le
 
Vietnam mobile day 2012 developer opportunity - nokia
Quang Anh Le
 
Vietnam mobile day 2012 building a mobile linux firmware for your router - ...
Quang Anh Le
 
Vietnam mobile day 2012 ban quyen mobile contents - vsm
Quang Anh Le
 
Vietnam mobile day 2012 platform mo va ung dung de phat trien mang xa hoi m...
Quang Anh Le
 
Vietnam mobile day 2012 co hoi mobile tai vietnam - cyber agent
Quang Anh Le
 
Vietnam mobile day 2012 html5 game using impact js - aiti-aptech
Quang Anh Le
 
Vietnam mobile day 2012 tuong lai cho nha phat trien nds - share plus
Quang Anh Le
 
Ad

Recently uploaded (20)

PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
July Patch Tuesday
Ivanti
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 

Php day 2011 - Zing me configuration system arch

  • 1. Zing Me Configuration System Architecture Nguyen Quang Nam Zing Me Team
  • 2. Content Why Introduction Designs 1 3 2 Q&A 4
  • 4. Some info: - Servers: ~700 - ZiDB: ~115 instances - Memcached: ~80 instances - MySQL: ~20 instances - Cassandra: ~8 instances - Others: Gearman, Scribe, HBase, ZiHttpd, ZiProxy, ..: many many How to manage?
  • 5. Why
  • 6. - Too many services to keep in your head - Auto synchronize configuration changes - C/C++/Java/PHP (or any) apps can share same configurations
  • 10. - Written in C++ - NonblockingServer with Thrift interface - Cache: hash table data structure with zallocator is designed to reduce memory fragmentation - Persistent DB: ZiDB core - Very high performance: 180K reads per second ServicesMap
  • 11. - Written in C++ - Agent is scheduled to read only changed config from ServicesMap - SHM ConfSet is on Shared Memory - SHM ConfSet contains double buffer to store both old & new conf Agent & SHM ConfSet
  • 12. ConfSet Extension - Written in C & C++ - Provide APIs for PHP app to access SHM ConfSet
  • 13. APC? - Access APC from PHP: 120K reads per second - Access SHM ConfSet using ConfSet Extension from PHP: 250K reads per second - So hard to build my own module to access APC - APC can be accessed from any PHP application
  • 14. PHP to ServicesMap? - Direct access through a TCP connection: <10K reads per second - ServicesMap is dead, nothing can works - Network is slow, anything can works?
  • 15. Agents Monitoring - ServicesMap manages all agents - Each agent in ServicesMap has 2 state Active or Dead - Each agent in ServicesMap has a last sync time field, and an expiration time duration - ServicesMap exposes APIs for Admin module getting all agents and states
  • 16. Q & A Contact: Nguyễn Quang Nam [email_address] http://me.zing.vn/nam.nq