Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread cristian . cocheci
Thanks Daniel! On Friday, April 13, 2018 at 2:25:38 PM UTC-4, Daniel Smith wrote: > I haven't checked, but I'd bet that the C++ gRPC library uses HTTP2, which > seems to explicitly encourage connection reuse, which leads to this behavior. > If you search around you may be able to find some

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread 'Daniel Smith' via Kubernetes user discussion and Q
I haven't checked, but I'd bet that the C++ gRPC library uses HTTP2, which seems to explicitly encourage connection reuse, which leads to this behavior. If you search around you may be able to find some options. On Fri, Apr 13, 2018 at 11:18 AM wrote: > > I am using

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread cristian . cocheci
I am using gRPC on both sides, both in C++. The client sends asynchronous requests. A new channel is created (and destroyed) with every request. Thank you! On Friday, April 13, 2018 at 2:09:48 PM UTC-4, Tim Hockin wrote: > What are you using for a client?  Is it by chance http and written in

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread 'Tim Hockin' via Kubernetes user discussion and Q
What are you using for a client? Is it by chance http and written in go? Some client libraries, including Go's http, aggressively reuse connections. If you try with something like exec netcat, I bet you see different results. BTW, one might argue that if you depend on RR, you will eventually be

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread cristian . cocheci
I am running them against the service's cluster IP address (through its name, i.e. "btm-calculator" which translates to the cluster IP), and port 3006. On Friday, April 13, 2018 at 1:19:32 PM UTC-4, Rodrigo Campos wrote: > And how are you running the requests? Against which IP and which port?

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread Rodrigo Campos
And how are you running the requests? Against which IP and which port? On Fri, Apr 13, 2018 at 10:17:04AM -0700, cristian.coch...@gmail.com wrote: > > OK, I changed my pods to respond almost immediately so that I can test with a > statistically significant number of requests (10,000), and I am

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread cristian . cocheci
OK, I changed my pods to respond almost immediately so that I can test with a statistically significant number of requests (10,000), and I am still observing the same behavior, only 1 pod receives all 10k requests. Can anyone explain why this happens? I am including the service and deployment

[kubernetes-users] Re: Need instruction for building windows minikube executable

2018-04-13 Thread Sunil Bhai
you can also refer to @ https://waterplacid.com/k8-docker/ This site all that you are looking in different areas. Kubernetes for Windows From Scratch On Friday, April 13, 2018 at 9:23:16

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread cristian . cocheci
Thank you Tim. Is there now way to set it to true RR? If not, I will have to do my own balancing, if there is no other suggestion. On Friday, April 13, 2018 at 10:59:46 AM UTC-4, Tim Hockin wrote: > Without a statistically significant load, this is random.  What you are > seeing satisfies

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread 'Tim Hockin' via Kubernetes user discussion and Q
Without a statistically significant load, this is random. What you are seeing satisfies that definition. The real reason is that round-robin is a lie. Each node in a cluster will do it's own RR from any number of clients. On Fri, Apr 13, 2018, 10:51 AM wrote: > On

RE: [kubernetes-users] ClusterIP service not distributing requestsevenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread Sunil Bhai
Quick info I hope you have odd number nodes ( 1, 3, 5 etc) this is the best practice. Sent from Mail for Windows 10 From: Tim Hockin Sent: Friday, April 13, 2018 8:09 PM To: kubernetes-users@googlegroups.com Cc: Sunil Bhai Subject: Re: [kubernetes-users] ClusterIP service not distributing

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread cristian . cocheci
On Friday, April 13, 2018 at 10:39:38 AM UTC-4, Tim Hockin wrote: > The load is random, but the distribution should be approximately equal for > non-trivial loads.  E.g. when we run tests for 1000 requests you can see it > is close to equal. > > > How unequal is it?  Are you using session

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread 'Tim Hockin' via Kubernetes user discussion and Q
The load is random, but the distribution should be approximately equal for non-trivial loads. E.g. when we run tests for 1000 requests you can see it is close to equal. How unequal is it? Are you using session affinity? On Fri, Apr 13, 2018, 10:34 AM Cristian Cocheci

RE: [kubernetes-users] ClusterIP service not distributing requestsevenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread Sunil Bhai
Check this once http://clusterfrak.com/docker/labs/k8_clustering/ I will send out…. Loadbalancing within K8 ( Master & worker nodes) Sent from Mail for Windows 10 From: Cristian Cocheci Sent: Friday, April 13, 2018 8:04 PM To: Sunil Bhai Cc: kubernetes-users@googlegroups.com Subject: Re:

Re: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread Cristian Cocheci
Thank you Sunil, but the LoadBalancer type is used for exposing the service externally, which I don't need. All I need is my service exposed inside the cluster. On Fri, Apr 13, 2018 at 10:30 AM, Sunil Bhai wrote: > HI, > > > > Check this once : > > > >

[kubernetes-users] Re: ClusterIP service not distributing requests evenly among pods in Google Kubernetes Engine

2018-04-13 Thread Sunil Bhai
You can check the site www.waterplacid.com > https://waterplacid.com/k8-docker/ On Friday, April 13, 2018 at 7:11:55 PM UTC+5:30, cristian...@gmail.com wrote: > > I have a ClusterIP service in my cluster with 4 pods behind it. I noticed > that requests to the service are not evenly

RE: [kubernetes-users] ClusterIP service not distributing requests evenlyamong pods in Google Kubernetes Engine

2018-04-13 Thread Sunil Bhai
HI, Check this once : https://kubernetes.io/docs/tasks/access-application-cluster/load-balance-access-application-cluster/ https://kubernetes.io/docs/concepts/services-networking/service/ Sent from Mail for Windows 10 From: cristian.coch...@gmail.com Sent: Friday, April 13, 2018 7:11 PM

Re: [kubernetes-users] ClusterIP service not distributing requests evenly among pods in Google Kubernetes Engine

2018-04-13 Thread Cristian Cocheci
I have only 1 node with multiple processors and a lot of memory. I actually did this on purpose to eliminate the "how are the pods distributed on nodes" variable. I tail the application logs of the 4 pods at the same time, that's how I noticed the uneven distribution. Also, in my response from the

Re: [kubernetes-users] Re: Any way to list all ingress paths?

2018-04-13 Thread David Rosenstrauch
Ooh, good answer. I was thinking more along the lines of something that kubectl provided natively, but json output plus the jq parser (which I love and use all the time) definitely fits the bill. Along those lines, I've been using a more low-tech/hacky version up till now: kubectl describe

Re: [kubernetes-users] ClusterIP service not distributing requests evenly among pods in Google Kubernetes Engine

2018-04-13 Thread Rodrigo Campos
Why are obviously not evenly distributed? How are pods asgined to nodes? And also, how do you noticed, exactly, that they are not "evenly distributed"? On Friday, April 13, 2018, wrote: > > I have a ClusterIP service in my cluster with 4 pods behind it. I noticed >

[kubernetes-users] ClusterIP service not distributing requests evenly among pods in Google Kubernetes Engine

2018-04-13 Thread cristian . cocheci
I have a ClusterIP service in my cluster with 4 pods behind it. I noticed that requests to the service are not evenly distributed among pods. After further reading I learned that the kube-proxy pod is responsible for setting up the iptables rules that forward requests to the pods. After

[kubernetes-users] Re: The connection to the server localhost:8080 was refused - did you specify the right host or port?

2018-04-13 Thread chellaraomadana
On Wednesday, 17 January 2018 10:20:26 UTC+5:30, rollr...@gmail.com wrote: > I'm facing the same issue on worker node, and this is on premises cluster > setup not on google cloud. > > Do we need to setup weave-net on worker nodes as well? On my case this is happening due to a failing kubelet

[kubernetes-users] Re: Any way to list all ingress paths?

2018-04-13 Thread 'Timo Reimann' via Kubernetes user discussion and Q
I tend to struggle with jsonpath, so here's my jq-based suggestion: $ kubectl get ing -o json | jq -r '.items[].spec.rules[].http.paths[]' This yields a structure like { "backend": { "serviceName": "service-foo", "servicePort": 80 }, "path": "/service-foo/path" } { "backend": {