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

EDS in filemode working correctly? #6

Open
iKubernetes opened this issue Jul 13, 2019 · 2 comments
Open

EDS in filemode working correctly? #6

iKubernetes opened this issue Jul 13, 2019 · 2 comments

Comments

@iKubernetes
Copy link

EDS in filemode working correctly?

@tak2siva
Copy link
Owner

It should be. Are you facing any errors ?

Also check this out https://github.com/tak2siva/Envoy-xDS-Example-From-File

@iKubernetes iKubernetes reopened this Jul 21, 2019
@iKubernetes
Copy link
Author

I want to use EDS only, and put a yaml config file EDS.yaml under /file_mode_config/ directory or /file_mode_config/mycluster/EDS.yaml or /file_mode_config/mycluster/EDS/ directory respectively, but it dosen't work.

The logs from Envoy-Pilot

2019/07/21 06:29:54 ------- ENV VALUES ----- 2019/07/21 06:29:54 FILE_MODE: true 2019/07/21 06:29:54 FOLDER_PATH: /file_mode_config/ 2019/07/21 06:29:54 CONSUL_PREFIX: xDS 2019/07/21 06:29:54 ------------------------ 2019/07/21 06:29:54 /go/src/Envoy-Pilot/cmd/server/storage/consul.go:38: Consul Path: 2019/07/21 06:29:54 /go/src/Envoy-Pilot/cmd/server/dump/config_dump.go:24: Starting http server on :9090.. 2019/07/21 06:29:54 /go/src/Envoy-Pilot/cmd/server/main.go:63: Started grpc server.. 2019/07/21 06:29:54 /go/src/Envoy-Pilot/cmd/server/metrics/metrics.go:88: Starting metrics server on :8081.. 2019/07/21 06:29:54 /go/src/Envoy-Pilot/cmd/server/service/watchService.go:123: Starting poll loop for 10s.. 2019/07/21 06:30:00 /go/src/Envoy-Pilot/cmd/server/server/server.go:42: [EDS] -------------- Starting a EDS stream from 172.17.0.7:35058 ------------------ 2019/07/21 06:30:00 /go/src/Envoy-Pilot/cmd/server/storage/subscriberDao.go:33: Registering subscriber &{Guid:bkq0cq21scg98fehpvs0 Cluster:mycluster Node:mynode UpdateSuccess:0 UpdateFailures:0 LastUpdatedVersion:bkq09r21scg98f8badm0 LastUpdatedTimestamp:0001-01-01 00:00:00 +0000 UTC SubscribedTo:EDS AdsList:map[] IpAddress:172.17.0.7:35058} 2019/07/21 06:30:00 /go/src/Envoy-Pilot/cmd/server/server/server.go:80: [EDS] Received Request from mycluster/EDS/bkq0cq21scg98fehpvs0 { "version_info": "bkq09r21scg98f8badm0", "node": { "id": "mynode", "cluster": "mycluster", "build_version": "bf169f9d3c8f4c682650c5390c088a4898940913/1.11.0/Clean/RELEASE/BoringSSL" }, "resource_names": [ "myservice" ], "type_url": "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment", "response_nonce": "3c4b465a-150c-49d5-9405-9115acbc47bc" } 2019/07/21 06:30:00 /go/src/Envoy-Pilot/cmd/server/server/server.go:86: [EDS] Response nonce not recognized 3c4b465a-150c-49d5-9405-9115acbc47bc 2019/07/21 06:30:00 /go/src/Envoy-Pilot/cmd/server/service/watchService.go:41: Found update bkq09r21scg98f8badm0 --> bkq0cq21scg98fehpvsg dispatching for mycluster/EDS/bkq0cq21scg98fehpvs0 2019/07/21 06:30:00 /go/src/Envoy-Pilot/cmd/server/storage/subscriberDao.go:42: Writing ACK mycluster/EDS/bkq0cq21scg98fehpvs0/Nonce/Stream/0b28be00-a216-4dc4-93fd-df7acd6dd39e 2019/07/21 06:30:00 /go/src/Envoy-Pilot/cmd/server/service/dispatchService.go:98: Successfully Sent config to mycluster/EDS/bkq0cq21scg98fehpvs0 2019/07/21 06:30:00 /go/src/Envoy-Pilot/cmd/server/server/server.go:80: [EDS] Received Request from mycluster/EDS/bkq0cq21scg98fehpvs0 { "version_info": "bkq0cq21scg98fehpvsg", "node": { "id": "mynode", "cluster": "mycluster", "build_version": "bf169f9d3c8f4c682650c5390c088a4898940913/1.11.0/Clean/RELEASE/BoringSSL" }, "resource_names": [ "myservice" ], "type_url": "type.googleapis.com/envoy.api.v2.ClusterLoadAssignment", "response_nonce": "0b28be00-a216-4dc4-93fd-df7acd6dd39e" } 2019/07/21 06:30:00 /go/src/Envoy-Pilot/cmd/server/service/dispatchService.go:107: Received ACK 0b28be00-a216-4dc4-93fd-df7acd6dd39e from mycluster/EDS/bkq0cq21scg98fehpvs0

/file_mode_config/mycluster/EDS.yaml content

`- cluster_name: myservice
endpoints:

  • lb_endpoints:
    • endpoint:
      address:
      socket_address:
      address: 172.17.0.4
      port_value: 80
    • endpoint:
      address:
      socket_address:
      address: 172.17.0.5
      port_value: 80`

Envoy configure file

` clusters:

  • name: web-cluster-1
    type: EDS
    connect_timeout: 0.25s
    eds_cluster_config:
    service_name: myservice
    eds_config:
    api_config_source:
    api_type: GRPC
    grpc_services:
    envoy_grpc:
    cluster_name: xds_cluster

  • name: xds_cluster
    type: STATIC
    connect_timeout: 0.25s
    http2_protocol_options: {}
    load_assignment:
    cluster_name: xds_cluster
    endpoints:

    • lb_endpoints:
      • endpoint:
        address:
        socket_address:
        address: 172.17.0.6
        port_value: 7777`

Envoy admin /clusters

xds_cluster::default_priority::max_connections::1024
xds_cluster::default_priority::max_pending_requests::1024
xds_cluster::default_priority::max_requests::1024
xds_cluster::default_priority::max_retries::3
xds_cluster::high_priority::max_connections::1024
xds_cluster::high_priority::max_pending_requests::1024
xds_cluster::high_priority::max_requests::1024
xds_cluster::high_priority::max_retries::3
xds_cluster::added_via_api::false
xds_cluster::172.17.0.6:7777::cx_active::1
xds_cluster::172.17.0.6:7777::cx_connect_fail::26
xds_cluster::172.17.0.6:7777::cx_total::32
xds_cluster::172.17.0.6:7777::rq_active::1
xds_cluster::172.17.0.6:7777::rq_error::31
xds_cluster::172.17.0.6:7777::rq_success::0
xds_cluster::172.17.0.6:7777::rq_timeout::0
xds_cluster::172.17.0.6:7777::rq_total::6
xds_cluster::172.17.0.6:7777::hostname::
xds_cluster::172.17.0.6:7777::health_flags::healthy
xds_cluster::172.17.0.6:7777::weight::1
xds_cluster::172.17.0.6:7777::region::
xds_cluster::172.17.0.6:7777::zone::
xds_cluster::172.17.0.6:7777::sub_zone::
xds_cluster::172.17.0.6:7777::canary::false
xds_cluster::172.17.0.6:7777::priority::0
xds_cluster::172.17.0.6:7777::success_rate::-1
xds_cluster::172.17.0.6:7777::local_origin_success_rate::-1
web-cluster-1::default_priority::max_connections::1024
web-cluster-1::default_priority::max_pending_requests::1024
web-cluster-1::default_priority::max_requests::1024
web-cluster-1::default_priority::max_retries::3
web-cluster-1::high_priority::max_connections::1024
web-cluster-1::high_priority::max_pending_requests::1024
web-cluster-1::high_priority::max_requests::1024
web-cluster-1::high_priority::max_retries::3
web-cluster-1::added_via_api::false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants