Welcome! Log In Create A New Profile

Advanced

Re: Strange $upstream_response_time latency spikes with reverse proxy

All files from this thread

File Name File Size   Posted by Date  
107.3 KB open | download jay 03/18/2013 Read message
102 KB open | download jay 03/18/2013 Read message
jay
March 19, 2013 06:44PM
Hi Andrei!

On Tue, Mar 19, 2013 at 2:49 AM, Andrei Belov <defan@nginx.com> wrote:

> Hello Jay,
>
> If I understand you right, issue can be repeated in the following cases:
>
> 1) client and server are on different EC2 instances, public IPs are used;
> 2) client and server are on different EC2 instances, private IPs are used;
> 3) client and server are on a single EC2 instance, public IP is used.
>
> And there are no problems when:
>
> 1) client and server are on a single EC2 instance, either loopback or
> private IP is used.
>
> Please correct me if I'm wrong.
>

If by "client" you mean nginx, and by "server" you mean our upstream HTTP
service ... That is exactly correct. You could also throw in another
permutation by changing where ApacheBench is run, but it doesn't change the
occurrence of dropped packets; only increases average latency when AB and
nginx are on separate EC2 instances.


> What about EC2 security group - do the client and the server use the same
> group?
> How many rules are present in this group? Have you tried to either decrease
> a number of rules used, or create "pass any to any" simple configuration?
>

That's a great point! We have been struggling with the number of firewall
rules as a separate matter, in fact. There may be some relation here. Thank
you for reminding me.


> And just to clarify the things - under "external IP address" do you mean
> EC2
> instance's public IP, or maybe Elastic IP?


I'm talking about the instance public IPs. Elastic IPs are only used for
client access to nginx. And specifically only for managing DNS. Between
nginx and upstream servers, the public IPs are used.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Strange $upstream_response_time latency spikes with reverse proxy

jay March 14, 2013 10:08PM

Re: Strange $upstream_response_time latency spikes with reverse proxy

Maxim Dounin March 15, 2013 04:22AM

Re: Strange $upstream_response_time latency spikes with reverse proxy

jay March 16, 2013 04:38AM

Re: Strange $upstream_response_time latency spikes with reverse proxy

nginxorg March 16, 2013 11:06AM

Re: Strange $upstream_response_time latency spikes with reverse proxy

jay March 17, 2013 05:20AM

Re: Strange $upstream_response_time latency spikes with reverse proxy Attachments

jay March 18, 2013 06:10PM

Re: Strange $upstream_response_time latency spikes with reverse proxy

Andrei Belov March 19, 2013 05:50AM

Re: Strange $upstream_response_time latency spikes with reverse proxy

jay March 19, 2013 06:44PM

Re: Strange $upstream_response_time latency spikes with reverse proxy

jay March 22, 2013 10:14PM

Re: Strange $upstream_response_time latency spikes with reverse proxy

Maxim Dounin March 16, 2013 07:40PM

Re: Strange $upstream_response_time latency spikes with reverse proxy

jay March 17, 2013 05:24AM

Re: Strange $upstream_response_time latency spikes with reverse proxy

Maxim Dounin March 17, 2013 07:44AM

Re: Strange $upstream_response_time latency spikes with reverse proxy

jay March 18, 2013 05:20PM

Re: Strange $upstream_response_time latency spikes with reverse proxy

Maxim Dounin March 19, 2013 10:20AM

Re: Strange $upstream_response_time latency spikes with reverse proxy

jay March 19, 2013 06:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready