首页 > 其他分享 >504 Gateway Time-out

504 Gateway Time-out

时间:2023-08-03 19:55:58浏览次数:39  
标签:http read server proxy timeout 504 Gateway fastcgi out

 

 

 

现状:nginx 代理某api 接口,业务是统计一年数据,计算量较大,耗时2分钟,导致页面返回 504 

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout

Syntax: proxy_read_timeout time;
Default:
proxy_read_timeout 60s;
Context: httpserverlocation

Defines a timeout for reading a response from the proxied server. The timeout is set only between two successive read operations, not for the transmission of the whole response. If the proxied server does not transmit anything within this time, the connection is closed.

 

http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_read_timeout

Syntax: fastcgi_read_timeout time;
Default:
fastcgi_read_timeout 60s;
Context: httpserverlocation

Defines a timeout for reading a response from the FastCGI server. The timeout is set only between two successive read operations, not for the transmission of the whole response. If the FastCGI server does not transmit anything within this time, the connection is closed.

 

proxy 走代理,fastcgi 不走代理。试着把proxy_read_timeout 调整为180s ,可以了

标签:http,read,server,proxy,timeout,504,Gateway,fastcgi,out
From: https://www.cnblogs.com/zno2/p/17022064.html

相关文章

  • Access 谈谈数据导出语句 DoCmd.OutputTo
    官方文档:DoCmd.OutputTo方法(Access)|MicrosoftLearn看上去挺复杂的,其实主要看第一和第三个参数.不想去研究的朋友,下面这几行代码,应该够用了'将报表导出为PDF代码DoCmd.OutputToacOutputReport,"报表名称",acFormatPDF,,True'将报表导出为Excel代码D......
  • tracert原理(traceroute工作原理)
    Tracert,是路由跟踪程序,主要用于确定数据包在传输过程中经过的路由节点。在Linux操作系统中,对应的命令为Traceroute,Tracert为windows系统下的命令。Tracert是利用ICMP数据报和IP数据报头部中的TTL机制和原始套接字接口来跟踪数据包传输中经过的路由器。Tracert的工作原理:Tracert......
  • IfcFaceOuterBound
    IfcFaceOuterBound实体定义注:定义依据ISO/CD10303-42:1992面外边界是面边界的一个特殊子类型,它承载了在面上定义外边界的附加语义。此类表面的边界不得超过一个。注:实体适用于ISO10303-42中定义的face_outer_bound。IFC1.0中的新实体  Attributeinheritance#Attr......
  • SpringCloudAlibaba Gateway聚合knife4j接口文档
    实现效果:Gateway服务可以查看多个服务的接口文档; knife4j依赖:<dependency><groupId>com.github.xiaoymin</groupId><artifactId>knife4j-spring-boot-starter</artifactId><version>3.0.3</versio......
  • tp动态匹配多级路径 app/admin/route/app.php
    //请求路径$baseUrl=request()->baseUrl();//访问地址二级目录路由匹配if(substr_count($baseUrl,'/')==3){$baseUrl=substr($baseUrl,1);//动态匹配为二级路由规则Route::rule($baseUrl,substr_replace($baseUrl,'.',strpos($baseUrl,'/',0......
  • vue3路由的两种引入方式useRouter和router进行页面跳转
    1.在vue3中有两种路由的引入方式第一种import{useRouter}from'vue-router'constuse_router=useRouter()use_router.push('/pathName')第二种importrouterfrom'@/router'router.push('/pathName') 2.两种方式的区别2.1.第一种方式的使用位置在vue......
  • 沁恒触摸主动屏蔽与互感模式PCB Layout说明
    沁恒MCU触摸按键主动屏蔽模式与互感模式Layout说明主动屏蔽模式      主动屏蔽模式是指利用MCU的专用引脚,启用屏蔽功能,对各触摸检测通道做隔离,主动屏蔽主要作用有:      1)减小电路板上的互电容,从而减小触摸传感器基础电容值,增加触摸相对变化率;  ......
  • ConstraintLayout(约束布局)
    1.规则layout_constraintLeft_toLeftOf当前View的右侧和另一个View的右侧位置对齐与RelativeLayout的alignLeft属性相似layout_constraintLeft_toRightOf当前view的左侧会在另一个View的右侧位置与RelativeLayout的toRightOf属性相似layout_constraintRight_toLeftOf当......
  • VScode 中golang 单元测试,解决单元测试超时timeout30s
    目的:单元测试的主要目的是验证代码的每个单元(函数、方法)是否按照预期工作。提示:解决单元测试超时30s的问题在序号4 1准备以_test.go结尾文件和导入testing包在命名文件时需要让文件必须以_test结尾,在文件中导入testing包。单元测试源码文件可以由多个测试用例组成,每个测试......
  • TDengine连接数满了报错:Connection is not available, request timed out after 3000
    背景使用tdengine时遇到一个情况,应用程序使用连接池将接收到的实时数据插入TD时,会出现获取不到连接的报错.重现起一个模拟程序,发送100条数据到应用程序,应用程序从批量插入改为逐条插入td,重现出报错:org.springframework.jdbc.support.MetaDataAccessException:Could......