Skip to content

docs: Issue on page Python Driver for Scylla and Apache Cassandra® #892

Description

@tluck

I would like to report an issue on page https://python-driver.docs.scylladb.com/3.29.10-scylla/index

Problem

missing the information to configure the driver to support GCP Private Service Connect (PSC)

Suggest a fix

need to add info about creatinue the connectionID with PSC endpoints

for example
cluster = Cluster(
contact_points=[PSC_DNS],
port=9000,
auth_provider=PlainTextAuthProvider(SCYLLA_USER, SCYLLA_PASSWORD),
load_balancing_policy=DCAwareRoundRobinPolicy(local_dc=SCYLLA_DC) if SCYLLA_DC else RoundRobinPolicy(),
client_routes_config=ClientRoutesConfig(
proxies=[ClientRouteProxy(conn_id) for conn_id in PSC_CONN_ID.split(',')]
),
)

and then a point to the REST api

how to set up the PSC map via a REST call
endpoint="endpoint.cluster-1.scylladb.com" # PSC endpoint IP in app subnet
connection_id="1" # Arbitrary connection ID for this set of routes
curl -X POST
-H 'Content-Type: application/json'
-H 'Accept: application/json'
-d "[
{
"connection_id": "$connection_id",
"host_id": "${host_ids[0]}",
"address": "$endpoint",
"port": 9001,
"tls_port": 9101
},
{
"connection_id": "$connection_id",
"host_id": "${host_ids[1]}",
"address": "$endpoint",
"port": 9002,
"tls_port": 9102
},
{
"connection_id": "$connection_id",
"host_id": "${host_ids[2]}",
"address": "$endpoint",
"port": 9003,
"tls_port": 9103
}
]"
http://localhost:10000/v2/client-routes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions