does sfo 2016 - avan mathur - planning for huge scale

13
electric- cloud.com #DOES16 Planning For Huge Scale: Designing Your Pipelines for Scalability and Resiliency Avan Mathur | Product Manager [email protected] | @avantika_ec

Upload: gene-kim

Post on 08-Jan-2017

50 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Planning For Huge Scale: Designing Your Pipelines

for Scalability and Resiliency

Avan Mathur | Product Manager [email protected] | @avantika_ec

Page 2: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

What do I Mean by Huge Scale?

• A Fortune 5 Bank• Deploying to 140K endpoints• 6000s of applications on-boarded at accelerated pace

• Chip Manufacturer • 100K Jobs/Day• Constant load on the system• High job throughput

Page 3: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Plan Ahead – Know Your End Goal

• Estimate and plan for long term scale• Define your success criteria• # of deployments per window• Max duration of a deployment• Number of concurrent deployments

• Benchmarking• Validate numbers with benchmarks • Testing real workloads in real environments

Page 4: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Metrics to Measure

• CI Cycle Times• Deployment Frequency and Duration• Concurrent Deployments• Release Frequency

Page 5: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Focus Areas

• Infrastructure• Data• Pipeline Design• Monitoring / feedback loop

Page 6: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Infrastructure

• High Availability• Horizontal Scalability• Distribute load and

components• Database sizing and

reliability• Understand and plan for

bottlenecks and hardware limitations

Page 7: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Recommended Architecture

Commander ServerCommander ServerClustered Orchestration

Servers

Web Server

Database

AgentAgentAgentAgentAgent

Workspace Repository 1Browser

AgentAgentAgentAgentAgent

Web Server

Site 2

WAN

Workspace

Repository 2

Browser

Web Server

Site 3

Repository 3

Site 1

Browser

AgentAgentAgentAgentAgent

Workspace

HA/HS

Page 8: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Disaster Recovery Architecture

Commander ServerCommander ServerClustered Orchestration

Servers

Web Server

Database

AgentAgentAgentAgentAgent

Workspace Repository 1

DR Site

HA/HSCommander ServerCommander ServerClustered

Orchestration Servers

Web Server

Database

AgentAgentAgentAgentAgent

Workspace Repository 1

Primary Site

HA/HS

Disk Replication

WAN

DB Mirroring

Page 9: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Managing Data

• Each process generates data Metadata, log files, build & test data,

monitors, artifacts …• Understand growth rates and plan

accordingly Different areas to monitoro Databaseo Filesystemo Artifact Repository

• Establish Data Retention & Archiving Policies early

Page 10: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Pipeline Design: Scaling Across an Organization1. Plan and monitor for performance

at scale at every step2. Build a generic model to

standardize across apps3. Reusable components that can be

used across projects4. Automated onboarding of new

projects5. Plan and Define Access Controls

and Roles early in the process

Page 11: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Monitoring

• Monitor key metrics Understand patterns Foresee upcoming peaks in usage Plan ahead for hardware expansion

or distribution• Best Practices

Unobtrusive Automated Not only in production One pane of glass

Page 12: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Monitoring

Page 13: DOES SFO 2016 - Avan Mathur - Planning for Huge Scale

electric-cloud.com

#DOES16

Questions?