Skip to content
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

Connecting to a cassandra datacenter from outside Kubernetes cluster #7

Open
eddytruyen opened this issue May 25, 2017 · 0 comments
Open

Comments

@eddytruyen
Copy link

First of all thanks for this great project.

I tried to expose the cassandra service as a Nodeport using Kubernetes version 1.5.7. I ran the cassandra-replication controller as defined in this project.

I used the cassandra-stress tool for testing a five-node cassandra cluster using cql2

The cassandra-stress tool reported that it retrieved IP addresses for all cassandra nodes: one IP address was a virtual IP address of the openstack cloud. The other IP addresses where PodIP addresses, and therefore not reachable from outside the cluster.
The throughput was very low as a result.

When I added the VM, on which the cassandra-stress tool ran, as a Kubernetes worker node, the throughput was back to normal.

I experienced the same problem with the YCSB benchmark tool.

Of course returning the cassandra nodes as PodIP addresses is not ideal as all these IP addresses are transient. But this is how the headless cassandra-peer service works via DNS lookup. Is it possible to configure the headless service such that host ports are added as a DNS A record?

I would like to know why the cassandra-stress tool needs to have access to all cassandra nodes. Why isn't it enough to just connect to the VM on which I connect to the Nodeport.

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

No branches or pull requests

1 participant