Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicStack ¶
type DynamicStack struct { // service discovery type ServiceDiscoveryType shared.ServiceDiscoveryType // number of virtual service VirtualServicesCount int // number of virtual nodes count VirtualNodesCount int // number of routes per virtual router RoutesCountPerVirtualRouter int // number of targets per route TargetsCountPerRoute int // number of backends per virtual node BackendsCountPerVirtualNode int // number of replicas per virtual node ReplicasPerVirtualNode int32 // how many time to check connectivity per URL ConnectivityCheckPerURL int // contains filtered or unexported fields }
A dynamic generated stack designed to test app mesh integration :D Suppose given configuration below:
5 VirtualServicesCount 10 VirtualNodesCount 2 RoutesCountPerVirtualRouter 2 TargetsCountPerRoute 4 BackendsCountPerVirtualNode
We will generate virtual service configuration & virtual node configuration follows: =======virtual services =========
vs1 -> /path1 -> vn1(50) -> vn2(50) -> /path2 -> vn3(50) -> vn4(50) vs2 -> /path1 -> vn5(50) -> vn6(50) -> /path2 -> vn7(50) -> vn8(50) vs3 -> /path1 -> vn9(50) -> vn10(50) -> /path2 -> vn1(50) -> vn2(50) vs4 -> /path1 -> vn3(50) -> vn4(50) -> /path2 -> vn5(50) -> vn6(50) vs5 -> /path1 -> vn7(50) -> vn8(50) -> /path2 -> vn9(50) -> vn10(50)
=======virtual nodes =========
vn1 -> vs1,vs2,vs3,vs4 vn2 -> vs5,vs1,vs2,vs3 vn3 -> vs4,vs5,vs1,vs2 ...
then we validate each virtual node can access each virtual service at every path, and calculates the target distribution
func (*DynamicStack) Check ¶
func (s *DynamicStack) Check(ctx context.Context, f *framework.Framework)
Check connectivity and routing works correctly
Click to show internal directories.
Click to hide internal directories.