Skip to main content

Tools for better recording and visualizing computer resources of Sun Grid Engine(SGE) System

Project description

jobview

这个工具主要用于 SGE 系统的节点资源查看,任务资源显示和消耗记录的工具

简单来说,它是基于qstat, qhost, qselect等命令的信息,提供资源消耗的跟踪和更好的可视化

  1. jobview nodes 可以展示用户所属节点的任务情况,资源使用,是否负载高等

  2. jobview status以更好的可视化方式展示任务情况,提供资源消耗展示

  3. jobview track 跟踪任务的资源消耗情况,并记录和生成一个可视化报告

Installation

pip install jobview

Usage

主要有三个子命令,如下所示:

Usage: jobview [OPTIONS] COMMAND [ARGS]...



  用于SGE系统的节点资源查看任务资源显示和消耗记录的工具

  Tools for better recording and visualizing computer resources of Sun Grid Engine(SGE) System



Options:

  --help  Show this message and exit.



Commands:

  nodes   展示指定用户所有可用节点的资源使用情况

  status  更全面和方便的展示投递任务情况

  track   跟踪任务资源消耗情况并生成图片和总结报告

查看所有节点

查看用户所属节点情况

jobview nodes 输出如下:

nodes

投递一个任务并在后台监控其资源消耗

jobview track "qsub -V -l vf=2G -q SC1.q -cwd work.sh" &> run.log &

得到如下报告:

report

子命令参数

$jobview nodes --help

Usage: jobview nodes [OPTIONS]



  展示指定用户所有可用节点的资源使用情况



Options:

  -u, --user TEXT  指定用户(默认为当前用户)

  --help           Show this message and exit.



$jobview status --help

Usage: jobview status [OPTIONS]



  更全面和方便的展示投递任务情况

  使用示例

      SGEViwer status

      SGEViwer status -u user_name

      SGEViwer status -u user_name -d



Options:

  -u, --user TEXT    指定用户

  -j, --job_id TEXT  指定作业ID

  -d, --detail       启用详细输出格式

  -o, --one_line     一行展示信息

  -q, --queue TEXT   要过滤的队列可指定多个示例-q gpu.q,bigmem.q

  -n, --node TEXT    要过滤的节点可指定多个示例-n tjcompute001,tjcompute002

  --help             Show this message and exit.



$jobview track --help

Usage: jobview track [OPTIONS] [CMD]...



  跟踪任务资源消耗情况并生成图片和总结报告

  示例

      执行命令:

      SGEViewer track "qsub -V -l vf=20G -q SC1.q -cwd  work.sh"

      后台执行:

      SGEViewer track "qsub -V -l vf=20G -q SC1.q -cwd  work.sh" &> run.log &

      仅绘图:

      SGEViewer track -p track_7355217.json



Options:

  -i, --interval INTEGER  检查任务状态的时间间隔),默认为10秒

  -p, --plot-only TEXT    制定一个json文件只绘图

  --help                  Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jobview-1.1.0.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jobview-1.1.0-py3-none-any.whl (5.1 MB view details)

Uploaded Python 3

File details

Details for the file jobview-1.1.0.tar.gz.

File metadata

  • Download URL: jobview-1.1.0.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.10

File hashes

Hashes for jobview-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c39e5b4574ad567e8567128cd4a7ca3207a1deb8c117bdd1d3335bfdd6a97233
MD5 81b0eed47f4e21ee30ab0177030c7a66
BLAKE2b-256 d08e7eac826911933af560d5d4bc8555253f021cbf0d7dd1f412f3e3f641fa38

See more details on using hashes here.

File details

Details for the file jobview-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: jobview-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.10

File hashes

Hashes for jobview-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d796982b03a34e45f97ea96829aa6ce7343735a397ee1617c2c8eee52c40877
MD5 d7633963b8210d2948f4fcefc815d745
BLAKE2b-256 32b5d433592f8ff08c4f8d981c723c82881f8c01feb2be9abf89f7a627b044de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page