Skip to content

feature/CSTACKEX-237: Pilot changes for scalebenmark framework - #85

Draft
piyush5netapp wants to merge 1 commit into
mainfrom
feature/CSTACKEX-237
Draft

feature/CSTACKEX-237: Pilot changes for scalebenmark framework#85
piyush5netapp wants to merge 1 commit into
mainfrom
feature/CSTACKEX-237

Conversation

@piyush5netapp

Copy link
Copy Markdown

Description

This PR...

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@sandeeplocharla sandeeplocharla left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, the pattern looks good but try to optimize the loggers and add more guardrails to the agent.

python3 benchmark_storage_pool_concurrency.py --config config.yaml

# Concurrency matrix, iSCSI only, overriding the levels to run:
python3 benchmark_storage_pool_concurrency.py --config config.yaml --protocol iscsi --levels 2,5,10,20,30

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be enough to set config.yaml with all necessary combinations and use the fields appropriately in the code. Additional params might not be needed at this point.

# Use the SAME --run-id across both scripts to combine 5.1.x + 6.1.x into one
# summary_<run_id>.csv / report (run sequential first, review it, then decide
# whether to proceed with concurrency under the same run id):
python3 benchmark_storage_pool_sequential.py --config config.yaml --run-id RUN-0001

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if this run id can be randomized or create a pattern using timestamp or something?

6.1.1 Parallel pool creation
6.1.2 Parallel pool deletion

See benchmark_storage_pool_sequential.py for the sequential scale matrix

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a rule in agents.md/custom-instruction file to only refer confluence but not add references to it in the code?

else:
print(f" !! {result.error}")
if i in checkpoints:
total = sum(create_durations)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the same statistics mean used in concurrent run script could be used here. Maybe include a rule to keep the code and libraries used consistent across the scripts.

"total_time_sec": round(total, 3), "avg_time_sec": round(avg, 3),
"success_count": deleted_ok, "failure_count": idx - deleted_ok, "notes": "",
})
print(f" >> checkpoint remaining={remaining}: total={total:.3f}s avg={avg:.3f}s/op "

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a rule to keep the loggers also consistent across the scripts for better readability.


def main():
parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument("--config", default="config.yaml", help="Path to config YAML (default: config.yaml)")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As all the scripts seem to have same/similar args, it would be better to have a run.py file to which you would pass both the args and the name of the test you want to run. The respective script could be invoked from there while the additional args passed could be used to edit config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants