Capacity Planning

Capacity planning: problem-solving machine expansion and when expansion


Exemplified below

First, a basic data of a machine (preferably acquired by O & M):

For example, the server can support dynamic request 1000 / s, can support the static flow 400MB / s


Assume that the system one hour 96 million times the page is refreshed, by default each page refresh when dynamically request contains 1-3

  • Estimated current number of requests: 960000 * 3/800 = 3600 / s

  • If the future requests are now 10 times, i.e. 10 * 800 = 8000 / s

  • Estimates need to be several machines: 8000/1000 = at least 8


Each page is expected to have about 50 or so static files (image js css, etc.), each file is approximately 40KB

Similarly, 1 hour 96 million times a page refresh

  • Calculated for each static page file size: 50 * 40 = 2000KB

  • Calculation of 960,000 times a page refresh traffic: 960,000 * 2000KB / 1024/3600 = 520.83MB / s

  • 520.83MB / s> 400MB / s, it is not a machine

  • If future traffic spikes may reach 5G / s

  • Estimates need to be several machines: 5 * 1024MB / 400 = 13 machine at least


Guess you like

Origin blog.51cto.com/11009785/2411733