Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Scaling Tech in Asia
How we scaled Tech in Asia
About Me
• WordPress Plugins Developer
– Since 2003
– Created > 22 plugins
• wp-pagenavi, wp-polls, wp-postratings, wp-pos...
Timeline
• July 2014
– Willis approached me to join Tech in Asia and
expand the engineering team
• August 2014
– Hired an ...
Previous Servers
• Previous
– Digital Ocean
• 1 server
• 32 GB/12 CPUS, 320 GB SSD Disk and 7TB transfer
• US$320/month
• ...
Current Servers
• Current
– SoftLayer
• Catalyst Startup Program
• USD$10,000 credits per month
• 5 Bare Metal Servers
– 1...
Monitoring
• Graphite
– Push based
• Grafana
– Front-end for Graphite
• collectd
– data-collecting daemon
– network, cpu, ...
User Uploaded Files
• /wp-content/uploads
– File uploads are stored here
• GlusterFS
– Write once, read everywhere
• Distr...
WordPress
• Moved WordPress to a folder /core/
– Prevent automated attacks
– /core/ is a git checkout of WordPress
• HTTPS...
Cleaning Up Plugins
• Removed 48 plugins
– From 83 plugins to 35 plugins
• Some plugins are poorly coded
– No uninstall.ph...
CDN
• Previous
– EdgeCast
• Horrible UI/UX admin interface
• No free shared SSL cert
• Current
– MaxCDN
• Free for us
• YC...
Redesigning Theme
• The TiA theme was poorly coded
– No proper use of WordPress API
– Unnecessary SQL queries all over the...
Redesigning Theme
• Rewrote the theme from scratch
– Removed unused or unnecessary features
– Use of SVG and Font Icons
– ...
Web Stack
• Previous
– Apache
– PHP
– MySQL
• Current
– nginx
– HHVM
– MariaDB
Lester Chan (@gamerz) [ 13 ]
Summary
• Moving Servers
• Cleaning up WordPress Plugins
• Redesigning theme
• Changing our web stack
Lester Chan (@gamerz...
Questions?
• Any questions?
• You can also find me at
– Blog: https://lesterchan.net
– Twitter: @gamerz
– Facebook: https:...
Upcoming SlideShare
Loading in …5
×

Scaling Tech in Asia

739 views

Published on

My presentation slides for Scaling Tech in Asia during WordPress Meetup June 2015 organised by Singapore WordPress User Group.

Published in: Software
  • Be the first to comment

Scaling Tech in Asia

  1. 1. Scaling Tech in Asia How we scaled Tech in Asia
  2. 2. About Me • WordPress Plugins Developer – Since 2003 – Created > 22 plugins • wp-pagenavi, wp-polls, wp-postratings, wp-postviews, wp-dbmanager, etc • http://profiles.wordpress.org/gamerz • Tech Guy in Tech in Asia – Started officially on 1st September 2014 – We are still hiring Lester Chan (@gamerz) [ 2 ]
  3. 3. Timeline • July 2014 – Willis approached me to join Tech in Asia and expand the engineering team • August 2014 – Hired an awesome engineer, Li Soon – Both of us started work to scale Tech in Asia Lester Chan (@gamerz) [ 3 ]
  4. 4. Previous Servers • Previous – Digital Ocean • 1 server • 32 GB/12 CPUS, 320 GB SSD Disk and 7TB transfer • US$320/month • Crashed when we have about 500 users online at the same time Lester Chan (@gamerz) [ 4 ]
  5. 5. Current Servers • Current – SoftLayer • Catalyst Startup Program • USD$10,000 credits per month • 5 Bare Metal Servers – 1x Load Balancer – 3x Web Servers – 2x Database Server – 1x Ops Server • Highest recorded users online is 2,734 Lester Chan (@gamerz) [ 5 ]
  6. 6. Monitoring • Graphite – Push based • Grafana – Front-end for Graphite • collectd – data-collecting daemon – network, cpu, load, etc Lester Chan (@gamerz) [ 6 ]
  7. 7. User Uploaded Files • /wp-content/uploads – File uploads are stored here • GlusterFS – Write once, read everywhere • Distributed architecture for syncing files • Avoids a single point of failure (i.e. NAS) Lester Chan (@gamerz) [ 7 ]
  8. 8. WordPress • Moved WordPress to a folder /core/ – Prevent automated attacks – /core/ is a git checkout of WordPress • HTTPS – Encrypts sensitive data between computers – Prevents man in the middle attacks – Ranking boost in Google SEO Lester Chan (@gamerz) [ 8 ]
  9. 9. Cleaning Up Plugins • Removed 48 plugins – From 83 plugins to 35 plugins • Some plugins are poorly coded – No uninstall.php • Manually removed plugin options from wp_options table – Remove meta • Comment • Post • User Lester Chan (@gamerz) [ 9 ]
  10. 10. CDN • Previous – EdgeCast • Horrible UI/UX admin interface • No free shared SSL cert • Current – MaxCDN • Free for us • YC Deal Lester Chan (@gamerz) [ 10 ]
  11. 11. Redesigning Theme • The TiA theme was poorly coded – No proper use of WordPress API – Unnecessary SQL queries all over the place – Not minifying CSS/JS – Unused features still in code Lester Chan (@gamerz) [ 11 ]
  12. 12. Redesigning Theme • Rewrote the theme from scratch – Removed unused or unnecessary features – Use of SVG and Font Icons – Flatter UI – CSS/JS more efficient • Combine + Minify – Caching Lester Chan (@gamerz) [ 12 ]
  13. 13. Web Stack • Previous – Apache – PHP – MySQL • Current – nginx – HHVM – MariaDB Lester Chan (@gamerz) [ 13 ]
  14. 14. Summary • Moving Servers • Cleaning up WordPress Plugins • Redesigning theme • Changing our web stack Lester Chan (@gamerz) [ 14 ]
  15. 15. Questions? • Any questions? • You can also find me at – Blog: https://lesterchan.net – Twitter: @gamerz – Facebook: https://fb.com/lesterchan – Instagram: @gamerz Lester Chan (@gamerz) [ 15 ]

×