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

Internal request route not base on weight but replica count #43

Open
StyleTang opened this issue Jan 18, 2024 · 0 comments
Open

Internal request route not base on weight but replica count #43

StyleTang opened this issue Jan 18, 2024 · 0 comments

Comments

@StyleTang
Copy link

StyleTang commented Jan 18, 2024

Hi Team,
I tested examples/istio-subset, it is a canary(subset) rollout.
Assume only 1 replica.

if I go to step 1:

      steps:
      - setWeight: 10
      - pause: {}         # pause indefinitely

Then env is:
canary pod count : 1
canary weight: 10 %
stable pod count : 1
stable weight: 90 %

If I use internal host, like http://istio-rollout.rollouts-demo-istio.svc.cluster.local/color, then the issue happens, the real traffic is 50% vs 50%, not base on weight but pod count.

apiVersion: v1
kind: Service
metadata:
  name: istio-rollout
spec:
  ports:
  - port: 80
    targetPort: http
    protocol: TCP
    name: http
  selector:
    app: istio-rollout

======================================================================

But if I use external host, it has no issue, like http://istio-rollout.apps.argoproj.io/color, the traffic dispatch works well. canary 10% vs stable 90%

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: istio-rollout-vsvc
spec:
  gateways:
  - istio-rollout-gateway
  hosts:
  - istio-rollout.apps.argoproj.io
  - istio-rollout.local

Do you guys encounter this issue before? Or I made some mistake here?
Thanks for taking time to read this issue.

@StyleTang StyleTang changed the title Internal request route not according to weight but pod count Internal host request route not base on weight but pod count Jan 18, 2024
@StyleTang StyleTang changed the title Internal host request route not base on weight but pod count Internal request route not base on weight but replica count Jan 28, 2024
StyleTang added a commit to StyleTang/rollouts-demo that referenced this issue Jan 28, 2024
StyleTang added a commit to StyleTang/rollouts-demo that referenced this issue Jan 28, 2024
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