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

Add cassandra support #16

Closed
wants to merge 45 commits into from

Conversation

dispensable
Copy link
Contributor

features

  • Support use cassandra as beansdb proxy store backend
  • Support migration from beansdb to cassandra table. User can dual write by prefix and switch read from different storage engine
  • Api for prefix map to cassandra table and switch rw for different store engine(so you can make you migration without restart)
  • Support disable old beansdb backend and use cassandra as backend totally

migration

  1. use api switch prefix to table map and prefix to dual write cassandra/beansdb, read from beansdb
  2. use migration tool migrate legacy data from beansdb to cassandra
  3. if both ok, switch prefix to dual write and read from cassandra
  4. disable beansdb write, keep prefix use cassandra for r/w

cassandra store cfg

  1. prepare cassandra cluster
  2. edit conf/proxy.yaml, you should create cfg table in cassandra table DDL conf/table_dispatcher_cfg.cql
  3. start and ready to go

@dispensable dispensable requested a review from LeoQuote January 8, 2024 04:11
@dispensable dispensable force-pushed the add_cassandra_support branch from 7a44ee6 to 1225311 Compare February 2, 2024 05:48
@dispensable dispensable closed this Feb 2, 2024
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

Successfully merging this pull request may close these issues.

4 participants