← Back to catalog

SERVICE DETAILS

OSCAR Stress Test Service

AsynchronousSynchronous

Overview

Example OSCAR service that stresses CPU usage for a configurable duration.

Deployment requirements

Memory
256 MiB
Processors
1 vCPU0 GPU

Files & artifacts

Usage & acceptance tests

Synchronous CLI acceptance test

Execute the service locally with the sample input and validate the output string.

  1. Run the service using the provided sample input.

    oscar-cli service run stress-test --file-input {input}
Asynchronous CLI acceptance test

Upload the sample input to the service storage and then download the most recent output to verify its contents.

  1. Upload the sample input using the OSCAR CLI.

    oscar-cli service put-file stress-test {source}
  2. Wait for the remote execution to complete before retrieving the result.

    Time required: PT20S
  3. Download the latest output and confirm it contains the expected substring.

    oscar-cli service get-file stress-test --download-latest-into {destination}

RO-Crate metadata