scylla-operator icon indicating copy to clipboard operation
scylla-operator copied to clipboard

Support extended nodeDomain in client bundles for AZ awareness

Open tnozicka opened this issue 2 years ago • 2 comments

Is this a bug report or feature request?

  • 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:

tnozicka avatar Apr 27 '23 11:04 tnozicka