def stringify_resource(res): """Print a ResourceGroup instance.""" s = "" s += "\tName: {}\n".format(Colors.ok_blue(Colors.bold(res.name))) s += "\tType: {}\n".format(res.type) s += "\tId: {}\n".format(res.id) s += "\tLocation: {}\n".format(res.location) s += "\tTags: {}\n".format(res.tags) s += Deployer.stringify_properties(res.properties) return s
for repetition in [8]:#range(num_repetitions): R = R_lambda(S) combinations.append((S, R, repetition)) #combinations = [(5, 1, 1)] # override combinations combinations = list(reversed(combinations)) UPDATE_AND_INSTALL = False SKIP_IF_EXISTS = True memaslap_summary_filename = "memaslap_stats.csv" print("Running {} experiments with a maximum of {} minutes per experiment." .format(len(combinations), experiment_runtime+runtime_buffer)) estimated_mins = len(combinations) * experiment_runtime print("Total runtime: {} hours {} minutes".format(estimated_mins // 60, estimated_mins % 60)) eta_string = time.strftime("%H:%M", time.localtime(time.time() + estimated_mins * 60)) print("ETA: {}".format(Colors.bold(Colors.ok_green(eta_string)))) DRY_RUN = False # endregion try: e = Experiment() extractor = Extractor() is_first = True for combination in combinations: S, R, repetition = combination print("Starting experiment with S={} servers, replication R={}, repetition {}" .format(S, R, repetition))