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 NoDB for non-recording Hub #1267

Merged
merged 1 commit into from Jan 16, 2012
Merged

add NoDB for non-recording Hub #1267

merged 1 commit into from Jan 16, 2012

Conversation

minrk
Copy link
Member

@minrk minrk commented Jan 14, 2012

When used, this turns database-writes into no-ops, and raises KeyErrors on accesses.

Useful for minimizing Hub memory consumption under high load.

Any request for db-stored information will fail:

  • rc.hub_history()
  • rc.resubmit()
  • rc.db_query()
  • rc.get_result() for tasks submitted by other Clients.

The real database backends have good memory behavior for long-running clusters, but are poor when lots of data is flowing through the schedulers, because they are too slow to push data to the database.

When used, this disables database-based actions in the Hub.

Useful for minimizing Hub memory consumption.
@ellisonbg
Copy link
Member

I read through the diffs and this looks great. The code is simple and the documentation is very complete. I think this is a very nice performance optimization. I would go ahead and merge whenever you want.

minrk added a commit that referenced this pull request Jan 16, 2012
add `--nodb` option for non-recording Hub

This allows simple use cases to avoid needing to call `purge_results` to prevent memory growth of the Hub.
@minrk minrk merged commit 80c3873 into ipython:master Jan 16, 2012
minrk added a commit that referenced this pull request Jan 18, 2012
add `--nodb` option for non-recording Hub

This allows simple use cases to avoid needing to call `purge_results` to prevent memory growth of the Hub.
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
add `--nodb` option for non-recording Hub

This allows simple use cases to avoid needing to call `purge_results` to prevent memory growth of the Hub.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants