Current time: 12-14-2017, 06:57 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange resource Content Download pattern
12-13-2014, 02:59 AM (This post was last modified: 12-13-2014 03:01 AM by vmichnowicz.)
Post: #1
Strange resource Content Download pattern
I have been noticing a strange Content Download time across all of the resources on my site. This pattern affects all resources on my server (JavaScript, images, pages etc...), however, it does not affect resources on other servers (Google Analytics JavaScript). To help visualize, here is the Content Download time of a fairly static HTML page on our site:

   

As you can see the Content Download time displays a very distinct pattern over time. I am wondering what the cause for this pattern could be. We have not been toggling anything on our server on and off, and this pattern is visible across all static and dynamic assets so this is not something database or back-end code related.

Is there anything WPT-related that could explain this pattern?
Find all posts by this user
Quote this message in a reply
12-13-2014, 04:14 AM
Post: #2
RE: Strange resource Content Download pattern
Not that comes to mind. Hard to say without a bunch more specifics:

1 - Is the file served from a CDN or directly from the server?
2 - Are there multiple servers or just one?
3 - Is it HTTP or HTTPS?
4 - Do you see varying times on the server side (if you're logging it)?

The likely causes that jump out to mind are something around an extra round trip or longer distance for requests (maybe servers with different initial CWND settings).
Visit this user's website Find all posts by this user
Quote this message in a reply
12-16-2014, 03:57 AM
Post: #3
RE: Strange resource Content Download pattern
(12-13-2014 04:14 AM)pmeenan Wrote:  1 - Is the file served from a CDN or directly from the server?

Directly from the server.

(12-13-2014 04:14 AM)pmeenan Wrote:  2 - Are there multiple servers or just one?

Multiple via a load balancer.

(12-13-2014 04:14 AM)pmeenan Wrote:  3 - Is it HTTP or HTTPS?

HTTP.

(12-13-2014 04:14 AM)pmeenan Wrote:  4 - Do you see varying times on the server side (if you're logging it)?

That would be a good thing too look at. I'll have to figure out a good way to parse through that mountain of data to see if I can find anything.

Thank you for thought's, I'll present them to my team as a possible culprit.
Find all posts by this user
Quote this message in a reply
12-18-2014, 03:56 AM (This post was last modified: 12-18-2014 03:57 AM by vmichnowicz.)
Post: #4
RE: Strange resource Content Download pattern
I think we got it thanks to you mentioning "CWND" Smile

So every time we run Linux kernel updates we would also run the following command:

Code:
/sbin/ip route change default via 192.168.100.1 dev eth0 initcwnd 10

The thinking was that after we run kernel updates we would need to disable TCP slow start again. However, as it turns out TCP slow start must be disabled again after every server reboot. So every time we would reboot the server TCP slow start would get enabled again and our download times would go up.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)