psyinfra / HTCAnalyze

MIT License
0 stars 3 forks source link

HTCAnalyze

Build Status codecov

Search through HTCondor user log files to extract information, identify patterns, and build time-based graphs of resource utilization.

Installation

NOTE: HTCAnalyze depends on the htcondor Python module, which currently only runs on Linux.

This software can be installed directly from GitHub.

pip install git+https://github.com/psyinfra/HTCAnalyze.git

As a general recommendation, we encourage installing HTCAnalyze in a virtual environment. If you are not already familiar with Python virtual environments, we highly recommend that you read up on them.

Configuration File

A configuration file (htcanalyze.conf) can be used to control the default behavior. This is especially useful for system administrators who wish to tune the warning and error thresholds to their site requirements.

It can also be passed directly as a flag.

htcanalyze -c htcanalyze.conf paths

See CONFIG for more information.

Modes

HTCAnalyze has two modes of operation:

Example output:

Examples

Testing

Tests can be found in the tests/ dir. To invoke the tests, run:

Dependencies for tests are listed in requirements-test.txt and can be installed by running:

pip install -U -r requirements-test.txt

To run the tests:

pytest tests 

or with coverage:

pytest  --cov=htcanalyze  tests