Skip to content

With min-scale > 1 and activator only the first pod receive traffic #12593

Closed

Description

@SharpEdgeMarshall

What version of Knative?

0.26.0

Expected Behavior

/kind bug

If you set min-scale=2 all pods receive traffic

Actual Behavior

  • Only the first pod will receive traffic if there's activator proxing reqeusts

Steps to Reproduce the Problem

Istio Version: 1.11.4
Knative Version: 0.26.0
Kubernetes version: (use kubectl version): 1.21
OS (e.g. from /etc/os-release): bottlerocket

Activity

  1. added
    kind/bug
    on Feb 3, 2022
  2. jwcesign commented on Feb 7, 2022

    @jwcesign
    Contributor

    What gateway u are using? istio?

  3. SharpEdgeMarshall commented on Feb 7, 2022

    @SharpEdgeMarshall
    Author
  4. changed the title [-]With min-scale > 1 only the first pod receive traffic[/-] [+]With min-scale > 1 and activator only the first pod receive traffic[/+] on Feb 11, 2022
  5. github-actions commented on May 13, 2022

    @github-actions

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  6. added
    lifecycle/stale
    on May 13, 2022
  7. SharpEdgeMarshall commented on Jun 13, 2022

    @SharpEdgeMarshall
    Author

    This should be reopened it's an actual bug hitting production workloads

  8. dprotaso commented on Mar 29, 2023

    @dprotaso
    Member

    /triage accepted
    /reopen
    /milestone v1.11.0

    Want to priortize an investigation in v1.11.0 timeframe

  9. added
    triage/accepted
    on Mar 29, 2023
  10. added this to the v1.11.0 milestone on Mar 29, 2023
  11. removed
    lifecycle/stale
    on Mar 30, 2023
  12. dprotaso commented on May 27, 2023

    @dprotaso
    Member

    /assign @dprotaso

    Found the issue - it seems like when we have exactly 2 pods that have equal weight we will always pick the first one

    pick, alt := targets[r1], targets[r2]
    // Possible race here, but this policy is for CC=0,
    // so fine.
    if pick.getWeight() > alt.getWeight() {
    pick = alt
    }

    If you kick off a bunch of requests in parallel then you'll get better spreading since the weight's won't be even.

  13. dprotaso commented on May 27, 2023

    @dprotaso
    Member

    This should be reopened it's an actual bug hitting production workloads

    @SharpEdgeMarshall do you have a way to repro your production issue - ie. similar to #14011 ?

    It would be good to know if there are other scenarios where this happens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugtriage/accepted

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions