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 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 manifests 
> below:
> 
> cpp-btm-calculator-svc.yaml:
> 
> apiVersion: v1
> kind: Service
> metadata:
>   labels:
>     app: cpp-btm-calculator
>   name: cpp-btm-calculator
> spec:
>   ports:
>   - port: 3006
>     protocol: TCP
>     targetPort: 3006
>   selector:
>     app: cpp-btm-calculator
>   sessionAffinity: None
>   type: ClusterIP
> 
> 
> cpp-btm-calculator-depl.yaml:
> 
> 
> apiVersion: apps/v1beta1
> kind: Deployment
> metadata:
>   labels:
>     app: cpp-btm-calculator
>   name: cpp-btm-calculator-depl
> spec:
>   replicas: 4
>   selector:
>     matchLabels:
>       app: cpp-btm-calculator
>   strategy:
>     rollingUpdate:
>       maxSurge: 1
>       maxUnavailable: 1
>     type: RollingUpdate
>   template:
>     metadata:
>       labels:
>         app: cpp-btm-calculator
>     spec:
>       containers:
>       - image: us.gcr.io/my-project/cpp-btm-calculator:v1.1.2
>         name: cpp-btm-calculator
>         imagePullPolicy: IfNotPresent
>         resources: {}
>         env:
>           - name: PORT
>             value: "3006"
>           - name: LOG_CONFIG
>             value: cpp-btm-calculator-logging.config
> 
> 
> 
> > > 
> > > 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 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.
> > > >
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Kubernetes user discussion and Q&A" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to