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
- fdl.yml (opens in a new tab)text/yaml
OSCAR Stress Test Definition
Show content of fdl.yml
- script.sh (opens in a new tab)text/x-shellscript
OSCAR Stress Test Script
Show content of script.sh
- icon.png (opens in a new tab)image/png
OSCAR Stress Test Service Icon
Show content of icon.png
- input.txt (opens in a new tab)text/plain
Sample Input
Show content of input.txt
Usage & acceptance tests
Synchronous CLI acceptance test
Execute the service locally with the sample input and validate the output string.
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.
Upload the sample input using the OSCAR CLI.
oscar-cli service put-file stress-test {source}Wait for the remote execution to complete before retrieving the result.
Time required: PT20SDownload the latest output and confirm it contains the expected substring.
oscar-cli service get-file stress-test --download-latest-into {destination}
RO-Crate metadata
- application/json
Show content of ro-crate-metadata.json