-
Notifications
You must be signed in to change notification settings - Fork 60
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
Schema migration tool #64
Comments
You've seen https://github.com/comeara/pillar ? |
I use pillar on my project, but is not well maintained. I have a fork here https://github.com/smr-co-uk/pillar/tree/patch with merged pull requests, a couple of improvements and improved documentation. |
@PeterLappo thanks for sharing! |
I've been getting some questions from people trying to migrate their systems from 0.3 to 0.4. As far as I can tell, the schema changes are:
However 0.3 creates tables with the This leads me to ask:
Right now it looks like there's no simple migration path for people with data, and that any eventual path will involve a stop-the-world process during which a new table is created and the data copied into it. Have I missed something? |
@asnare copying data into the new schema can be made parallel to a running old application. When the initial data migration is finished, the old application needs to be stopped and the remaining small fraction of old data needs to be migrated in a second step. This should keep the downtime at a minimum. |
I've removed old data so far. I plan to write a small spark job to migrate old data in the future. |
Another schema change I would like to do at some point is to not store the |
@patriknw would be a big improvement. |
Continued here: akka/akka-persistence-cassandra#11 |
With the new plugin API in akka-persistence 2.4, the implementation of
CassandraJournal
and the underlying schema can be strongly simplified (for example, we can remove headers and markers, ...).Although it would be possible to stay backwards compatible with the existing schema, it would make working on #48 and the maintenance of the plugin unnecessarily complex. Hence, a migration tool seems to be a better solution than backwards compatibility.
The text was updated successfully, but these errors were encountered: