Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Nov 14, 2023
1 parent d80784e commit 2e74d3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion performance_measurement/measure_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def wait_for_converge(input: dict, apiclient: kubernetes.client.ApiClient, names
statefulset_stream = watch.stream(func=appV1Api.list_namespaced_stateful_set,
namespace=namespace,
field_selector="metadata.name=%s" % sts_name)
timer_hard_timeout = acto_timer.ActoTimer(600, statefulset_updates_queue, "timeout")
timer_hard_timeout = acto_timer.ActoTimer(900, statefulset_updates_queue, "timeout")
watch_process = Process(target=MeasurementRunner.watch_system_events,
args=(statefulset_stream, statefulset_updates_queue))

Expand Down
5 changes: 5 additions & 0 deletions performance_measurement/rabbitmq_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ def serialize(self, output_dir: str):
reference_input_dir = os.path.join(output_dir, "reference")
os.makedirs(anvil_input_dir, exist_ok=True)
os.makedirs(reference_input_dir, exist_ok=True)
prev_replicas = 3
for input in self.all_inputs:
print(f"{input['trial']}")
input["input"]["spec"]["image"] = "ghcr.io/xlab-uiuc/rabbitmq:3.11.10-management"
if "replicas" in input["input"]["spec"] and input["input"]["spec"]["replicas"] > prev_replicas:
prev_replicas = input["input"]["spec"]["replicas"]
else:
input["input"]["spec"]["replicas"] = prev_replicas
patch = jsonpatch.JsonPatch.from_diff(previous_input, input["input"])
if patch:
with open(os.path.join(anvil_input_dir, f'input-{index:03d}.yaml'), 'w') as f:
Expand Down

0 comments on commit 2e74d3f

Please sign in to comment.