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

Persistency and schema initialization handling #437

Open
Tracked by #489
ricardozanini opened this issue Mar 25, 2024 · 0 comments
Open
Tracked by #489

Persistency and schema initialization handling #437

ricardozanini opened this issue Mar 25, 2024 · 0 comments
Assignees

Comments

@ricardozanini
Copy link
Member

Description

In a deployment with full persistency (di + job server + runtimes) there's a need to handle the schema and DDL operations in an eager way, before we have even a single sonata running.

  1. Runtime:
    Currently a sonataflow service handles the migration, if set by the flyway configs

    This approach brings complexity because a sonata flow starting , with another version, can potentially change the DDL in a way which is unsupporeted/distructive. It makes sense even to block this and allow this only for a controller-originated action.

  2. Data Index and Job service
    For those component, when using persistency, the schema initializtion is manually triggered.

There are various ways this can be addressed

  • init containers
  • sonataflowplatform controller, orchestrating a job and reporting the platform status accordingly

This means that the operator is responsible for the DDL of all components, and for the version that is used. Sonatas with custom image must use the base-image with the pinned version by the operator. otherwise no support.

Implementation ideas

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant