Override default timeout value. #9896
Replies: 5 comments 1 reply
-
@Sn0rt please take a look |
Beta Was this translation helpful? Give feedback.
-
nginx usually connects to upstream usually has three timeouts
let me check how setting this. #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# example
routes:
-
uri: /hello
upstream:
nodes:
"127.0.0.1:1980": 1
type: roundrobin
timeout:
connect: 60s
send: 60s
read: 60s
#END |
Beta Was this translation helpful? Give feedback.
-
@Sn0rt - Thanks for your inputs. But the above timeout rule is applicable for only /hello uri. I want to set a global timeout rule for all upstream uris. Please kindly provide me the configuration for the same. Thanks, |
Beta Was this translation helpful? Give feedback.
-
@Sn0rt - Thank you so much for your quick inputs. |
Beta Was this translation helpful? Give feedback.
-
by adding raw nginx config can set global proxy timeout for apisix nginx_config: # config for render the template to genarate nginx.conf
http_configuration_snippet: |
proxy_connect_timeout 300s;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
|
Beta Was this translation helpful? Give feedback.
-
I am using APISIX 3.4 version(Standalone mode).
How to set a global timeout rule for all upstream servers? The default timeout value is 60 seconds. I want to override this 60 seconds to 900 seconds.
Pl provide me a sample yaml configuration file to achieve the same.
Thanks,
Hariharan.
Beta Was this translation helpful? Give feedback.
All reactions