Skip to content

Adding new Istio routerule causes small window of 503s #348

Closed

Description

@loewenstein

Steps:

  1. bazel run sample/helloworld:everything.create
  2. while true; do curl -is --header 'Host:demo.myhost.net' -w "%{http_code}\n" -o /dev/null http://${SERVICE_IP}; done | grep 503
  3. bazel run sample/helloworld:updated_everything.apply

Expected:
App stays available, i.e. command from 3. stays quiet

Actual:
App is partially unavailable.

We should add a readiness check to the configuration.

Activity

  1. changed the title [-]helloworld sample unavailable during roolout of updated_configuration.yaml[/-] [+]helloworld sample unavailable during rollout of updated_configuration.yaml[/+] on Mar 13, 2018
  2. added
    kind/doc
    on Mar 14, 2018
  3. loewenstein commented on Mar 16, 2018

    @loewenstein
    ContributorAuthor

    I improved the monitoring of status changes with

    #!/usr/bin/env bash
    
    LAST_STATUS="Unknown"
    CURRENT_STATUS="Unknown"
    
    while true
    do
      CURRENT_STATUS=$(curl -is --header 'Host:demo.myhost.net' -w "%{http_code}\n" -o /dev/null  http://${SERVICE_IP})
      if [ $CURRENT_STATUS != $LAST_STATUS ]; then
        echo "$(date): ${LAST_STATUS} -> ${CURRENT_STATUS}"
      fi
      LAST_STATUS=$CURRENT_STATUS
    done
    

    I added

    readynessProbe:
              httpGet:
                path: /
                port: 8080
              initialDelaySeconds: 3
              periodSeconds: 3
    

    to both configuration.yaml and updated_configuration.yaml.

    However, I continue to see transitions to HTTP 503 when I switch back and forth between bazel run sample/helloworld:everything.apply and bazel run sample/helloworld:updated_everything.apply.

    $ sample/helloworld/status.sh
    Fri Mar 16 11:25:47 CET 2018: Unknown -> 404
    Fri Mar 16 11:27:56 CET 2018: 404 -> 503
    Fri Mar 16 11:28:19 CET 2018: 503 -> 200
    Fri Mar 16 11:31:25 CET 2018: 200 -> 503
    Fri Mar 16 11:31:25 CET 2018: 503 -> 200
    Fri Mar 16 11:32:55 CET 2018: 200 -> 503
    Fri Mar 16 11:32:56 CET 2018: 503 -> 200
    Fri Mar 16 11:33:18 CET 2018: 200 -> 503
    Fri Mar 16 11:34:55 CET 2018: 503 -> 200
    Fri Mar 16 12:29:26 CET 2018: 200 -> 503
    Fri Mar 16 12:29:26 CET 2018: 503 -> 200
    Fri Mar 16 12:29:48 CET 2018: 200 -> 503
    Fri Mar 16 12:29:50 CET 2018: 503 -> 200
    Fri Mar 16 12:30:42 CET 2018: 200 -> 503
    Fri Mar 16 12:30:43 CET 2018: 503 -> 200
    

    @mattmoor Is there anything I miss? Otherwise I suppose there is more than a missing readiness probe at work. I'll dig a bit in the code if I can figure out what might be going on.

  4. mattmoor commented on Mar 16, 2018

    @mattmoor
    Contributor

    That's be great.

    Adding @vaikas-google @ian-mi in case they have any ideas what might be causing this.

  5. loewenstein commented on Mar 16, 2018

    @loewenstein
    ContributorAuthor
  6. mattmoor commented on Mar 16, 2018

    @mattmoor
    Contributor

    I think that's most likely

  7. mattmoor commented on Mar 16, 2018

    @mattmoor
    Contributor

    Looks like readYnessProbe was a typo (should be: readinessProbe). I started to look into stricter JSON validation yesterday, but Go finally got around to adding an option to disallow unknown fields to encoding/json in 1.10, which K8s isn't yet on (there are issues).

  8. self-assigned this
    on Mar 28, 2018
  9. mattmoor commented on Apr 18, 2018

    @mattmoor
    Contributor

    /assign @tcnghia

  10. tcnghia commented on Apr 18, 2018

    @tcnghia
    Contributor
  11. removed their assignment
    on Apr 23, 2018
  12. tcnghia commented on Apr 24, 2018

    @tcnghia
    Contributor

    Even if when we change the helloworld example and only route traffic after the new revision is already created for a while, we are still hitting the same 503s.

  13. tcnghia commented on Apr 25, 2018

    @tcnghia
    Contributor

    I tested with Istio 7.0.1 which has envoyproxy/envoy#2774 but the issue isn't fixed. I've sent the relevant log files to Istio team for investigation.

  14. added
    kind/bug
    tracking
    and removed
    kind/doc
    on Apr 25, 2018
  15. tcnghia commented on Apr 25, 2018

    @tcnghia
    Contributor

    I opened istio/istio#5204 , since issue doesn't seem to be fixed in 0.7.1.

  16. changed the title [-]helloworld sample unavailable during rollout of updated_configuration.yaml[/-] [+]Adding new Istio routerule causes small window of 503s[/+] on May 8, 2018
  17. tcnghia commented on May 8, 2018

    @tcnghia
    Contributor

    Reopen to track Istio issue.

  18. reopened this on May 8, 2018
  19. added this to the milestone on Jun 27, 2018
  20. mdemirhan commented on Jul 2, 2018

    @mdemirhan
    Contributor

    This is now fixed.

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

Metadata

Metadata

Assignees

Labels

area/networkingkind/bugtracking

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions