Skip to content

Commit c99cd58

Browse files
committed
Added Graph
1 parent c7de7fa commit c99cd58

File tree

5 files changed

+51
-6
lines changed

5 files changed

+51
-6
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
# nextcloud-done-right
2-
Scale Out Netxtcloud
1+
# Nextcloud Done Right
2+
Scaling Options for Netxtcloud.
3+
4+
The default **Baseline** for all tests is a Dockerized Nextcloud Deployment with an Nginx Reverse Proxy, MaraiDB Database, Redis Cache and a Nextcloud FPM Worker an a dedicated CronJob Container. The PHP Memorylimit is set to `2048M`.
5+
6+
## Branches
7+
+ master | Nextcloud on TIDB Database (WIP)
8+
+ default | Normal Nextcloud Deployment on MariaDB
9+
+ worker-scale | Nextcloud on MariaDB with 3 PHP Worker load balanced by nginx
10+
11+
## Performance
12+
![](default.png)

default.png

33.1 KB
Loading

graph.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import pandas as pd
2+
import matplotlib.pyplot as plt
3+
from datetime import datetime
4+
5+
dateparse = lambda x: datetime.strptime(x, '%M:%S')
6+
7+
data = pd.read_csv("performance.csv")
8+
data1 = pd.read_csv("performance_default.csv")
9+
10+
fig, ax = plt.subplots()
11+
12+
l1 = ax.plot(data["files"], data["time"])
13+
ax1 = ax.twinx()
14+
l2 = ax1.plot(data1["files"], data1["time"], color='red')
15+
16+
ax.set_xlabel("Uploaded Files")
17+
ax.set_ylabel("Time")
18+
19+
line_labels = ['Default', 'Worker Scale']
20+
fig.legend([l1, l2], # The line objects
21+
labels=line_labels, # The labels for each line
22+
loc='right', # Position of legend
23+
borderaxespad=0.1, # Small spacing around legend box
24+
fontsize=10
25+
)
26+
fig.tight_layout()
27+
28+
plt.savefig("default.png")

performance.csv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
files,time
2-
10,2s
3-
100,30s
4-
500,2m32s
5-
900,4m53s
2+
10,00:02
3+
100,00:30
4+
300,01:23
5+
700,03:49

performance_default.csv

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
files,time
2+
10,00:03
3+
100,00:34
4+
300,01:44
5+
500,02:54
6+
700,04:11
7+
900,05:15

0 commit comments

Comments
 (0)