Ejemplo n.º 1
0
    plotdata_y = []
    yerror = []

    y = []
    for i in range(2,no_of_cluster+1,1):
        # print(i)
        plotdata_x.append(i)
        e = Env()
        y.append(getExecutionMetrics(e, i, threshold_request))

        # print("From loop ", a, b)
        # e._graceexit(0)
    # print(plotdata_x)
    # print(getExecutionMetrics(no_of_cluster, threshold_request))
    for a,b in y:
        # print(a,b)
        plotdata_y.append(a)
        yerror.append(b)
    # print(y)
    # Launch Paxos cluster
    # plotdata_x, plotdata_y = run(no_of_cluster, threshold_request)
    # print(plotdata_y)
    # print(yerror)

# Plot Graph
    plot_graph_pdf(plotdata_x, plotdata_y, yerror)
    e._graceexit(0)

# Exit