scylladb / scylladb/python-rs-driver

Add built-in load balancing policies

Open
#153 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
6
Forks
7
Avg merge
5d 13h
Merged PRs (30d)
9

Description

scylla.policies.load_balancing only ships one concrete policy, DefaultPolicy, configured via
node_location_preference / token_aware / permit_dc_failover / enable_shuffling_replicas. Users
migrating from cassandra-driver are used to picking a policy by name — RoundRobinPolicy,
DCAwareRoundRobinPolicy, TokenAwarePolicy, WhiteListRoundRobinPolicy — and have to translate that
into the right DefaultPolicy(...) kwargs by hand.

Proposal

Ship a small set of named policy classes as thin, documented wrappers that construct a DefaultPolicy
under the hood with the matching parameters.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at scylla.policies.load_balancing and read DefaultPolicy and its existing configuration options. Compare the proposed Cassandra policy names with the matching DefaultPolicy parameters, then verify that each named wrapper is documented and constructs the intended policy behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.