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

Storing persistent data #610

Open
andiempettJISC opened this issue Jan 18, 2019 · 5 comments
Open

Storing persistent data #610

andiempettJISC opened this issue Jan 18, 2019 · 5 comments
Labels
feature Use this label for new features or enhancements

Comments

@andiempettJISC
Copy link
Collaborator

Currently in Galicaster to store data persistently you must write it to areas of the disk generally in the mediapackage.
Galicaster does not have a dedicated method to store new data persistently between restarts.
storing the mediapackage on disk in an 'archive' make sense but again, extra parameters that are not part of the mediapackage, storing them in the mediapackage doesn't seem right.
a good example would be if you wrote a plugin that wanted to store some extra data specific to the plugin between restarts, holding it in ram would mean you would loose this data.

@ppettit suggested using SQL or something like this, maybe there is a nice 'pythonic' approach?

@andiempettJISC andiempettJISC added feature Use this label for new features or enhancements feature labels Jan 18, 2019
@ppettit
Copy link
Collaborator

ppettit commented Jan 18, 2019

What sort of data are you thinking of?

I am particularly keen to stop galicaster writing state into the config file, as we manage that using puppet and the application user account should not be writing into /etc

@andiempettJISC
Copy link
Collaborator Author

Yeah this is probably a discussion. We would have to be clear what is stored where

I think the mediapackage should stay on disk and pretty much everything else should be put somewhere else

@paulgration
Copy link
Contributor

What was the use case you had in mind @androidwiltron?

I'm wondering what kind of state information currently gets written back to the configuration file (apart from the profile)?

@andiempettJISC
Copy link
Collaborator Author

andiempettJISC commented Jan 18, 2019

Yeah so to be clear, keeping the config file would be sensible
I was thinking about data like extra metadata or parameters that we pass contextually to opencast. A good example is user IDs from log ins
The config file should be for static things
For data that changes it should either be in the mediapackage or if it's not part of the mediapackage, it should be elsewhere that is read/write

These are just ideas

@paulgration
Copy link
Contributor

paulgration commented Jan 18, 2019

Yea I was pursuing the idea of mediapackage specific workflow-parameters from a plugin but it could still exist in the conf.ini as default-workflow-parameters allowing an override elsewhere maybe..

There's the galicaster.xml per mediapackage that is used for some things like this (now galicaster.json on the master branch), could that be used?

@Alfro Alfro removed the feature label Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Use this label for new features or enhancements
Projects
None yet
Development

No branches or pull requests

4 participants