Questions tagged [keepalive]
121 questions
3
votes
0 answers
Keepalive best practices for Nginx-Haproxy-Apache chain
I am using Nginx to serve static content, and Haproxy to proxy requests to multiple Apache2 backends discovered via Zookeeper.
Nginx -> Haproxy -> Apache2
According to the official Nginx website, it aggregates long-keepalive connections on their way…

user3521621
- 265
- 1
- 4
- 11
3
votes
1 answer
How does apache handles connections and requests using worker and prefork mpm modules?
I know that prefork module in apache creates one master process and several child processes to handle connections, my question is:
Does each prefork child handles one connection or handles one request per time?
and if it handles one connection does…

Hussein Galal
- 133
- 1
- 3
3
votes
1 answer
option http-server-close on HAProxy haproxy-1.5-dev19 will result in Connection: close header sent in response
I basically have the following issue: whenever I add
option http-server-close
to the haproxy config (either in frontend or backend section), haproxy will send a Connection: close header in the response - which is exactly the opposite of what is…

Bogdan Sorlea
- 163
- 2
- 5
3
votes
3 answers
Proxy to keep connection to API alive
On one server I have some 30 PHP sites running under Apache. All those sites use the same (HTTP) API to fetch some data. The API is hosted elsewhere (under my control)
The API uses Nginx with keep-alive and the PHP sites use CURL for making the API…

Ivor
- 31
- 1
- 2
3
votes
1 answer
Nginx keepalive_requests - What value to use for unlimited?
We are using an nginx backend behind a nginx proxy.
We use upstream keepalives.
They work quite nicely.
We were wondering, what value would we set keepalive_requests on the backend to set the maximum number of keepalive requests to…

anonymous-one
- 1,018
- 7
- 27
- 43
3
votes
3 answers
mod_rewrite+proxy closes connections to backend (keepalive)
We have a fairly typical setup: client <-> apache2 (2.2.22) <-> backend (*).
Initially we were using mod_rewrite with the [P] flag in the simplest form:
RewriteEngine On
ProxyPreserveHost On
RewriteRule ^(.*)$…

adamw
- 145
- 1
- 5
3
votes
2 answers
Is It Better to set KeepAlive to 1 second rather than turning it off all together?
I've heard setting keepalive timeout at too high a number will diminish its value. So, to be on the safe side, and still somewhat benefit from it, can I set it to 1 second ?
Or will setting it to 1 second be equivalent to just leaving it OFF ?

Greatestswordsman
- 397
- 1
- 7
- 19
3
votes
1 answer
Show TCP keepalive status in Windows?
Using netstat -to on a Linux system shows the status of tcp keepalive for a socket like this:
Proto Recv-Q Send-Q Local Address Foreign Address State Timer
tcp6 0 0 192.168.210.114:3389 192.168.10.57:52914 …

T-Me
- 163
- 4
3
votes
3 answers
Risks of enabling nginx upstream keepalive
Using nginx as HTTP reverse proxy for Apache with PHP backend (I need .htaccess flexibility for webmasters).
Seeing http/1.0 used in Apache logs made me look up on how to enable keep-alive connection.
Upon my search I found this blog post from Nginx…

logut
- 33
- 1
- 4
2
votes
0 answers
TCP KeepAlives with NAT?
We have a Network set up like this:
MQTT Client -- TCP Forward (Netscaler) -- TLS Termination + TCP Forwarding (HAProxy) -- MQTT Server
For several reasons we needed to turn on TCP KeepAlives in HAProxy, because the client has a huge timeout which…

peez80
- 171
- 5
2
votes
1 answer
AWS API Gateway with Lambda and KeepAlive (persistent connections)
I'm a bit confused about Keep-Alive with AWS API Gateway.
Is this something I need to configure? or maybe be careful with this setting?
Because I will use API Gateway to execute Lambda functions, and because Lambda price depends on the execution…

Enrique
- 143
- 1
- 5
2
votes
1 answer
Why can't Nginx reuse connection to upstream while serving sequential requests from clients?
As mentioned in http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive
It should be particularly noted that the keepalive directive does not limit the total number of connections to upstream servers that a Nginx worker process can…

Aarti
- 689
- 1
- 7
- 6
2
votes
0 answers
socket_keepalive configuration for mod_jk
I have Apache httpd with mod_jk. I have issue with killed connections after long idling period: Apache stops to respond and each HTTP request hangs for 15 minutes. I tried turn off mod_jk connection pooling (with DisableReuse) and the issue…

Dmitrii Stebliuk
- 21
- 1
2
votes
1 answer
Linux GRE keep alive
What are possibilities in Linux kernel (?) to work with Cisco endpoint encorporating GRE keep-alives? We have GRE IPsec tunnel set up with another company. We would like to have backup tunnel which should be active when main one dies. So they enable…

unhit
- 21
- 3
2
votes
2 answers
KeepAlive in Apache 2.4 interfering with form submissions
I have just upgraded a server to Debian Jessie, which includes Apache 2.4.10 (was 2.2), and PHP 5.6.
Now, SSL sites won't submit forms in some circumstances on IE11 and iPad Safari (not sure about desktop Safari). Firefox and Chrome are both OK.…

user1247280
- 166
- 1
- 5