Skip to content

allow customizing cluster options using an init file - #67

Open
dolsem wants to merge 1 commit into
Cobliteam:masterfrom
dolsem:init_file
Open

allow customizing cluster options using an init file#67
dolsem wants to merge 1 commit into
Cobliteam:masterfrom
dolsem:init_file

Conversation

@dolsem

@dolsem dolsem commented Feb 3, 2024

Copy link
Copy Markdown

Currently cassandra-migrate does not provide a way to customize cluster options, such as policies for load balancing, address translation (crucial when the cluster is in a private subnet and you need to map internal ips to external hostnames), etc.

This PR adds a way to override cluster options by defining an init file, e.g. cassandra-migrate.init.py, with contents like:

from cassandra.cluster import Cluster
from cassandra.policies import WhiteListRoundRobinPolicy

def create_cluster(**kwargs):
  kwargs['load_balancing_policy'] = WhiteListRoundRobinPolicy(['127.0.0.1'])
  return Cluster(**kwargs)

I'd like to know if there is interest in merging this PR. If there is, I will add tests and documentation.

@Mateus-Goes

Copy link
Copy Markdown

🔒 Novo check de segurança na Cobli: SAST + secret scanning

Este PR passou a rodar um gate automático de segurança (Opengrep + gitleaks) via GitHub Actions, agora ativo em todos os repositórios da org.

  • Modo consultivo (advisory): por enquanto ele só comenta os achados — não bloqueia o merge. Em ~1 semana passará a bloquear apenas achados críticos novos (severidade ERROR) introduzidos no próprio PR.
  • Se aparecer um check "Expected"/pendente segurando o merge, ele se resolve no próximo push deste PR (ou ao rebasear, caso esteja com conflito).
  • Nenhuma ação necessária da sua parte por enquanto.

Dúvidas? Fale com o time Kali no #help-tech-kali-dis.

@Mateus-Goes Mateus-Goes reopened this Jul 24, 2026
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.

2 participants