scylladb / scylla-operator

The Kubernetes Operator for ScyllaDB
https://operator.docs.scylladb.com/
Apache License 2.0
331 stars 163 forks source link

Support extended nodeDomain in client bundles for AZ awareness #1226

Open tnozicka opened 1 year ago

tnozicka commented 1 year ago

Is this a bug report or feature request?

What should the feature do: Config bundle API should be extended with nodeDomain and nodeDomainType to support AZ aware drivers.

apiVersion: cqlclient.scylla.scylladb.com/v1alpha1
kind: CQLConnectionConfig
parameters:
  defaultConsistency: QUORUM
  defaultSerialConsistency: SERIAL
authInfos:
  admin:
    clientCertificateData: <redacted>
    clientKeyData: <redacted>
    password: cassandra
    username: cassandra
contexts:
  default:
    authInfoName: admin
    datacenterName: <k8s>
currentContext: default
datacenters:
  <k8s>:
    certificateAuthorityData: <redacted>
    nodeDomainType: “Template” # (Template|Domain)
    nodeDomain: “{{ .uuid }}.cql.<sc-ns>.apps.{{ .availabilityZone }}.<k8s>.pub.<domain>”
    server: cql.<sc-ns>.apps.<k8s>.pub.<domain>:9142

What is use case behind this feature: Supporting AZ aware driver that can hit a proxy in correct AZ and avoid cross AZ traffic between a proxy and a ScyllaDB node.

Additional Information:

scylla-operator-bot[bot] commented 1 month ago

The Scylla Operator project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

You can:

/lifecycle stale

tnozicka commented 1 month ago

/remove-lifecycle stale /triage accepted