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

Enable smart token allocation by default for DSE #801

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

adejanovski
Copy link
Contributor

What this PR does:
DSE cassandra.yaml file doesn't set a default value for allocate_tokens_for_local_replication_factor and thus disables smart allocations by default.
This PR will enable it for DSE, using the same defaults as C* 4.x, while preserving any override from users.

Which issue(s) this PR fixes:
Fixes #796

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@adejanovski adejanovski requested a review from a team as a code owner December 20, 2022 11:14
@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2022

Codecov Report

Merging #801 (ce689b4) into main (3933817) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #801      +/-   ##
==========================================
- Coverage   56.18%   56.14%   -0.04%     
==========================================
  Files          90       90              
  Lines        8761     8768       +7     
==========================================
+ Hits         4922     4923       +1     
- Misses       3399     3403       +4     
- Partials      440      442       +2     
Impacted Files Coverage Δ
controllers/k8ssandra/dcconfigs.go 78.33% <100.00%> (+0.36%) ⬆️
pkg/cassandra/config.go 51.31% <100.00%> (+4.17%) ⬆️
controllers/k8ssandra/stargate.go 63.77% <0.00%> (-2.37%) ⬇️
controllers/replication/secret_controller.go 64.42% <0.00%> (-1.01%) ⬇️

Copy link
Contributor

@adutra adutra left a comment

Choose a reason for hiding this comment

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

LGTM, e2e failures are unrelated afaict.

@adejanovski adejanovski merged commit cf6d077 into k8ssandra:main Dec 21, 2022
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.

New token allocator is disabled with DSE
3 participants