High Latency on GoAgent Proxy Server hosted on Google App Engine

107 views
Skip to first unread message

Nathan Suchy

unread,
Jan 19, 2014, 3:42:52 PM1/19/14
to google-a...@googlegroups.com
Hello,

I'm having some issues with a script I uploaded to Google App Engine for my personal usage. The script is called GoAgent it allows you to proxy your web browsing traffic through Google App Engine. This is useful because I'm often behind restrictive networks and I don't want all websites to know my IP Address unless absolutely necessary (protects me from getting DDOSed). My problem is that according to my most recent refresh of the Application Dashboard:
URI Req/MincurrentRequestslast 24 hrsRuntime MCycleslast hrAvg Latencylast hr
0.62.64K7156 ms

Often that number will be as high as 2000-6000ms. I tried upgrading my frontend instance from f1 to f4 but it consumed hours like crazy so I turned it back into a f1.

Mainly why is my latency so high? Right now it's fine but what causes it to go so high up?

Vinny P

unread,
Jan 24, 2014, 10:36:48 PM1/24/14
to google-a...@googlegroups.com
On Sun, Jan 19, 2014 at 2:42 PM, Nathan Suchy <m...@nsuchy.net> wrote:
I'm having some issues with a script I uploaded to Google App Engine for my personal usage.

Mainly why is my latency so high? Right now it's fine but what causes it to go so high up?



There's no single answer here. It could be that your application was experiencing heavy load (perhaps you were requesting too many pages simultaneously, for one example), or that App Engine was just experiencing "slowtime" at the moment you noticed.

What you can try doing is increasing the number of idle instances and seeing if that makes any difference. A warning though: this will increase your bill. For an explanation, see https://developers.google.com/appengine/docs/adminconsole/performancesettings#scheduler
 
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

Nathan Suchy

unread,
Jan 24, 2014, 11:00:17 PM1/24/14
to google-a...@googlegroups.com
The whole thing is that the application has custom password authentication in it and only I can access it. I'm only accessing a web page or two every few seconds on it. There should not be such a high latency. Beyond that "slowtime" should not be 6000ms!


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.



--
Nathan Suchy

Vinny P

unread,
Jan 24, 2014, 11:49:52 PM1/24/14
to google-a...@googlegroups.com
On Fri, Jan 24, 2014 at 10:00 PM, Nathan Suchy <m...@nsuchy.net> wrote:
The whole thing is that the application has custom password authentication in it and only I can access it. I'm only accessing a web page or two every few seconds on it. 


Which web pages? There are many web pages that reference hundreds or even thousands of external elements: JSONP calls, images, iframes, etc. Yes, you may only see one web page, but your proxy may be seeing hundreds of requests.

Nathan Suchy

unread,
Jan 25, 2014, 10:21:04 AM1/25/14
to google-a...@googlegroups.com
General Web Traffic


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.



--
Nathan Suchy

Nathan Suchy

unread,
Jan 25, 2014, 11:55:52 AM1/25/14
to google-a...@googlegroups.com
Current Load help
URI  Req/Mincurrent Requestslast 24 hrs Runtime MCycleslast hr Avg Latencylast hr
6.2 6.93K 9 4516 ms
--
Nathan Suchy

Nathan Suchy

unread,
Jan 25, 2014, 11:56:22 AM1/25/14
to google-a...@googlegroups.com
That is not a lot of traffic 6.2 requests per minute...
--
Nathan Suchy

Vinny P

unread,
Jan 26, 2014, 2:08:38 PM1/26/14
to google-a...@googlegroups.com
6.2 requests per minute is a single snapshot of the load the application is experiencing. What truly matters is spikes in requests and load, not single arbitrary snapshots in time.

Can you post the instances and requests graphs? You can find them in the dashboard section.
Reply all
Reply to author
Forward
0 new messages