Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
systems = utils.find_sub_element(bench_values, unique_id,
'disk', group)
check.logical_disks_perf(systems, unique_id,
systems_groups.index(group),
detail, "KBps", rampup_value, current_dir)
check.logical_disks_perf(systems, unique_id,
systems_groups.index(group),
detail, "IOps", rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'cpu', group)
check.cpu_perf(systems, unique_id, systems_groups.index(group), detail,
rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'cpu', group)
check.memory_perf(systems, unique_id, systems_groups.index(group),
detail, rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'network',
group)
check.network_perf(systems, unique_id, systems_groups.index(group),
detail, rampup_value, current_dir)
def compare_disks(bench_values, unique_id, systems_groups):
systems = utils.find_sub_element(bench_values, unique_id, 'pdisk')
groups = check.physical_megaraid_disks(systems, unique_id)
compare_sets.compute_similar_hosts_list(
systems_groups,
compare_sets.get_hosts_list_from_result(groups))
systems = utils.find_sub_element(bench_values, unique_id, 'disk')
groups = check.physical_hpa_disks(systems, unique_id)
compare_sets.compute_similar_hosts_list(
systems_groups,
compare_sets.get_hosts_list_from_result(groups))
groups = check.logical_disks(systems, unique_id)
compare_sets.compute_similar_hosts_list(
systems_groups,
compare_sets.get_hosts_list_from_result(groups))
def compare_type(type_, check_func, title, global_params,
bench_values, unique_id, systems_groups):
systems = utils.find_sub_element(bench_values, unique_id, type_)
groups = check_func(systems, unique_id)
compare_sets.compute_similar_hosts_list(
systems_groups,
compare_sets.get_hosts_list_from_result(groups))
compare_sets.print_groups(global_params, groups, title)
check.logical_disks_perf(systems, unique_id,
systems_groups.index(group),
detail, "IOps", rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'cpu', group)
check.cpu_perf(systems, unique_id, systems_groups.index(group), detail,
rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'cpu', group)
check.memory_perf(systems, unique_id, systems_groups.index(group),
detail, rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'network',
group)
check.network_perf(systems, unique_id, systems_groups.index(group),
detail, rampup_value, current_dir)
def compare_performance(bench_values, unique_id, systems_groups, detail,
rampup_value=0, current_dir=""):
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id,
'disk', group)
check.logical_disks_perf(systems, unique_id,
systems_groups.index(group),
detail, "KBps", rampup_value, current_dir)
check.logical_disks_perf(systems, unique_id,
systems_groups.index(group),
detail, "IOps", rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'cpu', group)
check.cpu_perf(systems, unique_id, systems_groups.index(group), detail,
rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'cpu', group)
check.memory_perf(systems, unique_id, systems_groups.index(group),
def compare_performance(bench_values, unique_id, systems_groups, detail,
rampup_value=0, current_dir=""):
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id,
'disk', group)
check.logical_disks_perf(systems, unique_id,
systems_groups.index(group),
detail, "KBps", rampup_value, current_dir)
check.logical_disks_perf(systems, unique_id,
systems_groups.index(group),
detail, "IOps", rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'cpu', group)
check.cpu_perf(systems, unique_id, systems_groups.index(group), detail,
rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'cpu', group)
check.memory_perf(systems, unique_id, systems_groups.index(group),
detail, rampup_value, current_dir)
for group in systems_groups:
systems = utils.find_sub_element(bench_values, unique_id, 'network',
group)
check.network_perf(systems, unique_id, systems_groups.index(group),
detail, rampup_value, current_dir)
def compare_disks(bench_values, unique_id, systems_groups):
systems = utils.find_sub_element(bench_values, unique_id, 'pdisk')
groups = check.physical_megaraid_disks(systems, unique_id)
compare_sets.compute_similar_hosts_list(
systems_groups,
compare_sets.get_hosts_list_from_result(groups))
systems = utils.find_sub_element(bench_values, unique_id, 'disk')
groups = check.physical_hpa_disks(systems, unique_id)
compare_sets.compute_similar_hosts_list(
systems_groups,
compare_sets.get_hosts_list_from_result(groups))
groups = check.logical_disks(systems, unique_id)
compare_sets.compute_similar_hosts_list(
systems_groups,
compare_sets.get_hosts_list_from_result(groups))