Metadata-Version: 2.4
Name: ovperf-multinode
Version: 0.1.3
Summary: Multi-node benchmark sessions, telemetry reduction and span lanes for ovperf
License-Expression: Apache-2.0
License-File: EXTERNAL-MATERIALS-NOTICE.txt
License-File: LICENSE
License-File: THIRD-PARTY-NOTICES.txt
License-File: src/ovperf/multinode/_vendor/yatp/LICENSE
License-File: src/ovperf/multinode/_vendor/yatp/NOTICE
Requires-Dist: ovperf-collector>=0.5.0,<0.6
Requires-Dist: ovperf-remote
Requires-Python: >=3.10
Provides-Extra: yatp
Description-Content-Type: text/markdown

# ovperf-multinode

ovperf-multinode runs a benchmark's processes and containers across Linux hosts that you have prepared, measures what each one uses, and lines up their timing records on one clock.

## Before installation or external downloads

Read this notice before installing dependencies or setting up workers that retrieve collector build inputs (including the NVML header), tools or workload materials. Bundled YATP code remains covered by its included license and notices.

NOTICE AND DISCLAIMER: This software automatically retrieves, accesses or interacts with external materials. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses. You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case. This software is provided "AS IS", without warranty of any kind. The author makes no representations or warranties regarding any retrieved materials, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.

## What you can do with it

- Run processes and Docker containers on hosts reached locally or over SSH; each host stops and removes what the run started, even if the machine that started it disappears.
- Measure the CPU, memory and GPU use of each process and container and the traffic between them, or observe the Pods of a Kubernetes release instead.
- Line up the processes' timing records (spans) on one clock; the bundled YATP code parses and links them.
- Build your own benchmark recipe on `MultiNodeAttempt` and `run_repetitions`, which check the hosts, stage inputs, prepare images and record evidence and timelines.
- Summarize, compare and verify stored runs from the command line.

## Install

```sh
python -m pip install ovperf-multinode
```

- Python 3.10 or later (tested on 3.10 to 3.13); collecting a session's evidence needs 3.10.12+, 3.11.4+ or 3.12+.
- Installs on Linux x86_64 and aarch64 with glibc 2.35 or later, Windows x64, and macOS 15 or later on Apple silicon. Sessions are tested from a Linux machine with Linux hosts.
- Not installed by pip: every host needs Linux, `python3` 3.10 or later, and a POSIX shell with `cat`, `cp`, `mkdir` and `setsid`. Some features need more: `ssh` and `scp` for remote hosts, Docker for containers (and `nvidia-smi` for GPUs), a C compiler for measurement, `kubectl` and `helm` for Kubernetes.

Benchmark data and logs are collected from user-selected hosts into the user's
run directories. This package does not provide an NVIDIA-hosted benchmark
backend. Host connections, optional downloads, and user-configured workloads
can access the network.

## Quick start

This runs on one Linux machine, which is its own host: it starts one process through a session and collects its output.

```python
import sys
from pathlib import Path

from ovperf.multinode.coordination import Host, LocalTransport, Process, RunSession

session = RunSession((Host("local", LocalTransport()),), Path("run"))
with session:
    session.start("local", "worker", Process((sys.executable, "-c", "print('evidence')")))
    session.wait_process("local", "worker", timeout=5)
print(session.result.execution, session.result.cleanup)
```

It prints `completed confirmed` and writes the process's output to `run/local/worker.stdout.log` and the session's record to `run/attempt.json`. The folder `run` must not exist yet.

## Reference

In the package's folder of the source repository, `docs/reference.md` has every command, option, setting and host requirement, and `CHANGELOG.md` lists the changes.

## License

The ovperf-multinode implementation is licensed under Apache-2.0. The wheel
includes the NVIDIA copyright notice, full license, YATP license and notice,
and a dependency-scope notice in its `.dist-info/licenses/` directory. Dependencies and host tools
are installed separately and retain their own licenses.

## Contributions

This project is currently not accepting contributions.
