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

Collaboration through Transparency

Collaboration through Transparency

Michael Wu

July 14, 2015
Tweet

More Decks by Michael Wu

Other Decks in Technology

Transcript

  1. Presenters   Michael  Wu   Con'nuous  Delivery  Manager   Australia

     Post     [email protected]     Suzy  Chamberlain   DevOps  Engineer   Odecee     [email protected]    
  2. Digital  Delivery  Centre  (DDC)   Parcel  Tracking   Post  Office

      Loca'ons   Postage   Calculator   Travel  Services  
  3. “Applica'on  PlaRorm”  Journey   2014   2015   Oct  2014

      LiT  and  ShiT  everything  to   produc'on   Nov  2014   10  new  services  launched   in  produc'on  including  new   consumer  brand  “MyPost”   Today   50%  of  produc'on  services   on  “applica'on  plaRorm”.   250  stacks  in  total  across  all   environments.   Mar  2015   25%  of  produc'on  services   on  “applica'on  plaRorm”.   150  stacks  in  total  across  all   environments.   Mar  2014   Work  on  “applica'on   plaRorm”  started.   Workshops,  test   environments,  itera'on   x  1000.  
  4. Standards   •  Standard  way(s)  of  doing:   – Applica'on  Deployments

      – Scaling/Recovery  ac'vi'es   – Updates,  upgrades,  patching   – Environment  configura'on  
  5. Introducing  InfraViewer   •  Access  to  infrastructure  informa'on   – 

    Simple,  quick  and  easy   –  PaaS-­‐like  view   •  Self-­‐service   –  Update:  Infrastructure,  Configura'on,  Applica'ons,  etc   •  Relieves  AWS  API  requests  (less  throaling)   •  Facilitates  audi'ng   •  Includes:   –  REST  API   –  Web  UI  
  6. Technologies   •  AWS   –  EC2   –  CloudForma'on

      –  RDS   •  Front-­‐end  (Web  UI)   –  Nginx   –  HTML5/CSS3   –  AngularJS   –  BootstrapJS   •  Backend  (REST  API)   –  Python  2.7   –  Django  Rest  Framework   –  Boto   –  Celery   –  RabbitMQ  
  7. What’s  Happening   Update  Stack   •  Cloud  Forma'on:  

    Update  Stack   –  Parameter  changes   –  Network  changes   Cycle  Instances   •  Increase  auto-­‐scale  group     •  Bootstrap  new  instances   •  Deploy  applica'ons   •  Check  instances  are  in   service   •  Decrease  auto-­‐scale  group  
  8. Some  Tricks   •  Caching   –  Cache  remodeled  AWS

      –  Atomic  updates   –  ELBs…   •  describe_instance_health   •  Linking   –  Use  tags!     •  (no  describe  resources!)   –  ELBs  based  on  instances   –  RDS  based  on  naming   conven'ons  L   •  Tasks   –  Celery  chains   –  Poll  for  task  status   –  Cancel  child  tasks  if  the   parent  fails   •  Authen'ca'on   –  Using  external   authen'ca'on  app   –  Generates  token  +  expiry   –  No  passwords  stored!  
  9. Release  Timeline   January   February   March   April

      May   June   Design  &  Proof  of  concept   API  internal  preview   API  released   UI  released   Update  stack  preview   Update  stack  released  
  10. Key  Improvements   •  Empower  developers   •  Assist  the

     Systems  team  in  scaling   •  Transparency!  
  11. We’re  Hiring   Sunny  McLachlan   HR  Advisor   [email protected]

      Michael  Wu   Con'nuous  Delivery  Manager   [email protected]