|
1 | 1 | # LazySlurm |
2 | 2 |
|
3 | | -A terminal UI for [SLURM](https://slurm.schedmd.com/overview.html) job management. Like the awesome [lazygit](https://github.com/jesseduffield/lazygit) but for HPC. |
| 3 | +[](https://github.com/hill/lazyslurm/actions) |
| 4 | +[](https://crates.io/crates/lazyslurm) |
| 5 | +[](https://opensource.org/licenses/MIT) |
4 | 6 |
|
5 | | -## Controls |
| 7 | +A terminal UI for [SLURM](https://slurm.schedmd.com/overview.html) job management. Like the awesome [lazygit](https://github.com/jesseduffield/lazygit) but for HPC clusters. |
6 | 8 |
|
7 | | -- `q` quit |
8 | | -- `↑/↓` navigate |
9 | | -- `r` refresh |
10 | | -- `c` cancel job |
| 9 | + |
| 10 | + |
| 11 | +## Features |
| 12 | + |
| 13 | +- **Real-time job monitoring** - Watch your jobs as they run, with live log tailing |
| 14 | +- **Intuitive keyboard navigation** - Vim-like controls for efficiency |
| 15 | +- **Job management** - Cancel jobs, view details, and monitor resource usage |
| 16 | +- **Cross-platform** - Works on Linux, macOS, and Windows |
| 17 | +- **Single binary** - No dependencies, perfect for HPC environments |
| 18 | +- **Lightweight** - Fast startup, minimal resource usage |
11 | 19 |
|
12 | 20 | ## Installation |
13 | 21 |
|
14 | 22 | ### Binary Releases |
15 | 23 |
|
| 24 | +Download the latest binary for your platform from [GitHub Releases](https://github.com/hill/lazyslurm/releases): |
| 25 | + |
| 26 | +```bash |
| 27 | +# Linux x64 |
| 28 | +curl -L https://github.com/hill/lazyslurm/releases/latest/download/lazyslurm-linux-x64.tar.gz | tar xz |
| 29 | +sudo mv lazyslurm /usr/local/bin/ |
| 30 | + |
| 31 | +# macOS (Apple Silicon) |
| 32 | +curl -L https://github.com/hill/lazyslurm/releases/latest/download/lazyslurm-macos-arm64.tar.gz | tar xz |
| 33 | +sudo mv lazyslurm /usr/local/bin/ |
| 34 | + |
| 35 | +# macOS (Intel) |
| 36 | +curl -L https://github.com/hill/lazyslurm/releases/latest/download/lazyslurm-macos-x64.tar.gz | tar xz |
| 37 | +sudo mv lazyslurm /usr/local/bin/ |
| 38 | +``` |
| 39 | + |
16 | 40 | ### Homebrew |
17 | 41 |
|
| 42 | +```bash |
| 43 | +brew install hill/tap/lazyslurm |
| 44 | +``` |
| 45 | + |
18 | 46 | ### Cargo |
19 | 47 |
|
| 48 | +If you have [Rust installed](https://rustup.rs/): |
| 49 | + |
| 50 | +```bash |
| 51 | +cargo install lazyslurm |
| 52 | +``` |
| 53 | + |
20 | 54 | ### Gah |
21 | 55 |
|
22 | 56 | ```sh |
23 | 57 | gah install hill/lazyslurm |
24 | 58 | ``` |
25 | 59 |
|
| 60 | +## Usage |
| 61 | + |
| 62 | +### Basic Usage |
| 63 | + |
| 64 | +```bash |
| 65 | +# Monitor all jobs for current user |
| 66 | +lazyslurm |
| 67 | + |
| 68 | +# Monitor jobs for specific user |
| 69 | +lazyslurm --user username |
| 70 | + |
| 71 | +# Monitor jobs in specific partition |
| 72 | +lazyslurm --partition gpu |
| 73 | +``` |
| 74 | + |
| 75 | +### Keyboard Controls |
| 76 | + |
| 77 | +| Key | Action | |
| 78 | +|-----|--------| |
| 79 | +| `q` | Quit application | |
| 80 | +| `↑/↓` or `j/k` | Navigate job list | |
| 81 | +| `r` | Refresh job data | |
| 82 | +| `c` | Cancel selected job | |
| 83 | +| `Enter` | View job details | |
| 84 | +| `l` | View job logs | |
| 85 | +| `?` | Show help | |
| 86 | + |
| 87 | +### Configuration |
| 88 | + |
| 89 | +LazySlurm reads configuration from `~/.config/lazyslurm/config.toml`: |
| 90 | + |
| 91 | +```toml |
| 92 | +[display] |
| 93 | +refresh_interval = 5 # seconds |
| 94 | +max_log_lines = 100 |
| 95 | + |
| 96 | +[slurm] |
| 97 | +default_user = "myusername" |
| 98 | +default_partition = "compute" |
| 99 | +``` |
| 100 | + |
26 | 101 | ## Development |
27 | 102 |
|
28 | 103 | Requires Docker and [just](https://github.com/casey/just). |
|
0 commit comments