You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't use derby for metadata storage as a default #309
While improving demos I had a Druid instance running for 3-4 days on Ionos k8s. Suddenly everything (all datasources, ingestion tasks etc) were gone. The k8s has restarted all Pods - i assume a maintenance window. I had a look and after looking at https://druid.apache.org/docs/latest/dependencies/metadata-storage.html i think all the data is still on S3 but the metadata is lost.
I think we should prevent users from running into the same problem. I can make the demo resilient by putting a Postgres below, but i think we should address this at the druid-operator level already.
Like
All the examples (also in docs) use a postgres as metadata storage
All the demos using Druid use a postgres as metadata storage
Make a decision if users even should have the possibility to configure a derby instance or not. Implement accordingly => They do and that's ok. Everything is fine. I'm stupid
I can make the demo resilient by putting a Postgres below, but i think we should address this at the druid-operator level already.
I can easily fix this by fixing the demo but i fear if i do so all users will use the druid examples and run into the exact same issue.
So i propose to change the examples (maybe the operator defaults as well)
I'm not sure if this ticket is ready to work on?
As far as I understand Postgres is already possible in Druid and this is only about changing the demos to use it?
Activity
lfrancke commentedon Oct 4, 2022
Can you elaborate what you mean with:
Is this related to
?
soenkeliebau commentedon Oct 4, 2022
As a light-weight alternative, we could look into mounting a PVC for the derbe storage to make this persistent across restarts.
Derby lives in
/stackable/druid/var/druid/metadata.dbif we mount that as PVC we have a fairly simple fix for now.sbernauer commentedon Oct 4, 2022
I can easily fix this by fixing the demo but i fear if i do so all users will use the druid examples and run into the exact same issue.
So i propose to change the examples (maybe the operator defaults as well)
lfrancke commentedon Oct 17, 2022
I'm not sure if this ticket is ready to work on?
As far as I understand Postgres is already possible in Druid and this is only about changing the demos to use it?
sbernauer commentedon Oct 17, 2022
The Druid CRD does allow for postgres usage.
The example https://github.com/stackabletech/druid-operator/blob/main/examples/psql-s3/psql-s3-druid-cluster.yaml does also use a Postgres.
The docs also use a Postgres.
The only thing not using a Postgres are the tests and of course i copied the Druid for the demo from them ^^
So TLDR:
Both should be rather trivial
lfrancke commentedon Oct 17, 2022
Thank you!
Use postgres for metadata storage in smoke-test (#319)