roundrobin

package
v1.68.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package roundrobin contains helper functions to check for roundrobin and weighted-roundrobin load balancing of RPCs in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRoundRobinRPCs

func CheckRoundRobinRPCs(ctx context.Context, client testgrpc.TestServiceClient, addrs []resolver.Address) error

CheckRoundRobinRPCs verifies that EmptyCall RPCs on the given ClientConn, connected to a server exposing the test.grpc_testing.TestService, are roundrobined across the given backend addresses.

Returns a non-nil error if context deadline expires before RPCs start to get roundrobined across the given backends.

func CheckWeightedRoundRobinRPCs

func CheckWeightedRoundRobinRPCs(ctx context.Context, client testgrpc.TestServiceClient, addrs []resolver.Address) error

CheckWeightedRoundRobinRPCs verifies that EmptyCall RPCs on the given ClientConn, connected to a server exposing the test.grpc_testing.TestService, are weighted roundrobined (with randomness) across the given backend addresses.

Returns a non-nil error if context deadline expires before RPCs start to get roundrobined across the given backends.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL