Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tales from the Ops side - Taking Black Friday

Tales from the Ops side - Taking Black Friday

a.k.a. Scaling Magento, this is the slide deck for a #DevTO talk performed by Hany Fahim on Monday, January 26, 2015.

VM Farms Inc.

January 26, 2015
Tweet

More Decks by VM Farms Inc.

Other Decks in Technology

Transcript

  1. The Problem A recent customer that operates a large successful

    Magento-based e-commerce site and was preparing for a large traffic bump for the upcoming Black Friday. Magento is not easy to scale.
  2. 3 ways to scale 1. Scaling up (a.k.a. upgrading). 2.

    Scaling out (a.k.a. horizontal scaling). 3. Scaling out the hard way.
  3. Scaling Up • Basically more of what you have now.

    • More memory, CPU, faster disks. • Not many options.
  4. Scaling Out (the easy way) Step 3a: Use shared storage.

    Note: Magento requires it’s image cache to be in sync with all servers.
  5. 404 Not Found The requested URL was not found on

    this server. ! Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
  6. Took 7 lines sub vcl_fetch {! if (req.url ~ "^/cache/.*")

    {! if (beresp.status == 404) {! return(restart);! }! }! }