-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented locality weighted load balancing | Added metric test
- Loading branch information
1 parent
5f9fbc8
commit 8b882e7
Showing
6 changed files
with
165 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
124 changes: 124 additions & 0 deletions
124
envoy-control-tests/src/main/resources/envoy/config_xds_stat_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
admin: | ||
access_log_path: /dev/null | ||
address: | ||
socket_address: { address: 0.0.0.0, port_value: 10000 } | ||
dynamic_resources: | ||
lds_config: | ||
resource_api_version: V3 | ||
api_config_source: | ||
api_type: GRPC | ||
transport_api_version: V3 | ||
grpc_services: | ||
envoy_grpc: | ||
cluster_name: envoy-control-xds | ||
cds_config: | ||
resource_api_version: V3 | ||
api_config_source: | ||
api_type: GRPC | ||
transport_api_version: V3 | ||
grpc_services: | ||
envoy_grpc: | ||
cluster_name: envoy-control-xds | ||
stats_config: | ||
stats_tags: | ||
- tag_name: destination_dc | ||
regex: ^cluster\..+.zone\.[a-zA-Z]+-?[a-zA-Z]?[0-9].([a-zA-Z]+-?[a-zA-Z]?[0-9]).* | ||
|
||
node: | ||
cluster: test-cluster | ||
id: test-id | ||
metadata: | ||
ingress_host: "0.0.0.0" | ||
ingress_port: 5001 | ||
egress_host: "0.0.0.0" | ||
egress_port: 5000 | ||
use_remote_address: true | ||
generate_request_id: true | ||
preserve_external_request_id: true | ||
access_log_enabled: false | ||
add_upstream_external_address_header: true | ||
resources_dir: "/etc/envoy/extra" | ||
service_name: "echo2" | ||
proxy_settings: | ||
incoming: | ||
endpoints: | ||
- path: "/endpoint" | ||
clients: ["authorizedClient"] | ||
outgoing: | ||
dependencies: | ||
- service: "service-1" | ||
- service: "service-2" | ||
- service: "service-3" | ||
- service: "service-4" | ||
- service: "service-5" | ||
- service: "echo" | ||
timeoutPolicy: | ||
requestTimeout: "15s" | ||
- service: "consul" | ||
timeoutPolicy: | ||
requestTimeout: "15s" | ||
- service: "proxy1" | ||
- service: "proxy2" | ||
- service: "service-redirect" | ||
handleInternalRedirect: true | ||
- service: "host-rewrite-service" | ||
rewriteHostHeader: true | ||
- domain: "https://my.example.com" | ||
- domain: "https://bad.host.example.com" | ||
- domain: "https://www.example.com" | ||
- domain: "https://www.example-redirect.com" | ||
handleInternalRedirect: true | ||
|
||
static_resources: | ||
clusters: | ||
- connect_timeout: 1s | ||
load_assignment: | ||
cluster_name: envoy-control-xds | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: HOST_IP | ||
port_value: HOST_PORT | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: HOST_IP | ||
port_value: HOST2_PORT | ||
http2_protocol_options: {} | ||
name: envoy-control-xds | ||
- name: envoy-original-destination | ||
type: ORIGINAL_DST | ||
lb_policy: CLUSTER_PROVIDED | ||
original_dst_lb_config: | ||
use_http_header: true | ||
connect_timeout: | ||
seconds: 1 | ||
http_protocol_options: | ||
allow_absolute_url: true | ||
- name: local_service | ||
type: STATIC | ||
load_assignment: | ||
cluster_name: local_service | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: LOCAL_SERVICE_IP | ||
port_value: 5678 | ||
connect_timeout: 1s | ||
- name: this_admin | ||
type: STATIC | ||
load_assignment: | ||
cluster_name: this_admin | ||
endpoints: | ||
- lb_endpoints: | ||
- endpoint: | ||
address: | ||
socket_address: | ||
address: 127.0.0.1 | ||
port_value: 10000 | ||
connect_timeout: | ||
seconds: 1 |