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

clientv3: Upgrade to round robin balancer based on gRPC 1.12 balancer API #9860

Merged
merged 39 commits into from
Jun 16, 2018

Commits on Jun 15, 2018

  1. vendor: upgrade "grpc/grpc-go" to v1.11.1

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    6e2bf40 View commit details
    Browse the repository at this point in the history
  2. clientv3/balancer: initial commit

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    7fe4a08 View commit details
    Browse the repository at this point in the history
  3. *: introduce mock server for testing load balancing and add a simple …

    …happy-path load balancer test
    
    Author:    Joe Betz <jpbetz@google.com>
    Date:      Wed Mar 28 15:51:33 2018 -0700
    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    657c2e1 View commit details
    Browse the repository at this point in the history
  4. pkg/mock/mockserver: support restart

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    f1aa428 View commit details
    Browse the repository at this point in the history
  5. clientv3/balancer: use new mock server in tests

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    7c92185 View commit details
    Browse the repository at this point in the history
  6. clientv3/balancer: add more failover tests with resolver

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    370761d View commit details
    Browse the repository at this point in the history
  7. clientv3/balancer: add "TestRoundRobinBalancedPassthrough" (WIP)

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    9867210 View commit details
    Browse the repository at this point in the history
  8. clientv3/balancer: add endpoints resolver

    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    4d2a25b View commit details
    Browse the repository at this point in the history
  9. clientv3: add load balancer unix socket test

    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    ed6bc2b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6080fa1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f20a117 View commit details
    Browse the repository at this point in the history
  12. vendor: upgrade grpc/grpc-go to v1.11.3

    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    12acfc0 View commit details
    Browse the repository at this point in the history
  13. clientv3: Split out grpc balancer builder to ensure there is a balanc…

    …er per ClientConn
    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    309208d View commit details
    Browse the repository at this point in the history
  14. clientv3: Fix dialer for new balancer to correctly handle first are a…

    …s endpoint, not hostname
    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    7ac2a2d View commit details
    Browse the repository at this point in the history
  15. clientv3: dial with context when creating authenticator

    Otherwise, "grpc.Dial" blocks when "grpc.WithTimeout" dial
    option gets deprecated.
    
    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    037d7b4 View commit details
    Browse the repository at this point in the history
  16. clientv3: pass "grpc.WithBlock" on "TestDialTimeout"

    Otherwise, grpc.DialContext would just return before
    connection is up.
    
    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    994a569 View commit details
    Browse the repository at this point in the history
  17. clientv3: deprecate "grpc.WithTimeout" in favor of "grpc.DialContext"

    "grpc.WithTimeout" dial option is being deprecated.
    
    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    bb032f3 View commit details
    Browse the repository at this point in the history
  18. clientv3: Avoid timeouts in ordering test

    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    66e65cd View commit details
    Browse the repository at this point in the history
  19. clientv3: Fix auth client to use endpoints instead of host when diali…

    …ng, fix tests to block on dial when required.
    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    f84f554 View commit details
    Browse the repository at this point in the history
  20. clientv3: Fix dial calls to consistently use endpoint resolver, attem…

    …pt to deflake alarm test
    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    ee2747e View commit details
    Browse the repository at this point in the history
  21. clientv3: Fix TLS test failures by returning DeadlineExceeded error f…

    …rom dial without any additional wrapping
    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    9304d1a View commit details
    Browse the repository at this point in the history
  22. clientv3: Fix endpoint resolver to create a new resolver for each grp…

    …c client connection
    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    8569b9c View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    1f6548b View commit details
    Browse the repository at this point in the history
  24. clientv3: remove unused "dialerrc"

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    4065735 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    a5b2fb5 View commit details
    Browse the repository at this point in the history
  26. vendor: add "go-grpc-middleware/util/backoffutils"

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    3130e4d View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    55ef9cc View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    05c57a0 View commit details
    Browse the repository at this point in the history
  29. clientv3/integration: Add err check to TestDialTLSNoConfig to prevent…

    … nil pointer dereference on c.Close()
    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    3b84117 View commit details
    Browse the repository at this point in the history
  30. *: fix fmt tests, reenable "testEmbedEtcdGracefulStop"

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    a3032d3 View commit details
    Browse the repository at this point in the history
  31. clientv3: put "defaultCallOpts" back to "Client" object

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    dd520ce View commit details
    Browse the repository at this point in the history
  32. clientv3: clarify retry function names, do not retry on dial error

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    08da08b View commit details
    Browse the repository at this point in the history
  33. clientv3: add "zap.Config" to replace global logger

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    a766810 View commit details
    Browse the repository at this point in the history
  34. clientv3: add "IsConnCanceled", deprecate "grpc.ErrClientConnClosing"

    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    6e521d2 View commit details
    Browse the repository at this point in the history
  35. grpcproxy: fix "grpc.ErrClientConnClosing" handling

    Fix
    
    ```
    go test -v -tags cluster_proxy -run TestWatchErrConnClosed
    ```
    
    with gRPC >= v1.10
    
    Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
    gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    d922069 View commit details
    Browse the repository at this point in the history
  36. vendor: Bump to grpc v1.12.2

    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    6572d60 View commit details
    Browse the repository at this point in the history
  37. docs: Add client architecture doc

    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    6309e4b View commit details
    Browse the repository at this point in the history
  38. clientv3: Enable balancer logging if ETCD_CLIENT_DEBUG environment va…

    …riable is set
    jpbetz authored and gyuho committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    8451a17 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    cb6e9d2 View commit details
    Browse the repository at this point in the history