Comments (4)
Use Cases
Interactive System Administration & Debugging
- Show snapshots and bookmarks created by a job, sorted by createtxg, with creation date and scheduled pruning date (not possible with grid policy)
- Learn about the state of a job
- what tasks are sleeping, what tasks are doing somehting? (! multiple concurrent tasks !)
- For how long is a sleeping task going to sleep? Since when does it sleep? (UTC for log!)
- replication tasks
- what filesystem is it replicating, at what speed / number of bytes txed?
- diff error visualization
- pretty-print a diff
- ad-hoc compute a new diff
- Attach to the log of a single job at a user-specified level (Crazy?)
- Or: Show the last N bytes of
warn
log with timestamp? - Or: Show
warn
log since last run of task
- Or: Show the last N bytes of
Monitoring
- Simple binary check via exit status: green or anything red
- Detailed errors are can be found through log monitoring
warn
log - Monitoring should not rely on zrepl output to check if replication actually worked
- short script a la
zfs list -o creation -t snapshot -s creation -r -d 1 filesystem/to/check | tail -n 1 | ...
sufficient, should already exist in your org
- short script a la
Implementation Concerns
- control socket is currently only accessible to zrepl user due to lack of authentication / authorization mechanisms.
- monitoring tools would likely use an HTTP API
- the same API should be consumed by the CLI frontend
- consider possibility of web-based
zrepl status
one day -> streaming interface? - requires refactoring of existing control socket api
from zrepl.
@woodsb02 It's still a bit early, but you can test the status functionality by building this branch status_command
.
Status can be displayed using zrepl control status
, the raw JSON exposed by zrepl daemon
can be displayed using the --format json
argument.
What do you think?
from zrepl.
- Task API
- Cleanup adoption throughout zrepl
- Use show lastChanged in zrepl control status
from zrepl.
merged.
list command is tracked in #49
from zrepl.
Related Issues (20)
- RPM repo: `GPG check FAILED` on old installs due to expired key HOT 4
- Encrypted send to untrusted target not quite working ... pretty sure it's a simple config issue HOT 21
- Feature request: Allow disable pruning for push and pull jobs HOT 2
- Overridden mountpoint property causes failure if you have zvols
- Improvement: Make 'initial_replication: all' the default
- receiving jobs with overlapping root filesystems are forbidden HOT 1
- bandwidth_limit.max fails validation when using documented default. HOT 1
- Misleading error messages
- zrepl pull job fails after restarting service, also failures not shown in prometheus HOT 2
- zrepl is slow, no idea why HOT 2
- external PRs: quickcheck-docs is broken
- Cannot install on Proxmox 8
- Pruning sender stuck with with old snapshot
- ZFS data corruption bug HOT 8
- mixing unencrypted and encrypted datasets in 1 job HOT 1
- Getting errors when trying to run off of MySQL snapshots HOT 1
- File 'repomd.xml' from repository 'zrepl' is unsigned.
- STEP-ERROR (step 1/1, 44.2 KiB/42.6 KiB) server error: cannot get placeholder state of : zfs exited with error: exit status 1
- Feature request: TLS with client auth for Prometheus monitoring endpoint
- Prometheus: report bytes remaining
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zrepl.