Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Capacity planning

Shulou Source: shulou.com Published: 2022-06-02 23:44:53 10月25日 Update

Capacity planning: solving the problem of machine expansion and when to expand capacity

The following examples are illustrated

First of all, get the basic data information of a machine (preferably through operation and maintenance):

For example, the server can support 1000 dynamic requests / s and static traffic 400MB/s.

Suppose the system has 960000 page refreshes per hour. By default, each page refresh contains 1-3 dynamic requests.

Estimated current number of requests: 960000 * 3600000800 / s

If the number of requests in the future is 10 times that of the present, that is, 800,10,000 / s

Estimate how many machines are needed: 8000 / 1000 = at least 8

It is estimated that there are about 50 static files (image js css, etc.) per page, and each file is about 40KB

Similarly, there are 960000 page refreshes per hour

Calculate the static file size per page: 50 * 40 = 2000KB

Calculate the traffic of 960000 page refreshes: 960000 * 2000KB / 1024 / 3600 = 520.83MB/s

520.83MB / s > 400MB/s, so one machine is not enough

If the future traffic peak may reach 5G/s

Estimate how many machines are needed: 5*1024MB / 400 = at least 13 machines

Tags: Machines pages files traffic static dynamic hour time capacity planning not enough information size peak data best server system problem seek truth Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Docker Linux Shulou Technology Apple