Skip to content

Commit

Permalink
Finished section 1 and 2 of the report
Browse files Browse the repository at this point in the history
Signed-off-by: tivan <[email protected]>
  • Loading branch information
ivantishchenko committed Dec 4, 2017
1 parent 17114d6 commit 202a0ad
Show file tree
Hide file tree
Showing 56 changed files with 147 additions and 91 deletions.
1 change: 1 addition & 0 deletions figures/system.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<mxfile userAgent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0" version="7.8.2" editor="www.draw.io" type="device"><diagram id="57274855-0dde-b0b1-4353-da9e049d5dc9" name="Page-1">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</diagram></mxfile>
Binary file added plots/baseline/azure/baseline_azure_CPU.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baseline/azure/baseline_azure_NETOUT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baseline/baseline_get1_agr_R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baseline/baseline_get1_agr_T.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baseline/baseline_get2_agr_R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baseline/baseline_get2_agr_T.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baseline/baseline_set1_agr_R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baseline/baseline_set1_agr_T.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baseline/baseline_set2_agr_R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baseline/baseline_set2_agr_T.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baselineMW/baselineMW_get_agr_R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baselineMW/baselineMW_get_agr_T.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baselineMW/baselineMW_set_agr_R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baselineMW/baselineMW_set_agr_T.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baselineMW/double_baselineMW_get_agr_R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baselineMW/double_baselineMW_get_agr_T.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baselineMW/double_baselineMW_set_agr_R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plots/baselineMW/double_baselineMW_set_agr_T.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions scripts/baseline/azure-metrics-plot/azure_metrics_CPU.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@

#x = [a for a in range(len(data))]

plt.plot(data)
plt.plot(data, color='blue', alpha=0.8)
plt.ylim(ymax=100)
plt.ylim(ymin=0)
plt.xlim(xmin=0)

plt.xlabel('Time')
plt.ylabel('CPU %')
plt.title("CPU load during the experiments")

plt.savefig("baseline_azure_CPU.png")

plt.show()
5 changes: 3 additions & 2 deletions scripts/baseline/azure-metrics-plot/azure_metrics_NETOUT.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@

data = [x / 10**6 for x in data]

plt.plot(data)
plt.plot(data, color='blue', alpha=0.8)
plt.ylim(ymax=max(data))
plt.ylim(ymin=0)
plt.xlim(xmin=0)

plt.xlabel('Time')
plt.ylabel('Network OUT MBytes')
plt.title("Network output load during the experiments")

plt.show()
plt.savefig("baseline_azure_NETOUT.png")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scripts/baseline/baseline_get1_agr_R.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scripts/baseline/baseline_get1_agr_T.png
Binary file added scripts/baseline/baseline_get1_sep_R.png
Binary file added scripts/baseline/baseline_get1_sep_T.png
Binary file added scripts/baseline/baseline_get2_agr_R.png
Binary file added scripts/baseline/baseline_get2_agr_T.png
Binary file added scripts/baseline/baseline_get2_sep_R.png
Binary file added scripts/baseline/baseline_get2_sep_T.png
Binary file added scripts/baseline/baseline_set1_agr_R.png
Binary file added scripts/baseline/baseline_set1_agr_T.png
Binary file added scripts/baseline/baseline_set1_sep_R.png
Binary file added scripts/baseline/baseline_set1_sep_T.png
Binary file added scripts/baseline/baseline_set2_agr_R.png
Binary file added scripts/baseline/baseline_set2_agr_T.png
Binary file added scripts/baseline/baseline_set2_sep_R.png
Binary file added scripts/baseline/baseline_set2_sep_T.png
30 changes: 21 additions & 9 deletions scripts/baseline/plot_baselines.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from operator import add
from matplotlib import pyplot as plt
from statistics import stdev
import operator

class ExperimentPlotter:

Expand Down Expand Up @@ -232,30 +233,41 @@ def plot_baseline_aggregate(self, filename1, filename2):
#print(T_STD)

# throughput

print(T_total)
index, value = max(enumerate(T_total), key=operator.itemgetter(1))
print(clients[index])
print(value)

plt.figure(1)
plt.title("Throughput")
plt.errorbar(clients, T_total, yerr=T_STD, fmt='-o', ecolor='r')
plt.errorbar(clients, T_total, yerr=T_STD, fmt='-x', ecolor='r', color='blue', capsize=2, elinewidth=0.5, alpha=0.8)
plt.xticks(ticks)
plt.ylim(ymin=0)
plt.xlim(xmin=0)
plt.grid()
plt.xlabel('NumClients')
plt.ylabel('Throughput (ops/sec)')
plt.legend()
#plt.show()
plt.savefig(filename1)
plt.gcf().clear()

# response time
print(R_total)
print(max(R_total))

plt.figure(2)
plt.title("Response time")
plt.errorbar(clients, R_total, yerr=R_STD, fmt='-o', ecolor='r')
plt.errorbar(clients, R_total, yerr=R_STD, fmt='-x', ecolor='r', color='blue', capsize=2, elinewidth=0.5, alpha=0.8)
plt.xticks(ticks)
plt.ylim(ymin=0)
plt.xlim(xmin=0)
plt.grid()
plt.xlabel('NumClients')
plt.ylabel('Response time (msec)')
#plt.show()
plt.legend()
plt.savefig(filename2)
plt.gcf().clear()

Expand All @@ -264,23 +276,23 @@ def plot_baseline_aggregate(self, filename1, filename2):

# path_GET1 = "/home/ivan/asl-fall17-project/experiments/logfiles/baseline/logfiles_baseline_1_server_GET"
# path_SET1 = "/home/ivan/asl-fall17-project/experiments/logfiles/baseline/logfiles_baseline_1_server_SET"
# path_GET2 = "/home/ivan/asl-fall17-project/experiments/logfiles/baseline/logfiles_baseline_2_servers_GET"
path_GET2 = "/home/ivan/asl-fall17-project/experiments/logfiles/baseline/logfiles_baseline_2_servers_GET"
# path_SET2 = "/home/ivan/asl-fall17-project/experiments/logfiles/baseline/logfiles_baseline_2_servers_SET"

# plotter = ExperimentPlotter()
plotter = ExperimentPlotter()
# plotter.set_params(3, path_SET1, 3, 2, 60, [1, 33, 4])
# plotter.plot_baseline_aggregate("baseline_set1_agr_T.png","baseline_set1_agr_R.png")
# plotter.plot_baseline_breakdown("baseline_set1_sep_T.png","baseline_set1_sep_R.png")
#

# plotter.set_params(3, path_GET1, 3, 2, 60, [1, 33, 4])
# plotter.plot_baseline_aggregate("baseline_get1_agr_T.png","baseline_get1_agr_R.png")
# plotter.plot_baseline_breakdown("baseline_get1_sep_T.png","baseline_get1_sep_R.png")
#
# plotter.set_params(3, path_SET2, 2, 1, 60, [1, 33, 4])
# plotter.plot_baseline_aggregate("baseline_set2_agr_T.png","baseline_set2_agr_R.png")
# plotter.plot_baseline_breakdown("baseline_set2_sep_T.png","baseline_set2_sep_R.png")
#
# plotter.set_params(3, path_GET2, 2, 1, 60, [1, 33, 4])
# plotter.plot_baseline_aggregate("baseline_get2_agr_T.png","baseline_get2_agr_R.png")
# plotter.plot_baseline_breakdown("baseline_get2_sep_T.png","baseline_get2_sep_R.png")

plotter.set_params(3, path_GET2, 2, 1, 60, [1, 33, 4])
plotter.plot_baseline_aggregate("baseline_get2_agr_T.png","baseline_get2_agr_R.png")
plotter.plot_baseline_breakdown("baseline_get2_sep_T.png","baseline_get2_sep_R.png")

97 changes: 26 additions & 71 deletions scripts/baselineMW/plot_baseline_MW.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def extractParamsMW(self, logfile):

file.close()

print(logfile)
#print(logfile)
return float(avg_throughput), float(avg_response_time)

def extractParams(self, logfile):
Expand All @@ -68,7 +68,7 @@ def extractParams(self, logfile):

file.close()

print(logfile)
#print(logfile)
return float(avg_throughput), float(avg_response_time)

def plot_baseline_aggregate(self, filename1, filename2):
Expand All @@ -80,11 +80,10 @@ def plot_baseline_aggregate(self, filename1, filename2):

if self.INSIDE_MW:
MACHINES_RANGE = self.MW_NUMBER
print("Plotting on the MW")
else:
if self.MACHINES_NUMBER != 1:
MACHINES_RANGE = self.MACHINES_NUMBER * self.THREAD_PER_CLIENT
else:
MACHINES_RANGE = self.MACHINES_NUMBER
MACHINES_RANGE = self.MACHINES_NUMBER
print("Plotting on the Clients")

for worker in self.WORKERS_RANGE:
# Build
Expand Down Expand Up @@ -155,7 +154,9 @@ def plot_baseline_aggregate(self, filename1, filename2):

# throughput
plt.figure(1)
print("WORKERS # {} MAX Throuthput {}".format(self.WORKERS_RANGE[i], max(T)))
#plt.title("Throughput graph")
#print(T)
p = plt.errorbar(clients, T, yerr=T_STD, fmt=markers[i], ecolor='r', color=colors[i])
legends.append(p)
legends_name.append("Worker threads # " + str(self.WORKERS_RANGE[i]))
Expand All @@ -182,6 +183,8 @@ def plot_baseline_aggregate(self, filename1, filename2):

# response time
plt.figure(2)
#print(R)
print("WORKERS # {} MAX Response {}".format(self.WORKERS_RANGE[i], max(R)))

p = plt.errorbar(clients, R, yerr=R_STD, fmt=markers[i], ecolor='r', color=colors[i])
legends.append(p)
Expand All @@ -200,67 +203,19 @@ def plot_baseline_aggregate(self, filename1, filename2):
plt.gcf().clear()



# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_single_SET_MW/"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = False
# plotter.set_params(3, path, 1, 2, 60, [1, 33, 4])
# plotter.plot_baseline_aggregate("baselineClient_get_agr_T.png","baselineClient_get_agr_R.png")

#path = "/home/ivan/asl-fall17-project/scripts/baselineMW/single/logfiles_baselineMW_single_GET_MW"
# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_single_SET_MW"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = True
# plotter.set_params(3, path, 1, 2, [1, 33, 4])
# plotter.plot_baseline_aggregate("baselineMW_set_agr_T.png","baselineMW_set_agr_R.png")
#
# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_single_SET_client"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = False
# plotter.set_params(3, path, 1, 2, [1, 33, 4])
# plotter.plot_baseline_aggregate("baselineMWClient_set_agr_T.png","baselineMWClient_set_agr_R.png")

# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_single_GET_MW"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = True
# plotter.set_params(3, path, 1, 2, [1, 33, 4])
# plotter.plot_baseline_aggregate("baselineMW_get_agr_T.png","baselineMW_get_agr_R.png")

# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_single_GET_client"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = False
# plotter.set_params(3, path, 1, 2, [1, 33, 4])
# plotter.plot_baseline_aggregate("baselineMWClient_get_agr_T.png","baselineMWClient_get_agr_R.png")

# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_double_GET_MW"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = True
# plotter.set_params(3, path, 2, 1, [1, 33, 4])
# plotter.plot_baseline_aggregate("double_baselineMW_get_agr_T.png","double_baselineMW_get_agr_R.png")

# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_double_GET_client"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = False
# plotter.set_params(3, path, 2, 1, [1, 33, 4])
# plotter.plot_baseline_aggregate("double_baselineMWClient_get_agr_T.png","double_baselineMWClient_get_agr_R.png")





# FINAL commands

# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_single_SET_client"
# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_single_GET_client"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = False
# plotter.set_params(3, path, 1, 2, 1, [1, 33, 4])
# plotter.plot_baseline_aggregate("baselineMWClient_set_agr_T.png","baselineMWClient_set_agr_R.png")
# plotter.plot_baseline_aggregate("baselineMWClient_get_agr_T.png","baselineMWClient_get_agr_R.png")
#
# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_single_SET_MW"
# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_single_GET_MW"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = True
# plotter.set_params(3, path, 1, 2, 1, [1, 33, 4])
# plotter.plot_baseline_aggregate("baselineMW_set_agr_T.png","baselineMW_set_agr_R.png")
# plotter.plot_baseline_aggregate("baselineMW_get_agr_T.png","baselineMW_get_agr_R.png")


# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_double_GET_client"
Expand All @@ -277,16 +232,16 @@ def plot_baseline_aggregate(self, filename1, filename2):

# DOUBLE ADD

path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_double_GET_client_ADD"
plotter = ExperimentPlotter()
plotter.INSIDE_MW = False
plotter.set_params(3, path, 4, 1, 2, [1, 33, 4])
plotter.WORKERS_RANGE=[64]
plotter.plot_baseline_aggregate("ADD_double_baselineMWClient_get_agr_T.png","ADD_double_baselineMWClient_get_agr_R.png")

path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_double_GET_MW_ADD"
plotter = ExperimentPlotter()
plotter.INSIDE_MW = True
plotter.set_params(3, path, 4, 1, 2, [1, 33, 4])
plotter.WORKERS_RANGE=[64]
plotter.plot_baseline_aggregate("ADD_double_baselineMW_get_agr_T.png","ADD_double_baselineMW_get_agr_R.png")
# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_double_GET_client_ADD"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = False
# plotter.set_params(3, path, 4, 1, 2, [1, 33, 4])
# plotter.WORKERS_RANGE=[64]
# plotter.plot_baseline_aggregate("ADD_double_baselineMWClient_get_agr_T.png","ADD_double_baselineMWClient_get_agr_R.png")
#
# path = "/home/ivan/asl-fall17-project/experiments/logfiles/baselineMiddleware/logfiles_baselineMW_double_GET_MW_ADD"
# plotter = ExperimentPlotter()
# plotter.INSIDE_MW = True
# plotter.set_params(3, path, 4, 1, 2, [1, 33, 4])
# plotter.WORKERS_RANGE=[64]
# plotter.plot_baseline_aggregate("ADD_double_baselineMW_get_agr_T.png","ADD_double_baselineMW_get_agr_R.png")
Binary file modified scripts/multiGets/6_keys_nonshard_MW.png
Binary file modified scripts/multiGets/6_keys_nonshard_client.png
Binary file modified scripts/multiGets/6_keys_shard_MW.png
Binary file modified scripts/multiGets/6_keys_shard_client.png
21 changes: 14 additions & 7 deletions scripts/multiGets/histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def cdfToPdf(self, response_percentage, total_num):

for i in range(1, len(pdf)):
pdf[i] = (((response_percentage[i] - response_percentage[i - 1]) * total_num) / 100.0) * self.TIME
pdf[i] *= 10
# pdf[i] = (((response_number[i] * total_num) / 100) * self.TIME ) - pdf[i - 1]
#print("PDF " + str(i) + " "+str(pdf[i]))
return pdf
Expand Down Expand Up @@ -199,7 +200,11 @@ def plot_histogram_client(self, filename):
# print(len(OUT_TIMES))
# print(len(R_STD))

# OUT_NUMBERS = [x / 10 for x in OUT_NUMBERS]
# R_STD = [x / 10 for x in R_STD]
plt.bar(OUT_TIMES, OUT_NUMBERS, 0.1, yerr=R_STD, error_kw=dict(ecolor='red', lw=1, capsize=2, capthick=2))
plt.ylabel('Number of requests')
plt.xlabel('Response time (msec)')
plt.savefig(filename)
plt.gcf().clear()
print(max(OUT_NUMBERS))
Expand Down Expand Up @@ -259,26 +264,28 @@ def plot_histogram_MW(self, filename):
# print(len(OUT_TIMES))
# print(len(R_STD))

OUT_NUMBERS = [x / 10 for x in OUT_NUMBERS]
R_STD = [x / 10 for x in R_STD]
# OUT_NUMBERS = [x / 10 for x in OUT_NUMBERS]
# R_STD = [x / 10 for x in R_STD]

# fig, ax = plt.subplots()
# ax.bar(OUT_TIMES, OUT_NUMBERS, 0.1, yerr=R_STD, error_kw=dict(ecolor='red', lw=1, capsize=2, capthick=2))
# ax.set_yticks(OUT_NUMBERS)
# plt.savefig(filename)
plt.bar(OUT_TIMES, OUT_NUMBERS, 0.1, yerr=R_STD, error_kw=dict(ecolor='red', lw=1, capsize=2, capthick=2))
plt.ylabel('Number of requests')
plt.xlabel('Response time (msec)')
plt.savefig(filename)
plt.gcf().clear()
print(max(OUT_TIMES))
print(max(OUT_NUMBERS))


path = "/home/ivan/asl-fall17-project/experiments/logfiles/multiGets/logfiles_multiGET_nonshard_Client"
path = "/home/ivan/asl-fall17-project/experiments/logfiles/multiGets/logfiles_multiGET_shard_Client"
inside_MW = False
h = Histogram(path, inside_MW)
h.plot_histogram_client("6_keys_nonshard_client.png")
h.plot_histogram_client("6_keys_shard_client.png")

path = "/home/ivan/asl-fall17-project/experiments/logfiles/multiGets/logfiles_multiGET_nonshard_MW"
path = "/home/ivan/asl-fall17-project/experiments/logfiles/multiGets/logfiles_multiGET_shard_MW"
inside_MW = True
h = Histogram(path, inside_MW)
h.plot_histogram_MW("6_keys_nonshard_MW.png")
h.plot_histogram_MW("6_keys_shard_MW.png")

Binary file added scripts/sysOverview/eq_load.png
Binary file added scripts/sysOverview/eq_load_multi.png
35 changes: 35 additions & 0 deletions scripts/sysOverview/serverLoads.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import matplotlib.pyplot as plt

fig, ax = plt.subplots()

NUM_SERVERS = 3
loads = [318085, 316155, 316358]
loads_multiget = [25023, 25023, 25022]
# rep2 = [319351, 317349, 316976]
# [294879, 293679, 295232]
# [292145, 291415, 291442]
# [291833, 288222, 289314]

servers = list(range(1, NUM_SERVERS+1))
print(servers)

# ax.bar(servers, loads, alpha=0.5, color=['red', 'green', 'blue'])
# ax.set_xticks(servers)
# ax.set_xticklabels(['Server 1', 'Server 2', 'Server 3'])
# ax.margins(0.05)
# ax.set_ylabel('Number of requests')
# ax.set_xlabel('Servers')
# ax.set_title('Servers load round robin scheduling')
#
# plt.savefig("eq_load.png")


ax.bar(servers, loads_multiget, alpha=0.5, color=['red', 'green', 'blue'])
ax.set_xticks(servers)
ax.set_xticklabels(['Server 1', 'Server 2', 'Server 3'])
ax.margins(0.05)
ax.set_ylabel('Number of requests')
ax.set_xlabel('Servers')
ax.set_title('Servers load round robin scheduling')

plt.savefig("eq_load_multi.png")
Loading

0 comments on commit 202a0ad

Please sign in to comment.