Metadata-Version: 2.4
Name: qtop
Version: 0.9.20261120
Summary: qtop: the fast text mode way to monitor your cluster's utilization and status; the time has come to take back control of your cluster's scheduling business
Author-email: Sotiris Fragkiskos <sfranky@gmail.com>, Fotis Georgatos <kefalonia@gmail.com>, Evangelos Papadopoulos <evangelos.papadopoulos@gmail.com>, Nicola Trozzi <nicola.trozzi@outlook.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/qtop/qtop
Project-URL: Changelog, https://github.com/qtop/qtop/blob/main/CHANGELOG.md
Project-URL: Documentation, https://github.com/qtop/qtop/blob/main/docs/documentation.md
Project-URL: Issues, https://github.com/qtop/qtop/issues
Project-URL: Security, https://github.com/qtop/qtop/security/policy
Keywords: HPC,monitoring,PBS,scheduler,SGE,Slurm
Classifier: Environment :: Console
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: System :: Clustering
Classifier: Topic :: System :: Monitoring
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# qtop

[![build-qtop](https://github.com/qtop/qtop/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/qtop/qtop/actions/workflows/build.yml?query=branch%3Amain)
[![Coverage checks](https://github.com/qtop/qtop/actions/workflows/coverage.yml/badge.svg?branch=main)](https://github.com/qtop/qtop/actions/workflows/coverage.yml?query=branch%3Amain)
[![CodeQL status](https://github.com/qtop/qtop/actions/workflows/codeql.yml/badge.svg?branch=main)](https://github.com/qtop/qtop/actions/workflows/codeql.yml?query=branch%3Amain)
[![License: MIT](https://img.shields.io/github/license/qtop/qtop)](LICENSE)
![Python 3](https://img.shields.io/badge/python-3.x-blue.svg)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/qtop/qtop/badge)](https://scorecard.dev/viewer/?uri=github.com/qtop/qtop)
[![Security Insights metadata](https://img.shields.io/badge/Security_Insights-v2.2.0-blue)](security-insights.yml)
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/16179/badge)](https://www.bestpractices.dev/projects/16179)

qtop is a scheduler-independent observability layer for HPC clusters, with an extremely fast terminal interface. It is a portable, dependency-light cluster observability and scheduler debugging tool for Slurm, PBS, SGE, OAR, LSF and HTCondor - and even more, with your contributed plugin effort.

See your whole cluster in one terminal. Capture it. Replay it. Compare it.

![qtop terminal demo](https://raw.githubusercontent.com/qtop/qtop/main/qtop_py/contrib/qtop_demo.gif)

## Why qtop?

Schedulers expose a great deal of information, but their native commands rarely provide one concise view of jobs, queues, nodes, states and core occupancy. qtop turns scheduler output into a consistent terminal dashboard that is useful during daily operations and incident analysis.

- See cluster utilization, queues, users, node states and per-core job placement.
- Use the same interface across Slurm, PBS/Torque, SGE and OAR.
- Filter, sort, highlight, transpose and navigate large worker-node matrices interactively.
- Capture scheduler output for bug reports or offline investigation.
- Replay recent frames to understand scheduling changes over time.
- Export normalized cluster data as JSON.
- Run without a resident service, database, or heavy runtime dependency stack.

## Quick start

See the [Quickstart guide](docs/quickstart.md) for a short walkthrough from the
demo to live monitoring, saved traces and support snapshots.

Clone the repository and launch the built-in demo:

```console
git clone https://github.com/qtop/qtop.git
cd qtop
./qtop -b demo -FGTw
```

On a scheduler host, qtop can normally discover the available scheduler:

```console
./qtop -w
```

Select it explicitly when needed:

```console
./qtop -b slurm -w
./qtop -b slurm_json -w
./qtop --slurm-summary -w
./qtop -b pbs -w
./qtop -b sge -w
./qtop -b oar -w
```

The optional value after `-w` is the refresh interval in seconds. For example, `-w 10` refreshes every ten seconds; without a value, watch mode refreshes every two seconds.

Run `./qtop --help` for the complete command-line reference. While watch mode is active, press `?` for the interactive key map.

## Installation

### From source

```console
git clone https://github.com/qtop/qtop.git
cd qtop
./qtop --version
```

To install a checkout instead of running it directly, use a virtual environment
and `python -m pip install .`. Python 3.6-3.8 use a legacy-compatible build
backend; modern Python uses the metadata in `pyproject.toml`.

### From PyPI

```console
python3 -m pip install --user qtop
$HOME/.local/bin/qtop --version
```

## Capture, inspect and replay

Read scheduler traces from a directory instead of invoking live commands:

```console
./qtop -b slurm -s /path/to/slurm-traces
```

Create a support sample containing qtop output, logs and scheduler traces
(use `-L -A` for a reproducible anonymized state snapshot):

```console
./qtop -L
```

Reproduce an anonymized support archive with `qtop --load-sample archive.tar`.
This restores parsed state and presentation without contacting the scheduler.

Replay automatically captured frames from a specific time:

```console
./qtop -R 1823
```

Export the normalized cluster state to a JSON file in the configured save
directory:

```console
./qtop -E
```

``-E`` keeps the terminal view on stdout. See the
[capture and export guide](docs/documentation.md#capture-and-json-export) for
filenames, a real JSON example, archive contents and anonymization limits.

See [the full documentation](docs/documentation.md) for trace filenames, configuration, filtering, replay formats, anonymization and scheduler-specific notes.

## How it works

qtop separates scheduler-specific collection and parsing from a common cluster-state model and terminal presentation:

1. A scheduler plugin collects live command output or reads saved traces.
2. The plugin normalizes jobs, nodes and queues into a shared cluster state.
3. qtop renders that state in a fast terminal view or exports it for other tools.

This design keeps the core scheduler-independent and makes support for another batch system a bounded plugin contribution.

See the [architecture diagram and source map](docs/architecture.md) for the
module relationships and the paths through collection, rendering, capture and
replay.

## Compatibility

qtop targets Python 3 and Linux-based HPC environments. Its CI matrix covers modern Python versions and retains a dependency-light compatibility lane for older enterprise distributions commonly found on clusters.

Terminal monitoring is the primary interface.

Maintainers and contributors can run `make ci-deps` once and `make pre-pr`
in a Linux x86-64 CPython 3.12 virtual environment to reproduce the local PR
gates, including coverage, type checks and both parser fuzzers. See
[CONTRIBUTING.md](CONTRIBUTING.md) for other platforms and Python 3.6 checks.

## Documentation and community

- [User documentation and tutorial](docs/documentation.md)
- [Contributing guide](CONTRIBUTING.md)
- [Maintenance roles, review routing and escalation](MAINTAINERS.md)
- [Code of conduct](CODE_OF_CONDUCT.md)
- [Security policy](SECURITY.md)
- [Getting help](SUPPORT.md)
- [OpenSSF metadata, badge preparation and future integrations](docs/openssf-readiness.md)
- [Issue tracker](https://github.com/qtop/qtop/issues)

Bug reports with captured scheduler samples are especially valuable. New scheduler plugins, sample fixtures, documentation improvements and portability fixes are welcome.

AUTHORS:
Original Bash version by Fotis Georgatos. Python port by Sotiris Fragkiskos.
Additional authors: Evangelos Papadopoulos (push for 1.0) and Nicola Trozzi (admitted slurm support).

Full contributor credits: [GitHub contributors](https://github.com/qtop/qtop/graphs/contributors).

License: [MIT](LICENSE).
