Skip to content

SimpleLBPolicy has no effect? #522

@fleeto

Description

@fleeto

I'm trying to eject a pod which will return a status code of 500.

There are 4 pods in the deployment, 3 of them will return 500, the other 1 will return 200.

I'd create the default route-rule for a service named "svc-frontend":

type: route-rule
name: frontend-default
spec:
  destination: svc-frontend.default.svc.cluster.local
  precedence: 1
  route:
  - tags:
      version: "1"

And then create a CircuitBreaker:

type: destination-policy
name: httperror
spec:
  destination: svc-frontend.default.svc.cluster.local
  policy:
  - tags:
      version: "1"
    circuitBreaker:
      simpleCb:
        httpConsecutiveErrors: 1
        httpDetectionInterval: 5m
        sleepWindow: 1m
        httpMaxEjectionPercent: 100
    loadBalancing:
      name: RANDOM

According to the document, when I'm accessing the service, I will see a little response of 500, and then I will get only 200, But I still get 500 constantly( about 75%).

What's wrong with my configuration?

istioctl version:

Version: 0.1.6
GitRevision: dab2033
GitBranch: release-0.1
User: jenkins@ubuntu-16-04-build-12ac793f80be71
GolangVersion: go1.8.1
KubeInjectHub: docker.io/istio
KubeInjectTag: 0.1


apiserver version:

Version: 0.1.6
GitRevision: dab2033
GitBranch: release-0.1
User: jenkins@ubuntu-16-04-build-12ac793f80be71
GolangVersion: go1.8.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions