Various fixes #18
3 changed files with 10 additions and 6 deletions
|
@ -141,13 +141,13 @@ class LoadReport:
|
||||||
|
|
||||||
html = f"""
|
html = f"""
|
||||||
<table border="1" cellpadding="5px"><tbody>
|
<table border="1" cellpadding="5px"><tbody>
|
||||||
<th colspan="2" bgcolor="gainsboro">{short_summary}</th>
|
<tr><th colspan="2" bgcolor="gainsboro">{short_summary}</th></tr>
|
||||||
<th colspan="2" bgcolor="gainsboro">Metrics</th>
|
<tr><th colspan="2" bgcolor="gainsboro">Metrics</th></tr>
|
||||||
{self._row("Total operations", total_operations)}
|
{self._row("Total operations", total_operations)}
|
||||||
{self._row("OP/sec", f"{total_rate:.2f}")}
|
{self._row("OP/sec", f"{total_rate:.2f}")}
|
||||||
{throughput_html}
|
{throughput_html}
|
||||||
|
|
||||||
<th colspan="2" bgcolor="gainsboro">Errors</th>
|
<tr><th colspan="2" bgcolor="gainsboro">Errors</th></tr>
|
||||||
{per_node_errors_html}
|
{per_node_errors_html}
|
||||||
{self._row("Total", f"{total_errors} ({total_errors/total_operations*100.0:.2f}%)")}
|
{self._row("Total", f"{total_errors} ({total_errors/total_operations*100.0:.2f}%)")}
|
||||||
</tbody></table><br><hr>
|
</tbody></table><br><hr>
|
||||||
|
|
|
@ -72,7 +72,9 @@ class RemoteProcess:
|
||||||
if self.saved_stdout is not None:
|
if self.saved_stdout is not None:
|
||||||
cur_stdout = self.saved_stdout
|
cur_stdout = self.saved_stdout
|
||||||
else:
|
else:
|
||||||
terminal = self.shell.exec(f"cat {self.process_dir}/stdout")
|
terminal = self.shell.exec(
|
||||||
|
f"cat {self.process_dir}/stdout", options=CommandOptions(no_log=True)
|
||||||
|
)
|
||||||
if self.proc_rc is not None:
|
if self.proc_rc is not None:
|
||||||
self.saved_stdout = terminal.stdout
|
self.saved_stdout = terminal.stdout
|
||||||
cur_stdout = terminal.stdout
|
cur_stdout = terminal.stdout
|
||||||
|
@ -101,7 +103,9 @@ class RemoteProcess:
|
||||||
if self.saved_stderr is not None:
|
if self.saved_stderr is not None:
|
||||||
cur_stderr = self.saved_stderr
|
cur_stderr = self.saved_stderr
|
||||||
else:
|
else:
|
||||||
terminal = self.shell.exec(f"cat {self.process_dir}/stderr")
|
terminal = self.shell.exec(
|
||||||
|
f"cat {self.process_dir}/stderr", options=CommandOptions(no_log=True)
|
||||||
|
)
|
||||||
if self.proc_rc is not None:
|
if self.proc_rc is not None:
|
||||||
self.saved_stderr = terminal.stdout
|
self.saved_stderr = terminal.stdout
|
||||||
cur_stderr = terminal.stdout
|
cur_stderr = terminal.stdout
|
||||||
|
|
|
@ -88,7 +88,7 @@ class ClusterNode:
|
||||||
service_entry = self.class_registry.get_entry(service_type)
|
service_entry = self.class_registry.get_entry(service_type)
|
||||||
service_name = service_entry["hosting_service_name"]
|
service_name = service_entry["hosting_service_name"]
|
||||||
|
|
||||||
pattern = f"{service_name}{self.id}"
|
pattern = f"{service_name}{self.id:02}"
|
||||||
config = self.host.get_service_config(pattern)
|
config = self.host.get_service_config(pattern)
|
||||||
|
|
||||||
return service_type(
|
return service_type(
|
||||||
|
|
Loading…
Reference in a new issue