Skip to content

Don't use derby for metadata storage as a default #309

Closed

Description

@sbernauer

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

Activity

  1. moved this to Idea/Proposal in Stackable Engineeringon Oct 3, 2022
  2. lfrancke commented on Oct 4, 2022

    @lfrancke
    Member

    Can you elaborate what you mean with:

    but i think we should address this at the druid-operator level already.

    Is this related to

    Make a decision if users even should have the possibility to configure a derby instance or not. Implement accordingly

    ?

  3. soenkeliebau commented on Oct 4, 2022

    @soenkeliebau
    Member

    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.db if we mount that as PVC we have a fairly simple fix for now.

  4. sbernauer commented on Oct 4, 2022

    @sbernauer
    MemberAuthor

    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)

  5. lfrancke commented on Oct 17, 2022

    @lfrancke
    Member

    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?

  6. sbernauer commented on Oct 17, 2022

    @sbernauer
    MemberAuthor

    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:

    • Maybe we should adopt the tests to use a postgres
    • We should adopt the demo to use a postgres
      Both should be rather trivial
  7. lfrancke commented on Oct 17, 2022

    @lfrancke
    Member

    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions