-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WhiteListRoundRobinPolicy
does not support unix domain sockets
#280
Comments
@kbr-scylla
from cassandra.cluster import Cluster
from cassandra.connection import UnixSocketEndPoint
from cassandra.policies import HostFilterPolicy, RoundRobinPolicy
socket = "<node's workdir>/cql.m"
cluster = Cluster([UnixSocketEndPoint(socket)],
# Driver tries to connect to other nodes in the cluster, so we need to filter them out.
load_balancing_policy=HostFilterPolicy(RoundRobinPolicy(), lambda h: h.address == socket))
session = cluster.connect() with from cassandra.cluster import Cluster
from cassandra.connection import UnixSocketEndPoint
from cassandra.policies import HostFilterPolicy, RoundRobinPolicy
socket = "<node's workdir>/cql.m"
cluster = Cluster([UnixSocketEndPoint(socket)],
# Driver tries to connect to other nodes in the cluster, so we need to filter them out.
load_balancing_policy=WhiteListRoundRobinPolicy([UnixSocketEndPoint(socket)])
session = cluster.connect() so there is a need to introduce a way to |
@kbr-scylla @avelanarius I addressed second part of this issue in scylladb/scylla-cqlsh#67 |
Most prominent example of this is when we try to use
cqlsh
to connect to Scylla maintenance socket (currently queued on next): scylladb/scylladb#16489A workaround is possible (using
HostFilterPolicy
), but sincecqlsh
usesWhiteListRoundRobinPolicy
, we need to fix it.The text was updated successfully, but these errors were encountered: