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

Question / Suggestion: Persisting state #103

Open
msjostrom opened this issue Sep 25, 2018 · 1 comment
Open

Question / Suggestion: Persisting state #103

msjostrom opened this issue Sep 25, 2018 · 1 comment

Comments

@msjostrom
Copy link

The starter pack broker keeps track of provisioned services in-memory and is blissfully ignorant of any previous doings when restarted. At a minimum, a persistent table to map instance IDs between the marketplace and the service provider worlds would be very useful.

Is there a best practice for keeping state and metadata of service instances in the scope of a specific broker? Would having the broker annotate the service catalog serviceinstance objects be a reasonable approach?

I've tried keeping state in a kubernetes custom resource. It's proven a convenient way to achieve persistence, but this is probably not the ideal use of CRDs and introducing another entity with it's own lifecycle is a sure way to end up with inconsistency issues, speaking from experience.

@carolynvs
Copy link
Collaborator

Minibroker uses configmaps and labels on related k8s resources to persist data. If that weren't enough, I would lean towards using CRDs over a separate data store, because then I'd have to backup 2 databases. 😀

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

No branches or pull requests

2 participants