BYU-Hydroinformatics / api-nwm-gcp

REST API backed by National Water Model data, developed on Google Cloud Platform
4 stars 1 forks source link

API Gateway does not communicate with Load Balancer in GCP #14

Open benlee0423 opened 1 week ago

benlee0423 commented 1 week ago

Custom API Gateway that was created based on this repository does not communicate with Load Balancer in GCP. Followed the steps in the following documentation. https://cloud.google.com/api-gateway/docs/gateway-serverless-neg

Also, try the same with Hello World API Gateway. In this case, it worked perfectly.

The below is the log file with custom API Gateway with Load balancer. The only thing I got from load balancer log is the json payload below in WARNING severity. "jsonPayload": { "remoteIp": "76.115.184.4", "@type": "type.googleapis.com/google.cloud.loadbalancing.type.LoadBalancerLogEntry", "cacheDecision": [ "RESPONSE_HAS_CACHE_CONTROL", "CACHE_MODE_USE_ORIGIN_HEADERS" ], "backendTargetProjectNumber": "projects/580147433214" }

Complete log messages for both big query backend and hello world backend with the same load balancer are attached. hello_load_balancer.txt nwm_load_balancer.txt

jameshalgren commented 1 week ago

Is the API deployed currently without a load balancer?

benlee0423 commented 1 week ago

Is the API deployed currently without a load balancer?

API is deployed with load balancer. Because the connection between two does not work, we need to call API url to get big query result.

arpita0911patel commented 4 days ago

https://github.com/BYU-Hydroinformatics/api-nwm-gcp/pull/15