DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • The 10 Laws of Testing
  • Little's Law and Lots of Kubernetes

Trending

  • Moving 900+ GB of Prometheus Without a Cutover Weekend
  • Treat Salesforce Configuration Like Code: Release Discipline in a Copado Pipeline
  • Solving Comprehension Debt in AI-Generated Codebases
  • PII Detection Before RAG Ingestion: Screening Documents in C#

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

The Square Root Staffing Law

More than just for staffing, the law also tells you how many more servers you need to meet increased demand.

By 
B Jones
·
Nov. 02, 16 · Opinion
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
7.7K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

the square root staffing law is a rule of thumb derived from queueing theory, useful for getting an estimate of the capacity you might need to serve an increased amount of traffic.

square root staffing law

the square root staffing law is designed to help with capacity planning in what’s called the qed regime, which tries to balance efficiency with quality of service. capacity planning is a set of tradeoffs: for best quality of service, you must provision lots of spare capacity (headroom), but that’s wasteful. for best efficiency, you minimize idle capacity, but then quality of service becomes terrible.

the qed regime poses the following scenario: assuming that your current quality of service is acceptable, and you want to maintain it, how much must you increase capacity to serve increased demand?

the picture above illustrates this. suppose you currently have 10 servers (the green circle) and your peak utilization is 25% (the blue circle), so you have 75% idle capacity (the green area). you predict that you’ll need to serve 3x the current peak load for, say, black friday. how many more servers do you need?

the answer is less than a linear increase to 30 servers (the red dashed line). it’s 21, in fact (the orange circle). this answer comes from the rule of thumb that to hold quality of service constant, you must increase the headroom by the square root of the load increase.

if you’d like to experiment interactively with this capacity planning tool, i built a desmos calculator for you. you can drag the circles around to see how parameters such as utilization affect the amount of idle capacity you’ll need to provision.

the square root rule is an approximation, but it’s a decent one, and its bounds are well understood. to learn more about this, please read my book the essential guide to queueing theory , which contains further reference material you might also find helpful.

you might also be interested in learning about the universal scalability law , which is a great tool for capacity planning as well.

Law (stochastic processes)

Published at DZone with permission of B Jones. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • The 10 Laws of Testing
  • Little's Law and Lots of Kubernetes

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook