Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capacity planning #23

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions help/performance/TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ user-guide-description: Optimize the performance of your Adobe Commerce or Magen
- [Development environment recommendations](development-environment.md)
- [Configuration best practices](configuration.md)
- [Deployment flow](deployment-flow.md)
- [Capacity Planning](capacity-planning.md)
- [High-throughput order processing](high-throughput-order-processing.md)
- Advanced concepts {#performance-best-practices}
- [Advanced setup](advanced-setup.md)
Expand Down
49 changes: 49 additions & 0 deletions help/performance/capacity-planning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: Capacity Planning
description: Learn about the steps necessary for capacity planning for Adobe Commerce or Magento Open Source.
---

## Capacity Planning

we are considering single node/instance/machine setup and try to figure out above configuration
capacity to handle traffic without break down. we are using universal formula to calculate server
performance under limited resource & capability

#### Website throughput (concurrent connection)

***1) Lets figure out maximum user simultaneously access website for given configuration***

**Example:**
````
Average PHP request time: 650ms
CPU cores: 4
Click frequency: 45 seconds

4/0.65 = 3 page views per second * 60*0.75 = 135 max simultaneous user
lalittmohan marked this conversation as resolved.
Show resolved Hide resolved

(Number of CPU cores / Average page Response Time in seconds) * 60 * User click
frequency in second = maximum simultaneous users
lalittmohan marked this conversation as resolved.
Show resolved Hide resolved

lalittmohan marked this conversation as resolved.
Show resolved Hide resolved
````

***2) Lets check maximum user on website simultaneously***

```
Number of max request per second * 60 * click frequency of user in seconds = max no. of simultaneous users
````
**Example: From Google Analytics **
```
Session duration 9 min 10 seconds = 9*60+10 = 550 sec.
Average click = 4.82
```

**Average session duration/page per session**
````
(550/4.82 = 114 sec) means average user click once every 2 min, it recommended to be 1.
````

***3) Lets check server capacity => how much traffic & load web server can handle***

```
Number of CPU cores/average time for page request(in seconds) = Max number of page requests per second
```