Comments (5)
Another alternative would be to limit the number of matches (which I think we already do? max_entries=1000 or something...)
from flux-core.
Another alternative would be to limit the number of matches (which I think we already do? max_entries=1000 or something...)
Yeah, we already do that. The issue is if you have some obscure search and don't match anything (or very little). So you'd be scanning the entire database for potential matches, but not actually matching anything.
from flux-core.
Ah, so your worry is users inadvertently creating searches that tax the database too heavily? I can see the sense in that, but it does seem like modern databases should be able to handle this kind of query better than we think.
My worry would be incorrect answers by default. For example, a user queries "give me all my jobs that ran on fluke123" and none have run in the past week on that host, so the answer is an empty list.
from flux-core.
My worry would be incorrect answers by default. For example, a user queries "give me all my jobs that ran on fluke123" and none have run in the past week on that host, so the answer is an empty list.
Ahhh I didn't think of it that way. That is a good point.
Ah, so your worry is users inadvertently creating searches that tax the database too heavily? I can see the sense in that, but it does seem like modern databases should be able to handle this kind of query better than we think.
Yeah, we'll have to see how the job constraints stuff ends up working out. Now that we're splitting out the job-archive
into flux-acounting
(flux-framework/flux-accounting#357) we have less "dependency" and can tweak the database per our own needs. Given the initial job constraints implementation (#5126) and the initial job db in #4336, I think we'd just iterate through every inactive job in the database ... which is bad of course. (side note, #4336 has to be re-worked given job constraints.)
from flux-core.
By cahnce, I noticed that in sacct
there are "time windows" with their searches. Only jobs that started in the specified time range (-S, -E) will be returned.
That's a alternate way to deal with the general "don't scan the whole database".
from flux-core.
Related Issues (20)
- flux queue idle hangs with no active jobs HOT 3
- mismatched version logs are not all that helpful
- job stuck with active shells after timeout HOT 1
- libsubprocess: pass flags to remote subprocess HOT 3
- shell: input: stop writing stdin when reader is not ready HOT 2
- t2410-sdexec-memlimit.t: not ok 13 - memory.high configuration changed HOT 10
- log message: resource expiration updated from 0.00 to 0.00 (-inf) HOT 1
- cray MPI: MPIDI_OFI_mpi_init_hook:Invalid argument HOT 1
- improperly sorted hostlist in 'flux resource list' output HOT 2
- content: pending stores are stuck after ENOSPC from backing store
- kvs: uncompleted RPCs should receive ENOSYS response when module is unloaded HOT 5
- alloc-bypass jobs get stuck in CLEANUP after a flux restart
- broker[0]: quorum-full: ignored in shutdown
- flux-dump: add option to make content read errors non-fatal
- flux-jobs: state PRIORITY is not documented
- flux-run(1) incorrectly reports that --input=FILENAME bypasses the KVS
- hostlist: perf issue in `hostlist_find_host()` due to `hostname_create()` HOT 1
- job-manager: problem with alloc queue on elcap HOT 9
- systemctl stop flux is delayed if upstream is offline HOT 1
- shell: truncated output message is repeated
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 flux-core.