Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add time and potentially memory constraints to queries #168

Closed
floriankramer opened this issue Dec 19, 2018 · 3 comments
Closed

Add time and potentially memory constraints to queries #168

floriankramer opened this issue Dec 19, 2018 · 3 comments
Assignees

Comments

@floriankramer
Copy link
Member

This is a feature that came up a couple of times already but was never implemented so far, so I thought adding an issue might help it getting some traction.
Given that #165 might have failed due to memory limitations adding a memory limit to queries could be useful to prevent the systems oom killer from activating due to expensive queries.

@floriankramer
Copy link
Member Author

One possibility for adding time constraints would be using pthread_cancel on the std::thread::native_handle to kill the thread.

@floriankramer floriankramer changed the title Add time and potentially memory constratings to queries Add time and potentially memory constraints to queries Dec 20, 2018
@niklas88
Copy link
Member

I think @joka921 has done some investigation into this using a futures mechanism.

@hannahbast
Copy link
Member

For quite some time now, QLever has a timeout (which can be set on a per-query basis), as well as a memory limit (which can be set via the -m option when starting the server).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants