Skip to content

[Bug]: slow-start config defined in virtualserverroute seems not work #8593

@MinbinLuo

Description

@MinbinLuo

Version

edge

What Kubernetes platforms are you running on?

Kind

Steps to reproduce

I tried to set up slow start in my virtualserverroute defination but it seems the nginx does not respect it:

  upstreams:
    - name: my-service
      service: my-service
      port: 9000
      keepalive: 64
      connect-timeout: 10s
      read-timeout: 30s
      send-timeout: 30s
      next-upstream-tries: 1
      fail-timeout: 15s
      max-fails: 1
      lb-method: least_conn
      slow-start: 45s
      healthCheck:
        enable: true
        path: /alive
        port: 8558
        interval: 5s
        passes: 1
        fails: 3
        mandatory: true

I tried to use lb-method:round_robin and removed healthCheck and set mandatory to false, but it all did not work

claude said that:

The actual problem is that slow-start requires a server state transition (down→up), but new endpoints appear already "up". Whether the controller uses API calls or config reloads, the result is the same - no transition, no slow-start.

is that correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue reporting a potential bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions