unity-sds / unity-project-management

Container repo for project management (projects, epics, etc)
Apache License 2.0
0 stars 2 forks source link

Demonstrate SPS Scalability #213

Open LucaCinquini opened 1 week ago

LucaCinquini commented 1 week ago

Examples of Scalability:

Risks to scaling:

LucaCinquini commented 1 week ago

This goal could potentially be combined with the initiators to demonstrate scalability when triggering EDRgen/RDRgen for SRL.

mike-gangl commented 4 days ago

features/sps/scale.feature:

Feature: Scaled SPS Testing
  Test the SPS by scaling to meet various workloads. This should be run ocassionally, and not a part of nightly tests.

@develop @test @scale
Scenario : The SPS shall be able to run a single day of ASIPS data within X hours
      Given a listing of 1 day of ASIPS input data
      When I request 12 runs of asips_workflow 
      Then all workflows are submitted successfully
      And 12 nodes have spun up to process SBG Workflows #(or we can make this an env variable to see what the maximum umber of jobs processed at once can be)
      And all workflows successfully complete
      #And the workflow data shows up in the data catalog # -- removed, not a part of SPS Scalability scope
      And the total test time was less than X hours

@develop @test @scale
Scenario : The SPS shall be able to run a single day of SBG Preprocess data within X hours
      Given a listing of 1 day of SBG input data
      When I request X runs of SBG_preprocess_workflow 
      Then all workflows are submitted successfully
      And X nodes have spun up to process SBG Workflows #(or we can make this an env variable to see what the maximum umber of jobs processed at once can be)
      And all workflows successfully complete
      # And the workflow data shows up in the data catalog # --  removed, not a part of SPS Scalability scope
      And the total test time was less than X hours

this could be run by using

behave features/sps/scale.feature -n "The SPS shall be able to run a single day of ASIPS data within X hours" #runs ASIPS test
behave features/sps/scale.feature -n "The SPS shall be able to run a single day of SBG Preprocess data within X hours" #runs SBG Preprocess test...

The code that implements the test would:

This is very similar code to https://github.com/unity-sds/unity-monorepo/blob/main/tests/system-tests/features/sps/cwl.feature and the implementations will be very similar, it will simply be different mechanisms to submit the jobs and what workflows to use. the workflow can be defined in the code itself or in an environment variable. Alternatively we could specify the workflow in the step itself, and then the code is always tied to that particular workflow, until we change the test itself- not a terrible idea so we know what we're testing (a link to dockstore, github, etc)

LucaCinquini commented 2 days ago

System Validation Criteria: o A Unity developer is able to scale up the execution of each of the target workspaces defined above o Successful execution of the Gherkin tests