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

Support storage checkpointing and restore #953

Closed
bouthilx opened this issue Jun 23, 2022 · 3 comments · Fixed by #1082
Closed

Support storage checkpointing and restore #953

bouthilx opened this issue Jun 23, 2022 · 3 comments · Fixed by #1082
Assignees

Comments

@bouthilx
Copy link
Member

Users need a way to checkpoint their current storage and restore it. This would also allow migrating from one database backend to another, for example checkpointing from pickleddb, and then loading the checkpoint into mongodb. The easiest way to support this would be to save the checkpoint into a pickleddb. The restoration would be the trickiest part, as we need to ensure there are no collisions, and that the id references between experiments and trials are conserved even though the ids will need to change to avoid collisions with existing data in the storage.

orion db dump --config orion_config.yaml --exp experiment
orion db load --config orion_config.yaml --exp experiment dump.pkl

--exp would be an optional argument to select only a subset of the data.

@lavoiems
Copy link

Would --config also be an optional argument? I could have run several experiments each with different configs and still want to archive everything.

@bouthilx
Copy link
Member Author

Yes, config here would be to specify another storage than the one in global configuration, if necessary.

@bouthilx
Copy link
Member Author

If there are experiment ID conflicts during load, we could offer to ignore, overwrite or bump version of incoming experiment. When overwritting, should we deleting the prior trials? 🤔

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