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 #17

Merged
merged 40 commits into from
Feb 2, 2024
Merged

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
Copy link
Contributor Author

rebased with master branch, PTAL @LeoQuote

@dispensable dispensable merged commit 929b8fb into douban:master Feb 2, 2024
2 checks passed
dispensable added a commit to dispensable/gobeansproxy that referenced this pull request Feb 2, 2024
dispensable added a commit that referenced this pull request Feb 2, 2024
* Add prometheus metrics to gobeansproxy (#15)

* Add cassandra support (#17)
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.

1 participant