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

spring-cloud-gateway cpu100% #3359

Open
chaoshen456 opened this issue Apr 18, 2024 · 0 comments
Open

spring-cloud-gateway cpu100% #3359

chaoshen456 opened this issue Apr 18, 2024 · 0 comments

Comments

@chaoshen456
Copy link

Encountered an error with spring-cloud-gateway; the error message indicates DNS resolution failure, but the CPU usage skyrockets to over 99%. restart the system, but didn’t retain the stack trace. I also consulted the operations team, who confirmed that there was no issue with the network at the time. Could you, please, help investigate and explain the cause of the problem, and follow up on the error logs?

error message:

[http://aliyun-aliyun-gateway.prd.aliyun-tech.net/open/v3/dispatch]
请求Method:POST
请求Headers:[Accept:"text/html, image/gif, image/jpeg, *; q=.2, /; q=.2", Iyb-Pis-Gateway-Request-Id:"a00c9096cda34bc1a4c7934b8b1deac0", User-Agent:"Java/1.8.0_151", X-Forwarded-Host:"aliyun-aliyun-gateway.prd.aliyun-tech.net", X-Forwarded-Proto:"http", Host:"aliyun-aliyun-gateway.prd.aliyun-tech.net:80", Pragma:"no-cache", Accept-Encoding:"gzip", X-Forwarded-Port:"80", Cache-Control:"no-cache", X-Forwarded-For:"172.25.192.8", Content-Length:"812", X-Real-Ip:"172.25.192.8", X-Forwarded-Server:"iZbp12tyouno44cwptylocZ", Content-Type:"application/json;charset=UTF-8"]
转发地址:http://aliyun-aliyun-v3.prd.aliyun-tech.net:80/open/v3/dispatch
匹配路由:Route{id='forward_aliyun_dispatch_v3', uri=http://aliyun-aliyun-v3.prd.aliyun-tech.net:80, order=0, predicate=Paths: [/{prefix}/v3/dispatch], match trailing slash: true, gatewayFilters=[[com.baoyun.aliyun.gateway.filters.ServiceSelectorGatewayFilterFactory$$Lambda$897/532048323@7566be6b, order = 1], com.baoyun.aliyun.gateway.filters.ForwardBackUpServiceGatewayFilterFactory$ForwardBackUpServiceGatewayFilter@24f2bc59], metadata={}}
匹配路由定义:forward_aliyun_dispatch_v3
io.netty.resolver.dns.DnsResolveContext$SearchDomainUnknownHostException: Failed to resolve 'aliyun-aliyun-v3.prd.aliyun-tech.net' [A(1)] and search domain query for configured domains failed as well: [iyunbao.svc.cluster.local, svc.cluster.local, cluster.local]
at io.netty.resolver.dns.DnsResolveContext.finishResolve(DnsResolveContext.java:1097)
Suppressed: The stacktrace has been enhanced by Reactor, refer to additional information below:
Error has been observed at the following site(s):
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v2/route/wxSignNotify" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v1/taikangZYRenewalFee/renewal" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter [DefaultWebFilterChain]
*__checkpoint ⇢ HTTP POST "/open/v3/dispatch" [ExceptionHandlingWebHandler]
*__checkpoint ⇢ org.springframework.cloud.gateway.filter.Weigh

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

No branches or pull requests

1 participant