Re: [google-appengine] Uploading a json file from local computers. URLfetch?
Need to look at multi-part post data http://webpython.codepoint.net/cgi_file_upload But instead of saving the file you want to process (parse) the file. Beware make sure your parse expressions are simple. GAE does not like compute hogs. On Friday, July 20, 2012, soujiro0725 wrote: GAE for Python! Hi. I am trying to develop a web service which users can upload json files and modify the data. Users create json files at local computers, and in the web service page, browse the path to the files and press 'upload'. Then, a python handler parses the file contents and make necessary changes. My question is the process of uploading the files from local computers. Am I supposed to use 'URL fetch' API? by indicating the URL to the local file storage? Or is there any other possible way to achieve this? soichi -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/MBQ6_bOeEtYJ. To post to this group, send email to google-appengine@googlegroups.comjavascript:_e({}, 'cvml', 'google-appengine@googlegroups.com'); . To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com javascript:_e({}, 'cvml', 'google-appengine%2bunsubscr...@googlegroups.com');. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Startup time exceeded...on F4?!
I did some thinking about this problem, and it occurred to me that we might be going at this the completely wrong way. Could we reverse- bloom instance startups? Here's the basic idea. If apps need to load in/process a bunch of stuff at startup, why don't we give them the processing power to do that, but only at the time of startup? Suppose we start up an instance. For the first 30 seconds of that instance, we give it F16 ranking (that is, 4 times the power of a current F4 instance). For the next 30 seconds, the instance gets F12 ranking (3 times F4 power). The next 30 seconds, the instance gets F8 ranking (2 times F4 power). After that, the instance gets lowered to F4 and remains there for the rest of its lifespan. For the first 90 seconds of the instance's lifespan, it gets turbocharged, and should be able to handle all startup processes and a few initial requests. The scheduler doesn't need to change; it can continue feeding requests into cold instances, because even cold instances will tear through their startup and handle the requests. Even if this turboboosted time was billed at standard rate, it wouldn't cost that much; F4 costs 32 cents per instance hour, so F16 would (theoretically) cost 4 times as much, so an F16 instance hour would cost $1.28 per instance hour. We only need 90 seconds at that rate, so 3.2 cents. I think paying 3 cents extra per instance startup is very reasonable, especially if it prevents user-facing cold instance startups. It's entirely doable on a technical level too. Amazon AWS has a similar system where Micro servers can temporarily boost to 2 compute units, then get lowered to their allotted 1 ECU. Linux has the ability built-in: see nice/renice http://en.wikipedia.org/wiki/Nice_(Unix) I'd be interested in hearing if this system is possible within the GAE hosting system. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Startup time exceeded...on F4?!
I did, and used Objectify (Jeff is kinda familiar with that I think :)). A plain Hello World with only registering the entities will get you around the 4-5 sec mark, which is hardly a real application. I have a highly optimized app as a backend for my Android app, and that even takes around the 6-8 seconds mark to start up and it varies too. Add in some third party frameworks, like Jersey for JAXRS and Guice to keep your code sane and you're at the 12 secs. So kool aid or not, Java start up overhead will always be more than it is for python and I think the 5 seconds mentioned is far from typical if you are running a non-trivial app. On Friday, July 20, 2012 6:20:56 AM UTC+2, Brandon Wirtz wrote: Dump PMF use the low level API https://developers.google.com/appengine/docs/java/javadoc/com/google/appengi ne/api/datastore/package-summaryhttps://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary Either drink the Kool Aid, or quit complaining :-) 5s will be 1.5 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/4icNAFZtGKwJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Uploading a json file from local computers. URLfetch?
Thanks. This seems what I wanted. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/JT5KJxUcwrUJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Startup time exceeded...on F4?!
That's just not true - I have an app which uses no third-party libraries at all, uses no persistence and in fact it uses no GAE services. It simply has one servlet which processes request headers and returns a response. My average start-up time for this app is 3 seconds, when it's running well. The simple fact is that as soon as you use any third-party libraries, or do anything vaguely useful, you're out of that 5 second magic window. On Friday, 20 July 2012 05:20:56 UTC+1, Brandon Wirtz wrote: Dump PMF use the low level API https://developers.google.com/appengine/docs/java/javadoc/com/google/appengi ne/api/datastore/package-summaryhttps://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary Either drink the Kool Aid, or quit complaining :-) 5s will be 1.5 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/W1sBfl9Pu2IJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: mapping Google Apps to Appengine error 1000
I had this issue a week ago: Make sure the domain you want to add is a primary domain or an alias of a primary domain. GAE does not support mapping to a secondary domain. If you map to an alias domain note that you will not be able to send mails with an admin sender from this domain. (Ex: if you want to send emails from no-re...@my-alias-domain.com) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/GcX65VUghcYJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: mapping Google Apps to Appengine error 1000
This particular domain is an alias to primary domain, I can ever create mapping for names different from www. There is a thread on this issue here with more details: https://productforums.google.com/d/topic/apps/JuvJrTMJmAs/discussion On Friday, July 20, 2012 10:42:24 AM UTC+2, Alexis wrote: I had this issue a week ago: Make sure the domain you want to add is a primary domain or an alias of a primary domain. GAE does not support mapping to a secondary domain. If you map to an alias domain note that you will not be able to send mails with an admin sender from this domain. (Ex: if you want to send emails from no-re...@my-alias-domain.com) -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/YzPQPjqYKeQJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Startup time exceeded...on F4?!
Sorry, but, please forget about 5 secs 'magic' window. There is no any hard/soft deadline/threshold like that in the current App Engine system. It was just a one example of well behaved apps. Let me rephrase what I meant to say. With app engine, it is always a good practice to keep the loading request faster. The current scheduler works much better with fast loading apps than with slow loading apps. So I always suggest developers fastening the loading request. On the other hand, we understand that Java apps tend to be slow at a level where it is not acceptable for you if there are many user-facing loading requests. For a time being, please use min idle instances settings to reduce the loading requests with slow loading apps. -- Takashi On Jul 20, 2012 5:16 PM, Simon Knott knott.si...@gmail.com wrote: That's just not true - I have an app which uses no third-party libraries at all, uses no persistence and in fact it uses no GAE services. It simply has one servlet which processes request headers and returns a response. My average start-up time for this app is 3 seconds, when it's running well. The simple fact is that as soon as you use any third-party libraries, or do anything vaguely useful, you're out of that 5 second magic window. On Friday, 20 July 2012 05:20:56 UTC+1, Brandon Wirtz wrote: Dump PMF use the low level API https://developers.google.com/**appengine/docs/java/javadoc/**com/google/appengi ne/api/datastore/package-**summaryhttps://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary Either drink the Kool Aid, or quit complaining :-) 5s will be 1.5 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/W1sBfl9Pu2IJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] cgi.py raise KeyError, key ?
GoogleAppEngineLauncher version 1.7.0 I'm trying to develop a service in which users can upload json files. # -*- coding: utf-8 -*- import os, cgi import cgitb; cgitb.enable() import logging from handler import Handler class Upload(Handler): def get(self): self.render('upload.html') def post(self): form = cgi.FieldStorage() fileitem = form['filejson'] logging.error(fileitem) if fileitem.filename: logging.error('uploaded') fn = os.path.basename(fileitem.filename) open('files/' + fn, 'wb').write(fileitem.file.read()) message = 'The file ' + fn + ' was uploaded successfully' else: logging.error('upload failed') message = 'No file was uploaded' form enctype=multipart/form-data action=_upload method=post pFile: input type=file name=filejson/p pinput type=submit value=upload class=btn btn-large btn-primary/p /form Handler class works fine. But this code raises an error, File /Users/ishidasouichi/Dropbox/AppEngine/worddata/upload.py, line 16, in post fileitem = form['filejson'] File /usr/local/Cellar/python/2.7.3/lib/python2.7/cgi.py, line 541, in __getitem__ raise KeyError, key KeyError: 'filejson' I have searched the web but could not find relevant resolutions to this problem. Can anyone tell me where the problem is? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/9j-BE6jaWR0J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Startup time exceeded...on F4?!
If you follow the group longer you should know - Brandom lives in GAE unicorn land and all you ever need are proper Edge cache settings. ;) Am Freitag, 20. Juli 2012 10:16:28 UTC+2 schrieb Simon Knott: That's just not true - I have an app which uses no third-party libraries at all, uses no persistence and in fact it uses no GAE services. It simply has one servlet which processes request headers and returns a response. My average start-up time for this app is 3 seconds, when it's running well. The simple fact is that as soon as you use any third-party libraries, or do anything vaguely useful, you're out of that 5 second magic window. On Friday, 20 July 2012 05:20:56 UTC+1, Brandon Wirtz wrote: Dump PMF use the low level API https://developers.google.com/appengine/docs/java/javadoc/com/google/appengi ne/api/datastore/package-summaryhttps://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary Either drink the Kool Aid, or quit complaining :-) 5s will be 1.5 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/lYiT-qQBw6UJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] 500 Internal Server Errors Not Logged
Hi Last night I had several requests that failed. The errors were logged by a script that was making the requests but I can't find any indication of these failures in the App Engine logs. The body of the failed response was title500 Server Error/title /head body text=#00 bgcolor=#ff h1Error: Server Error/h1 h2The server encountered an error and could not complete your request.pIf the problem persists, please A HREF=http://code.google.com/appengine/community.html;report/A your problem and mention this error message and the query that caused it./h2 h2/h2 /body/html This appears to be a generic 500 error. Is this coming from something upstream of my application? Is there any I can/should do about this? Anyone else happen to see anything similar? Thanks, Chris -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/wssluSHJBgMJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: 500 Internal Server Errors Not Logged
Hi Chris, Did you see this error at a time when a new instance was starting up? I saw the same thing when I was doing some load testing. The problem seem to present itself when a new instance was added. My theory is that the scheduler routed the requests to ia new instance before it had completely loaded. For whatever reason the instance died taking with it the requests. -Kyle -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/fiZU5jUvetcJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Startup time exceeded...on F4?!
Perfect, thanks; that is all I am asking for! Additionally, we started an internal discussion about reviving warmup requests for dynamic instances. If you want this feature, please star the following issue: http://code.google.com/p/googleappengine/issues/detail?id=7865 -- Takashi -- Takashi Matsuo -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/jNAp6gCZ_4QJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: 500 Internal Server Errors Not Logged
Thanks for the reply Kyle. I don't know for sure if it was while a new instance was being added. I'll keep an eye on that if I see it again. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/BssxzVFvErIJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Uploading a json file from local computers. URLfetch?
Did you get it to work? On Fri, Jul 20, 2012 at 3:03 AM, soujiro0725 soujiro0...@gmail.com wrote: Thanks. This seems what I wanted. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/JT5KJxUcwrUJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Uploading a json file from local computers. URLfetch?
On Friday, 20 July 2012 12:48:20 UTC+7, soujiro0725 wrote: GAE for Python! Hi. I am trying to develop a web service which users can upload json files and modify the data. Users create json files at local computers, and in the web service page, browse the path to the files and press 'upload'. Then, a python handler parses the file contents and make necessary changes. My question is the process of uploading the files from local computers. Am I supposed to use 'URL fetch' API? by indicating the URL to the local file storage? Or is there any other possible way to achieve this? soichi -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/z7JVvfvartMJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine]
-- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Uploading a json file from local computers. URLfetch?
On Friday, 20 July 2012 12:48:20 UTC+7, soujiro0725 wrote: GAE for Python! Hi. I am trying to develop a web service which users can upload json files and modify the data. Users create json files at local computers, and in the web service page, browse the path to the files and press 'upload'. Then, a python handler parses the file contents and make necessary changes. My question is the process of uploading the files from local computers. Am I supposed to use 'URL fetch' API? by indicating the URL to the local file storage? Or is there any other possible way to achieve this? soichi -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/_WQvN9-inWgJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Startup time exceeded...on F4?!
Discussing theoretical startup times is great, but I'd like to see some real-world startups. Does anyone with high startup times ( say, 30+ seconds) want to share the results of a code profiler/appstats? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Startup time exceeded...on F4?!
On Fri, Jul 20, 2012 at 10:34 AM, hyperflame hyperfl...@gmail.com wrote: Discussing theoretical startup times is great, but I'd like to see some real-world startups. Does anyone with high startup times ( say, 30+ seconds) want to share the results of a code profiler/appstats? What code profiler works on GAE server-side? It's not very helpful to profile in the dev environment since the problem does not manifest there. Appstats is not helpful; my startup is long even with zero service layer calls. Jeff -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Google App Engine - Error 503_Service Unavailable???
Hey guys, I am coding a simple gae webapp that should send me an email from a form: I have coded that gae code: index.html: !DOCTYPE html html head meta charset=utf-8 titleA form/title /head body form action=/feedback method=post !-- Simple text field -- label for=nameName /label input type=text name=name/ br/ !-- Email -- label for=emailEmail /label input type=email name=email/ br/ !-- Textarea -- label for=descriptionDescription /label textarea name=description cols=50 rows=5Type your comment here /textarea br/ input type=submit name=submit value=Send Request action= /feedback/ /form /body /html web.xml servlet servlet-nameFeedbackServlet/servlet-name servlet-classat.wunderapps.servlets/servlet-class /servlet servlet-mapping servlet-nameFeedbackServlet/servlet-name url-pattern/feedback/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app servlet: import java.io.IOException; import java.util.Properties; import javax.mail.Message; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @SuppressWarnings(serial) public class FeedbackServlet extends HttpServlet { @Override protected void doPost(HttpServletRequest req, HttpServletResponseresp ) throws ServletException, IOException { String name = req.getParameter(name); String description = req.getParameter(description); String email = req.getParameter(email); Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); String msgBody = name + description + email + :EMAIL; try { Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress(a...@gmail.com, Es FUNKTIONIERT!!!)); msg.addRecipient(Message.RecipientType.TO, new InternetAddress(my.m...@mail.com, Your name)); msg.setSubject(Bestellung); msg.setText(msgBody); Transport.send(msg); } catch (Exception e) { resp.setContentType(text/plain); resp.getWriter().println(Something went wrong. Please try again.); throw new RuntimeException(e); } resp.setContentType(text/plain); resp.getWriter().println( Thanks you for your feedback. An Email has been send out.); } } When I am doing localhost i get: HTTP ERROR: 503 Problem accessing /. Reason: SERVICE_UNAVAILABLE and the exceptions I get are: java.lang.ClassNotFoundException: at.wunderapps.servlets CRITICAL: javax.servlet.ServletContext log: unavailable javax.servlet.UnavailableException: at.wunderapps.servlets 20.07.2012 13:13:46 com.google.apphosting.utils.jetty.JettyLogger warn WARNUNG: failed FeedbackServlet: java.lang.NullPointerException 20.07.2012 13:13:46 com.google.apphosting.utils.jetty.JettyLogger warn WARNUNG: Failed startup of context com.google.appengine.tools.development.DevAppEngineWebAppContext@495c998a{/,C:\Users\Desktop\mailservice\war} java.lang.NullPointerException I guess the problem could be that the inde.html does not find my servlet. But why, cause the web.xml seems to be alright? Can you please help me? I very much appreciate your answer!!! PS.: I am running it on windows 7, eclipse. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/jPmgnNdXCS8J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Google account login resulting in 500 Server Error
I'm suddenly getting login errors on two different apps, one Java and one Python. I haven't made any changes to either of these applications. The error happens on the login script /_ah/conflogin. However it doesn't show up in the error log for the application, so I don't have any more details. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/kzl7OzgZQ3gJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Google account login resulting in 500 Server Error
Hi Nico, I responded in the issue tracker. As you told in the issue, it happens only when you multi-login with more than 5 google accounts. We're aware of this issue, and looking into it. Sorry for the inconvenience and thanks for reporting. -- Takashi -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
RE: [google-appengine] Re: Startup time exceeded...on F4?!
If you follow the group longer you should know - Brandom lives in GAE unicorn land and all you ever need are proper Edge cache settings. ;) No, I just don't write code using unnecessary frameworks and I do a ton of testing and architecture planning. Most everyoneelse never uses defer or threads or task queues. They don't manage steady state tasks, or profile their imports. It is easy to blame the platform, but if you write crap code it will run like crap. I don't think GAE is perfect. But most the people who complain about its failings don't have the coding skills to be an intern at my shop. I blame Google for not documenting everything well. I blame google for not telling you don't use frameworks they suck. But the number of people who load spring and the gripe that it is slow and are only using 3 things out of it make me want to punch them in the head. The people who don't know how to build APIs so that apps are task specific. Piss me off. Build modular. Dump frame works. Defer often. Be your own scheduler by shaping internal ops. Cache incoming. Cache reads cache writes. Manage threads. Use warmups. This is not rocket science. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
RE: [google-appengine] Re: Startup time exceeded...on F4?!
All your pages should have the ability to have an optional ?debug=true Then if you have set that in the url the first line in every one of your functions, and before your imports, should be Timer start and the last thing should be Log Timer -Original Message- From: google-appengine@googlegroups.com [mailto:google- appeng...@googlegroups.com] On Behalf Of Jeff Schnitzer Sent: Friday, July 20, 2012 11:00 AM To: google-appengine@googlegroups.com Subject: Re: [google-appengine] Re: Startup time exceeded...on F4?! On Fri, Jul 20, 2012 at 10:34 AM, hyperflame hyperfl...@gmail.com wrote: Discussing theoretical startup times is great, but I'd like to see some real-world startups. Does anyone with high startup times ( say, 30+ seconds) want to share the results of a code profiler/appstats? What code profiler works on GAE server-side? It's not very helpful to profile in the dev environment since the problem does not manifest there. Appstats is not helpful; my startup is long even with zero service layer calls. Jeff -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google- appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Startup time exceeded...on F4?!
Hi Brandon, The people who don't know how to build APIs so that apps are task specific. Piss me off. Build modular. Dump frame works. Defer often. Be your own scheduler by shaping internal ops. Cache incoming. Cache reads cache writes. Manage threads. Use warmups. This is not rocket science. OT, but how are you cacheing writes in a fault tolerant manner? Task queue? I've been trying to develop a strategy for that. Also, what do you mean by Cache incoming? Thanks, -Kyle -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/vB55pDznx94J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Startup time exceeded...on F4?!
Cache Incoming requests= The thing that I am always accused of. Use Edge Cache to make sure you don't need to serve people who are asking for the same thing. Fault Tolerant writes is about determining how race your race conditions are, and being smart about your writes. Common things I see, people want to increment something so they get count. Which is slow. Then they +1 and write. That is really slow. I use Defer for a lot of writes when I know I wont have a read for a bit of time. Google Bot just did something. Well Frak Google Bot, it's not a real user, delay that write until we have time for it. Defer. You have to look at your write types and determine the priority so you can decide how important it is to be fast, if you 100% need the write to complete, or if you are just doing something hoping people will use it later. Write to a write Cache with the Marshall/pickle, if you need the data broken out as well, do a follow up and read the Serialized data and write the individual bits when you have more time. Do reads in a similar way when ever possible use serialized data. On Friday, July 20, 2012 9:39:43 PM UTC-7, Kyle Finley wrote: Hi Brandon, The people who don't know how to build APIs so that apps are task specific. Piss me off. Build modular. Dump frame works. Defer often. Be your own scheduler by shaping internal ops. Cache incoming. Cache reads cache writes. Manage threads. Use warmups. This is not rocket science. OT, but how are you cacheing writes in a fault tolerant manner? Task queue? I've been trying to develop a strategy for that. Also, what do you mean by Cache incoming? Thanks, -Kyle -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/EVXSdF_xc1UJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Startup time exceeded...on F4?!
Oh, OK. Thank you Brandon. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/rvs4uS2r6LkJ. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.