How to use HTC Mock
HTC Mock is a lightweight test client for ArmoniK that generates realistic tasks. It is used our CI/CD pipelines to validate the correct functioning of ArmoniK after code updates and development.
Ensure the ArmoniK Core version matches the HTC Mock client version; mismatched versions may cause tests to fail. See the Default images documentation for deployment details: the Default images page.
Quick start
Warning
HTC Mock is a development and test tool. It is not intended for production use.
Run the container with environment variables to configure the workload:
docker run --rm \
-e HtcMock__NTasks=100 \
-e HtcMock__TotalCalculationTime=00:00:00.100 \
-e HtcMock__DataSize=1 \
-e HtcMock__MemorySize=1 \
-e HtcMock__EnableFastCompute=true \
-e HtcMock__SubTasksLevels=1 \
-e HtcMock__Partition=htcmock \
-e GrpcClient__Endpoint=http://<ip>:5001 \
dockerhubaneo/armonik_core_htcmock_test_client:<armonik_version_core>
Replace
<ip>with the IP or hostname of the machine where ArmoniK Core is listening.Replace
<armonik_version_core>with the Core version you want to test (see the repository’sversions.tfvars.json).
Environment variables use the HtcMock__ prefix; command-line arguments are also supported by the client where applicable.
For the up-to-date list of options, see the HtcMock options class in ArmoniK.Core.