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

Use keyspace info for replication factor #895

Merged
merged 13 commits into from
Nov 9, 2022
Merged

Conversation

conorbros
Copy link
Member

@conorbros conorbros commented Nov 2, 2022

This PR gets the keyspace metadata from the system_schema.keyspaces table. When a keyspace using NetworkTopologyStrategy we only use the replication factor for the data center the Shotover node is in. Processing schema change events occurs the same as topology change events.

This was referenced Nov 2, 2022
@conorbros conorbros force-pushed the keyspace branch 3 times, most recently from 608cf26 to 3797eac Compare November 3, 2022 03:50
@conorbros conorbros marked this pull request as ready for review November 3, 2022 03:54
@conorbros conorbros requested a review from rukai November 3, 2022 03:54
@conorbros conorbros force-pushed the keyspace branch 2 times, most recently from 8bd21d9 to 4e7909f Compare November 8, 2022 02:05
@shotover shotover deleted a comment from github-actions bot Nov 8, 2022
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

1 benchmark regressed. 0 benchmark improved. Please check the benchmark workflow logs for full details: https://github.com/shotover/shotover-proxy/actions/runs/3416555158

  3 (3.00%) high severe
cassandra/tls_insert    time:   [1.0836 ms 1.1278 ms 1.1764 ms]
                        thrpt:  [850.03  elem/s 886.67  elem/s 922.86  elem/s]
                 change:
                        time:   [+20.105% +25.844% +31.985%] (p = 0.00 < 0.05)
                        thrpt:  [-24.234% -20.537% -16.740%]
                        Performance has regressed.

Copy link
Member

@rukai rukai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rukai rukai merged commit 5e2c153 into shotover:main Nov 9, 2022
@conorbros conorbros deleted the keyspace branch November 9, 2022 05:08
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.

3 participants