Re: [google-appengine] Re: Using GAE for a REST API

2010-11-30 Thread Rafael Nunes
JBoss RestEasy is also easy to setup and run on GAE, without 
class/service scan.


Example:
www.yaw.com.br/open

On 11/29/2010 05:40 PM, Ikai Lan (Google) wrote:

James, cool! Did you blog about this anywhere?

This blog post is outdated, but I thought Jersey was pretty fun:

http://blogs.sun.com/naresh/entry/running_the_jersey_webapp_on

I was going to whip up a blog post about this for anyone who was 
interested.


--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com 


Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Wed, Nov 24, 2010 at 10:25 PM, James Broberg > wrote:


GAE is fantastically suited for REST. I use GAE Java + Restlets +
Freemarker myself.


On 25 November 2010 08:41, supercobra mailto:superco...@gmail.com>> wrote:

Hello there,

What is your best practice to develop REST on GAE?

Daniel
--
superco...@gmail.com 



On Wed, Nov 24, 2010 at 2:36 PM, Jay mailto:jbaker.w...@gmail.com>> wrote:
> Yahel, GAE is a great platform for building and delivering
RESTful
> services. Of course there are quotas. But you are in control
of how
> much quota you want to a large extent.
>
> On Nov 23, 9:43 pm, Yahel Carmon mailto:yah...@gmail.com>> wrote:
>> Hi all,
>>
>> I'm new to playing with GAE, and I'm thinking of using it
to build a very
>> simple API for one of my projects. I like the idea of the
>> scaling  (mostly) handling itself for an API.
>>
>> However, I've read things about things like rate limiting
triggering
>> captchas for end users, a la Google services. Does that
type of rate
>> limiting present problems with using GAE as a backend for a
REST API?
>>
>> I apologize if I'm asking a dumb or obvious question, but
its surprisingly
>> difficult to Google for if GAE can be used to build APIs
without finding
>> pages* *about GAE's API.
>>
>> Thanks in advance!
>>
>> --
>> Yahel Carmon
>> (917) 445-3498
>> Twitter:http://twitter.com/yahelc
>> Facebook:http://facebook.com/yahel
>> LinkedIn:http://www.linkedin.com/in/yahelc
>
> --
> 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.


-- 
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-appeng...@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-appeng...@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: randomly select entries from a table with very many entries

2010-11-30 Thread Nacho Coloma
> It doesn't seem like it'd be too hard to add, however, but there are no
> immediate plans to do this soon. I talked to Fred and this seems like
> something he'd patch in if someone builds an implementation ... !

The Filter implementation discussed here [1] would include this
feature by default (it is discussed as an extension point to provide
your own prepared Query).

I am just waiting for 1.4.0 to be official before working on it. The
feature is easy to implement, but I don't have a clear idea about how
to calculate the new splitting points.

http://groups.google.com/group/google-appengine-java/browse_thread/thread/fa523acc75782ff/9ed36670fc5f0f60

-- 
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-appeng...@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] gae webapp issue? KeyError

2010-11-30 Thread Tam Tam
my code is very simple:

*class GetRequest(webapp.RequestHandler):
def get(self):
template_path = os.path.join(project_path,
"templates/get-request.html")
sorted_headers = sorted(self.request.headers.items(), key=lambda i:
i[0])
sorted_environ = sorted(os.environ.items(), key=lambda i: i[0])
logging.info(sorted_environ)
template_dict = {
"headers":  sorted_headers,
"environ":  sorted_environ,
 }
html = template.render(template_path, template_dict, True)
self.response.headers['Content-Type'] = 'text/html'
self.response.out.write(html)*

i got an exception sometimes:

* Traceback (most recent call last):
  File
"/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
line 511, in __call__
handler.get(*groups)
  File "/base/data/home/apps/mygaeid/1.346471016612102565/handlers.py", line
18, in get
sorted_headers = sorted(self.request.headers.items(), key=lambda i:
i[0])
  File "/base/python_runtime/python_dist/lib/python2.5/UserDict.py", line
117, in items
return list(self.iteritems())
  File "/base/python_runtime/python_dist/lib/python2.5/UserDict.py", line
106, in iteritems
yield (k, self[k])
  File "/base/python_runtime/python_lib/versions/1/webob/datastruct.py",
line 40, in __getitem__
return self.environ[self._trans_name(item)]
KeyError: 'CONTENT_TYPE'*

i got an similar exception in google chrome always, the error is:* KeyError:
'CONTENT_LENGTH'*

can some one help me?

-- 
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-appeng...@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: gae webapp issue? KeyError

2010-11-30 Thread Tam Tam
i am so sorry, it seens that i forgot to add a prefix: [google-appengine] [?]

2010/11/30 Tam Tam 

> my code is very simple:
>
> *class GetRequest(webapp.RequestHandler):
> def get(self):
> template_path = os.path.join(project_path,
> "templates/get-request.html")
> sorted_headers = sorted(self.request.headers.items(), key=lambda i:
> i[0])
> sorted_environ = sorted(os.environ.items(), key=lambda i: i[0])
> logging.info(sorted_environ)
> template_dict = {
> "headers":  sorted_headers,
> "environ":  sorted_environ,
>  }
> html = template.render(template_path, template_dict, True)
> self.response.headers['Content-Type'] = 'text/html'
> self.response.out.write(html)*
>
> i got an exception sometimes:
>
> * Traceback (most recent call last):
>   File
> "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py",
> line 511, in __call__
> handler.get(*groups)
>   File "/base/data/home/apps/mygaeid/1.346471016612102565/handlers.py",
> line 18, in get
> sorted_headers = sorted(self.request.headers.items(), key=lambda i:
> i[0])
>   File "/base/python_runtime/python_dist/lib/python2.5/UserDict.py", line
> 117, in items
> return list(self.iteritems())
>   File "/base/python_runtime/python_dist/lib/python2.5/UserDict.py", line
> 106, in iteritems
> yield (k, self[k])
>   File "/base/python_runtime/python_lib/versions/1/webob/datastruct.py",
> line 40, in __getitem__
> return self.environ[self._trans_name(item)]
> KeyError: 'CONTENT_TYPE'*
>
> i got an similar exception in google chrome always, the error is:*KeyError: 
> 'CONTENT_LENGTH'
> *
>
> can some one help me?
>

-- 
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-appeng...@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.

<<341.png>>

Re: [google-appengine] Re: Prerelease SDK 1.4.0 is out!

2010-11-30 Thread Ross M Karchner
Ikai, you wrote "'ll post some light sample code for channel API and warmup
requests in a bit."--

Has that stuff been posted somewhere yet?

On Thu, Nov 18, 2010 at 6:17 PM, Ikai Lan (Google)

> wrote:

> Always On will be a paid feature you enable in the admin console.
>
> I'll post some light sample code for channel API and warmup requests in a
> bit.
>
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger: http://googleappengine.blogspot.com
> Reddit: http://www.reddit.com/r/appengine
> Twitter: http://twitter.com/app_engine
>
>
>
> On Thu, Nov 18, 2010 at 3:11 PM, Sergio Lopes  wrote:
>
>> Excelent news! Specially to protect applications from cold start.
>> How can I configure WarmUp requests and Always On using Java?
>>
>> Thanks and congratulations!
>>
>> On Nov 18, 8:27 pm, "Ikai Lan (Google)" 
>> 
>> >
>> wrote:
>> > Hey everyone,
>> >
>> > I just wanted to let everyone know that prerelease SDK 1.4.0 is out! Get
>> it
>> > from the Google Code project:
>> >
>> > http://code.google.com/p/googleappengine/downloads/list
>> >
>> > We're still working on the docs and will have them ready for the final
>> > release, so if there are any questions about how to use the new
>> features,
>> > feel free to ask on this thread and I'll do my best to clarify them. The
>> > release notes are below. This is an EXCITING release:
>> >
>> > Python
>> > 
>> > - The Always On feature allows applications to pay and keep 3 instances
>> of
>> > their
>> >   application always running, which can significantly reduce application
>> >   latency.
>> > - Developers can now enable Warmup Requests. By specifying  a handler in
>> an
>> >   app's app.yaml, App Engine will attempt to to send a Warmup Request to
>> >   initialize new instances before a user interacts with it. This can
>> reduce
>> > the
>> >   latency an end-user sees for initializing your application.
>> > - The Channel API is now available for all users.
>> > - Task Queue has been officially released, and is no longer an
>> experimental
>> >   feature. The API import paths that use 'labs' have been deprecated.
>> Task
>> > queue
>> >   storage will count towards an application's overall storage quota, and
>> > will
>> >   thus be charged for.
>> > - The deadline for Task Queue and Cron requests has been raised to 10
>> > minutes.
>> >   Datastore and API deadlines within those requests remain unchanged.
>> > - For the Task Queue, developers can specify task retry_parameters in
>> their
>> >   queue.yaml.
>> > - Metadata Queries on the datastore for datastore kinds, namespaces, and
>> > entity
>> >   properties are available.
>> > - URLFetch allowed response size has been increased, up to 32 MB.
>> Request
>> > size
>> >   is still limited to 1 MB.
>> > - The Admin Console Blacklist page lists the top blacklist rejected
>> > visitors.
>> > - The automatic image thumbnailing service supports arbitrary crop sizes
>> up
>> > to
>> >   1600px.
>> > - Overall average instance latency in the Admin Console is now a
>> weighted
>> >   average over QPS per instance.
>> > - The developer who uploaded an app version can download that version's
>> code
>> >   using the appcfg.py download_app command. This feature can be disabled
>> on
>> >   a per application basis in the admin console, under the 'Permissions'
>> tab.
>> >   Once disabled, code download for the application CANNOT be re-enabled.
>> > - Fixed an issue where custom Admin Console pages did not work for
>> Google
>> >   Apps for your Domain users.
>> > - Allow Django initialization to be moved to appengine_config.py to
>> avoid
>> >   Django version conflicts when mixing webapp.template with pure Django.
>> >http://code.google.com/p/googleappengine/issues/detail?id=1758
>> > - Fixed an issue in the dev_appserver where get_serving_url did not work
>> >   for transparent, cropped PNGs:
>> >http://code.google.com/p/googleappengine/issues/detail?id=3887
>> > - Fixed an issue with the DatastoreFileStub.
>> >http://code.google.com/p/googleappengine/issues/detail?id=3895
>> >
>> > Java
>> > -
>> > - The Always On feature allows applications to pay and keep 3 instances
>> of
>> > their
>> >   application always running, which can significantly reduce application
>> >   latency.
>> > - Developers can now enable Warmup Requests. By specifying  a handler in
>> an
>> >   app's appengine-web.xml, App Engine will attempt to to send a Warmup
>> > Request
>> >   to initialize new instances before a user interacts with it. This can
>> > reduce
>> >   the latency an end-user sees for initializing your application.
>> > - The Channel API is now available for all users.
>> > - Task Queue has been officially released, and is no longer an
>> experimental
>> >   feature. The API import paths that use 'labs' have been deprecated.
>> Task
>> > queue
>> >   storage will count towards an application's overall storage quota, and
>> > will
>> >   thus be charged for.
>> > - The deadline fo

Re: [google-appengine] Re: logging seems be disabled in my app

2010-11-30 Thread Chris Copeland
My log information has started showing up again for new requests (it is
still missing for older ones).  Is anyone else seeing this?

On Sun, Nov 28, 2010 at 9:44 AM, Philip  wrote:

> Logging does not work correctly for my dev app (id: d-crawl). There is
> already an issue, although it is very old everyone who is also
> affected should star it:
> http://code.google.com/p/googleappengine/issues/detail?id=3338
>
> On Nov 28, 2:56 pm, Chris Copeland  wrote:
> > Logging has ceased on two of my apps as well.
> >
> > Last recorded entry was at 11/26/2010 at 07:52 PST just as others have
> > indicated.
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Nov 27, 2010 at 5:17 PM, Sam G  wrote:
> > > Logging disabled in my app as well... along with the intermittent 500
> > > errors on pages that should be working fine.
> >
> > > On Nov 26, 8:30 pm, pdknsk  wrote:
> > > > Likewise. I've suddenly also been getting 500 errors, which I can't
> > > > investigate since no error is in the logs. Quite frustrating.
> >
> > > --
> > > 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 e...@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-appeng...@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-appeng...@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: Editing an entity in the Development Console

2010-11-30 Thread coltsith
+1. I've added a field to one of my classes (Boolean) but when I try
to set it to either TRUE or FALSE in the development console and save,
it still remains as 'null'. I've never had much luck modifying
entities with the development console anyway though.

My workaround for the time being is to write a servlet that goes in
and modifies the object :(


On Nov 21, 2:37 pm, Zeynel  wrote:
> On Nov 20, 11:06 pm, Robert Kluin  wrote:
>
> >   What kind of properties are on the entity you are trying to edit?
>
> I looked at this again:
>
> userEmailSubject (None)
> userEmailSubject (string)
>
> If it is "None" edits are not saved. If it is "string" edits are saved.

-- 
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-appeng...@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: Daemon service

2010-11-30 Thread b.r...@web.de
Can somebody please exlpain this more closely. I have more or less the
same issue. I need to get a constant uptodate twitter stream to my
webapp. Dont understand at all how I can substitude the daemon like
behaviour. I understand that the first task hast do to the parsing job
but what about the second? It just calls the first again and again
like a loop?

On Nov 1, 5:13 am, Robert Kluin  wrote:
> http://code.google.com/appengine/docs/python/taskqueue/overview.html
>
> First, pop a task to start your crawl.  From that task fire another
> task to continue it.  Keep doing that until you get what you need or
> run out of resources.  You'll probably want to use either named or
> transactional tasks to prevent a fork bomb.
>
> Use cron, or a user request to initiate your 'spider.'  Or to ensure
> the process keeps running.
>
> Robert
>
> On Sun, Oct 31, 2010 at 22:34, sombra XX  wrote:
> > task-queue? how?
>
> > 2010/10/31 Robert Kluin 
>
> >> Then use the other part of djidjadji's suggestion: task-queue.
>
> >> Robert
>
> >> On Sun, Oct 31, 2010 at 12:17, sombra XX  wrote:
> >> > djidjadji: Yes, I thought about the cron, but the intervals are every 1
> >> > minute, and I need to be every 5 seconds
>
> >> > 2010/10/31 djidjadji 
>
> >> >> Every request should finish within 30 seconds.
> >> >> You can setup a cron job and/or task queue chain to simulate a
> >> >> continuous processing.
> >> >> You have to keep state information in the datastore or part of the
> >> >> task arguments.
>
> >> >> 2010/10/31 SombraX :
> >> >> > Hello everyone. I try to build a program that works non-stop, is an
> >> >> > infinite while that collects information from different Web sites and
> >> >> > record the information in the database. The problem is that at
> >> >> > startup
> >> >> > is interpreted as a request and get the timeout error.
> >> >> > Is it possible to build a servicedaemonwith python and boot from
> >> >> > the
> >> >> > console app enginne?
>
> >> >> > (my english is terrible , sorrycago en die).
>
> >> >> > --
> >> >> > 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-appeng...@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-appeng...@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-appeng...@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-appeng...@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-appeng...@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-appeng...@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] Enhancer error

2010-11-30 Thread chacmool
I create a google app engine project with the eclipse plugin.

When I save any java class in my project I get the following error:

java.lang.NoClassDefFoundError: com/google/appengine/tools/enhancer/
Enhance
Caused by: java.lang.ClassNotFoundException:
com.google.appengine.tools.enhancer.Enhance
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Exception in thread "main"

The developer server runs anyway but I can't store anything in the
'DataBase'.

¿Any solutions?

Thanks in advance.

-- 
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-appeng...@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] App Engine serving cluster is under unexpectedly high or uneven load...please contact the App Engine team

2010-11-30 Thread MdeA
I know this is the million dollars question , but does anybody know
what's the best way to contact the App Engine team. I'm getting some
error msgs(below) that suggest you do that.
I'm getting these messages and they seem to happen when no request has
been received for some time.
Also, my use of the free quotas don't surpass the 2%. However, I'm
investing (with AdWords) to get my site promoted and I need to make
sure that I have a responsive Engine running my application.
Thanks in advance for your time and consideration.
Michael

airport-parking-cheap.appspot.com
...
- Request was aborted after waiting too long to attempt to service
your request. This may happen sporadically when the App Engine serving
cluster is under unexpectedly high or uneven load. If you see this
message frequently, please contact the App Engine team.
...
- A serious problem was encountered with the process that handled this
request, causing it to exit. This is likely to cause a new process to
be used for the next request to your application. If you see this
message frequently, you should contact the App Engine team. (Error
code 203)

-- 
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-appeng...@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] How to deserialize a list using GSON ?

2010-11-30 Thread Valter
Hi, i have a servlet in GAE :

public void doGet(HttpServletRequest req, HttpServletResponse res)
throws IOException {

String titulo = req.getParameter("titulo");
String json = "";

PersistenceManager pm = PMF.get().getPersistenceManager();
Query query = pm.newQuery("select from "+Video.class.getName()+ "
where titulo.startsWith('"+titulo+"')");
List video = (List) pm.newQuery(query).execute();

Gson gson = new Gson();

json = gson.toJson(video, new TypeToken>(){}.getType());
System.out.println("SERIALIZED >> " + json);

res.setContentType("application/json");
res.setCharacterEncoding("UTF-8");
res.getWriter().write(json);

}

So i'm trying to deserialize with GSON too :

public void receberMetaDados(String titulo) throws IOException,
Exception{
InputStream input = new URL("http://localhost:/serve?titulo=
"+titulo).openStream();
Reader reader = new InputStreamReader(input, "UTF-8");

List results = new Gson().fromJson(reader, new
TypeToken>(){}.getType());

}

But isn't working, any help ?

Best regards,
Valter Henrique.

-- 
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-appeng...@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] App Engine serving cluster is under unexpectedly high or uneven load...please contact the App Engine team

2010-11-30 Thread A. Stevko
@micdearmas,
These are pretty much a fact of life these days.
I suggest star'ing this issue
http://code.google.com/p/googleappengine/issues/detail?id=2396#c34



On Tue, Nov 30, 2010 at 9:11 AM, MdeA  wrote:

> I know this is the million dollars question , but does anybody know
> what's the best way to contact the App Engine team. I'm getting some
> error msgs(below) that suggest you do that.
> I'm getting these messages and they seem to happen when no request has
> been received for some time.
> Also, my use of the free quotas don't surpass the 2%. However, I'm
> investing (with AdWords) to get my site promoted and I need to make
> sure that I have a responsive Engine running my application.
> Thanks in advance for your time and consideration.
> Michael
>
> airport-parking-cheap.appspot.com
> ...
> - Request was aborted after waiting too long to attempt to service
> your request. This may happen sporadically when the App Engine serving
> cluster is under unexpectedly high or uneven load. If you see this
> message frequently, please contact the App Engine team.
> ...
> - A serious problem was encountered with the process that handled this
> request, causing it to exit. This is likely to cause a new process to
> be used for the next request to your application. If you see this
> message frequently, you should contact the App Engine team. (Error
> code 203)
>
> --
> 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-appeng...@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-appeng...@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: Prerelease SDK 1.4.0 is out!

2010-11-30 Thread Adam Sah
On Nov 22, 10:20 am, "Ikai Lan (Google)" 
wrote:
> I'm seeing only 100-200 downloads of the prerelease SDKs, which you can 
> download here:
> http://code.google.com/p/googleappengine/downloads/list

Ikai-- two bits of feedback...

1. Why so few downloads & feedback?
 - no docs, and (I assume) no/few examples.
 - unclear if the appspot.com server supports 1.4
i.e. testing the 1.4 pre-release SDK wasn't high enough priority until
one of these conditions is met.

2. While we're chatting, python2.5 -OO is no longer working for
dev_appserver
   (while -OO isn't necessarily a priority, it's worth checking that
there aren't other issues...)

drooker>python2.5 -O ~/pkg/google_appengine_1.4.0pre/dev_appserver.py
--help | head -1
Runs a development application server for an application.
...

drooker>python2.5 -O -OO ~/pkg/google_appengine_1.4.0pre/
dev_appserver.py --help
Traceback (most recent call last):
  File "/ssd1/home/asah/pkg/google_appengine_1.4.0pre/
dev_appserver.py", line 69, in 
run_file(__file__, globals())
  File "/ssd1/home/asah/pkg/google_appengine_1.4.0pre/
dev_appserver.py", line 65, in run_file
execfile(script_path, globals_)
  File "/ssd1/home/asah/pkg/google_appengine_1.4.0pre/google/appengine/
tools/dev_appserver_main.py", line 503, in 
sys.exit(main(sys.argv))
  File "/ssd1/home/asah/pkg/google_appengine_1.4.0pre/google/appengine/
tools/dev_appserver_main.py", line 413, in main
args, option_dict = ParseArguments(argv)
  File "/ssd1/home/asah/pkg/google_appengine_1.4.0pre/google/appengine/
tools/dev_appserver_main.py", line 250, in ParseArguments
PrintUsageExit(0)
  File "/ssd1/home/asah/pkg/google_appengine_1.4.0pre/google/appengine/
tools/dev_appserver_main.py", line 188, in PrintUsageExit
print sys.modules['__main__'].__doc__ % render_dict
TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'

more coming,
adam

-- 
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-appeng...@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] server error

2010-11-30 Thread Matt Murphy Garmur
hi, i've been getting sporadic errors that look like this:

Error: Server Error The server encountered an error and could not
complete your request.
If the problem persists, please report your problem and mention this
error message and the query that caused it.
has anyone else been seeing this? it's not a particular query -- it'll
happen across my whole site. i'll get this error and try it across
multiple tabs, all of which will be down. then, a couple seconds later,
i'll hit refresh and all the tabs will work. it has happened to me a
couple times a day over the past week or so, and it worries me about
what my users are seeing.

thanks,

matt

-- 
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-appeng...@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] Is it a good idea to use model.py

2010-11-30 Thread Zeynel
Hello,

I have hw.py, incoming.py and register.py and they all use models. I
thought of putting them in model.py (like django) and import it. If I
do that, of course, I need to use

query = model.User.all()

instead of

query = User.all()

Is this a good idea? Or is it better to have the models in each file?

-- 
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-appeng...@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] server error

2010-11-30 Thread Stephen Johnson
Did you do an upload just before you saw these errors? If you upload new
code to your default version it'll bring down the old code and spin up the
new code so this will happen for a few seconds. At least this has been my
experience. If you want to try and avoid these try uploading to a
non-default version, accessing that non-default version to spin up an
instance, then set the default version to that version. I'm still developing
my application so I haven't fully investigated this technique. Perhaps
others with code in production can validate this suggested procedure.
Stephen

On Tue, Nov 30, 2010 at 1:46 PM, Matt Murphy Garmur wrote:

> hi, i've been getting sporadic errors that look like this:
>
> Error: Server Error The server encountered an error and could not complete
> your request.
>
> If the problem persists, please 
> reportyour problem and 
> mention this error message and the query that caused it.
> has anyone else been seeing this? it's not a particular query -- it'll
> happen across my whole site. i'll get this error and try it across multiple
> tabs, all of which will be down. then, a couple seconds later, i'll hit
> refresh and all the tabs will work. it has happened to me a couple times a
> day over the past week or so, and it worries me about what my users are
> seeing.
>
> thanks,
>
> matt
>
>  --
> 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-appeng...@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-appeng...@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: Best way to update many entities? (>50000)

2010-11-30 Thread Eli Jones
I can't suggest much without seeing the actual code being used in the task
to do the updating.

In the least, it seems like you are doing double the work necessary (from
how you described the process.. again, seeing source code would eliminate
guesswork and make everything clear.).

>From what I understand, when a contact is updated.. a new revision of the
contact is created.. AND then the "old" contact is moved to some other
revision container or something like that.

Seems like you could do just this instead (though, you may already be doing
this):

class metaContact(db.Model):
ContactPosition = db.IntegerProperty()
ContactKeyName = db.StringProperty()
ContactRevision = db.StringProperty()

class Contact(db.Model):
Revision = db.StringProperty()
KeyName = db.StringProperty()
# Other properties

The ultimate key_name for the Contact model would just be KeyName + '_' +
Revision

Zero pad Revision and KeyName so they can be lexically sorted.

When a contact is updated, a new Contact entity is created with all the
updated (and old) properties with the revision property increased by 1.
 Then you just update the metaContact model point to the new ContactRevision
value.

If they want to see all Revisions of a Contact, you just fetch all Contact
entities for the given ContactKeyName.

Again, I avoid transactions at all costs... so I'm suggesting you do the
update without a transaction.  Now, if you really wanted to avoid the off
chance of a Contact entity getting inserted.. but some error preventing
metaContact from updating the ContactRevision property... you could still do
that in a transaction.  But, you're adding a lot of overhead.

In the end, you could never update all 50,000 contacts in one big
transaction.. so you would always be presented with the spectre (however
unlikely) of a certain percentage of the Contacts getting updated with the
correct revision.. but the remaining ones might not get updated (due to some
error).. so you would still need to have some sort of rollback or
reconciliation process to handle that.

But again, that error state would only come up if the task for updating
Contact and metaContact had a permanent failure (since the task would just
blindly retry the updates.. and the Contact, metaContact updates would be
idempotent so you wouldn't have multiple versions of a contact getting
created on task retries.)

Really, since you are using contact revisions.. it seems like avoiding
transactions is the way to go.. you don't risk losing historical contact
data since old revisions are not deleted (in the scenario I'm describing
here).. You're just creating new contact revisions on each update.

So, you could still use your sharded counter method to show a progress bar
to the user.. and presuming the tasks for updating each contact (or,
ideally, batch of contacts) eventually succeeds.. this method would work
much faster.

Worse case scenario, you could have two people managing the same contact
group.. and they would each submit an update to the same contact revision..
and the last update would be the winner.

But, if that was a common issue, you could still have the update occur in a
transaction (by giving metaContact and Contact a parent-child
relationship).. where.. they submit the fields they want to update.. the
task grabs the current revision in a transaction, updates the changed
fields, and puts the new revision information.

As for your question about keeping tasks under 1000ms, that is true and not
true.  You want your tasks to run as fast as possible, but you also want to
batch gets and puts as much as possible.  (This will save you a lot of CPU
time and wall clock time.)

So, whatever you do with your code, you should experiment a little with
doing these updates in different batch sizes.


P.S.  I had this chunk nestled in the middle of my message.. but moved it to
the end since its just a wild speculation of what one could do with the
Matcher and Channel APIs:

If you felt really pumped up, maybe you could cook up a way to use the
Channel API and the Matcher API to push the update status to the user's
browser.

In other words, maybe the browser could enter a "updating" state and
subscribe to an update Channel for that particular user (You would need to
do this before the actual update tasks were added to the queue).. with a
list of Contacts it's waiting to see have been updated to a certain
revision.. then you could have some Matcher code that watches for updates to
that user's contacts.. when an update comes in, it sends a message to the
user's Channel saying, "Contact with KeyName = 'Blah' was updated to
Revision = 'Bleh'".. and the browser would just wait until it received
notification of updates to all the contacts in the update list.  Though,
this presumes that you can depend on Matcher and Channel to never drop a
message or miss a match.

On Mon, Nov 29, 2010 at 4:03 PM, dflorey  wrote:

> Thanks Eli for your time helping me out.
> You can have a lo

Re: [google-appengine] server error

2010-11-30 Thread Matt Murphy Garmur
i don't think so, but i'll have to keep track to be sure.

i do know what you're talking about -- when i deploy, there's a small gap of
time right when it starts up where it errors out. this error i'm talking
about is separate from that, but i had thought of it as more-or-less random.
it's possible it's connected to deployment -- i'll see if i can find
patterns.

matt

On Tue, Nov 30, 2010 at 1:10 PM, Stephen Johnson wrote:

> Did you do an upload just before you saw these errors? If you upload new
> code to your default version it'll bring down the old code and spin up the
> new code so this will happen for a few seconds. At least this has been my
> experience. If you want to try and avoid these try uploading to a
> non-default version, accessing that non-default version to spin up an
> instance, then set the default version to that version. I'm still developing
> my application so I haven't fully investigated this technique. Perhaps
> others with code in production can validate this suggested procedure.
> Stephen
>
>
> On Tue, Nov 30, 2010 at 1:46 PM, Matt Murphy Garmur 
> wrote:
>
>> hi, i've been getting sporadic errors that look like this:
>>
>> Error: Server Error The server encountered an error and could not
>> complete your request.
>>
>> If the problem persists, please 
>> reportyour problem and 
>> mention this error message and the query that caused it.
>> has anyone else been seeing this? it's not a particular query -- it'll
>> happen across my whole site. i'll get this error and try it across multiple
>> tabs, all of which will be down. then, a couple seconds later, i'll hit
>> refresh and all the tabs will work. it has happened to me a couple times a
>> day over the past week or so, and it worries me about what my users are
>> seeing.
>>
>> thanks,
>>
>> matt
>>
>>  --
>> 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-appeng...@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-appeng...@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-appeng...@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] Sudden traffic drop - untouched app

2010-11-30 Thread Smrchy
We are seeing a sudden traffic drop like this (the image is from 10
minutes ago):


http://goo.gl/AEpGX



We did not touch our app and the log shows requests missing for 10-20
seconds in a row while usually there is around 5 requests per second.
It's highly unlikely there is no hit for 20 seconds. Our app and the
images seems to work fine though.


Is it just the logging that's messed up?


Thx

-- 
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-appeng...@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] Sudden traffic drop - untouched app

2010-11-30 Thread Smrchy
We are seeing a sudden traffic drop like this (the image is from 10
minutes ago):


http://goo.gl/AEpGX



We did not touch our app and the log shows requests missing for 10-20
seconds in a row while usually there is around 5 requests per second.
It's highly unlikely there is no hit for 20 seconds. Our app and the
images seems to work fine though.


Is it just the logging that's messed up?


Thx

-- 
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-appeng...@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] server error

2010-11-30 Thread Ilya Petrov
On 30 November 2010 22:46, Matt Murphy Garmur  wrote:
> has anyone else been seeing this?

same for me. app is available via version url, but not via main url.
admin interface (appengine.google.com) showing 500 with same message too.

-- 
 wbr, Ilya
 ICQ: none, Jabber: ilya.muro...@jabber.ru

-- 
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-appeng...@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: server error

2010-11-30 Thread Steve
I'm seeing repeated server error messages just trying to access the
administration console.


--Steve

-- 
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-appeng...@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: server error

2010-11-30 Thread dflorey
I get this error once in a while for all of my apps.
>From my experience this error occurs most likely if
- the app has not been used for a while so that a new request will
cold start the app
- you have traffic spikes that force new instances to be spawn
- app engine has a bad day

If your app will have a predictable and constant number of requests
serving without any surprises this error occurs only because of the
latter.

Daniel

On 30 Nov., 23:50, Steve  wrote:
> I'm seeing repeated server error messages just trying to access the
> administration console.
>
> --Steve

-- 
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-appeng...@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: App Engine serving cluster is under unexpectedly high or uneven load...please contact the App Engine team

2010-11-30 Thread MdeA
Thanks Stevko. I took a look at that Issue and now I think something
is definitely wrong with the availability of the system.
I don't know the rest of the people having this problem, but I'm not
using anything sophisticated on those pages.
The only I can think of is the queries against the Datastore, but if
running a query against a "table" with around 100 "records" and 40
"columns" to return 2 or 3 (max 12) records causes problems like this;
then, we have a problem.
The most basic relational DB would handle that in a breeze.
You shouldn't have to go through the pain of implementing
"caching" (what I've been told) for something as simple as that.

On Nov 30, 1:17 pm, "A. Stevko"  wrote:
> @micdearmas,
> These are pretty much a fact of life these days.
> I suggest star'ing this 
> issuehttp://code.google.com/p/googleappengine/issues/detail?id=2396#c34
> 
>
> 
>
>
>
>
>
>
>
> On Tue, Nov 30, 2010 at 9:11 AM, MdeA  wrote:
> > I know this is the million dollars question , but does anybody know
> > what's the best way to contact the App Engine team. I'm getting some
> > error msgs(below) that suggest you do that.
> > I'm getting these messages and they seem to happen when no request has
> > been received for some time.
> > Also, my use of the free quotas don't surpass the 2%. However, I'm
> > investing (with AdWords) to get my site promoted and I need to make
> > sure that I have a responsive Engine running my application.
> > Thanks in advance for your time and consideration.
> > Michael
>
> > airport-parking-cheap.appspot.com
> > ...
> > - Request was aborted after waiting too long to attempt to service
> > your request. This may happen sporadically when the App Engine serving
> > cluster is under unexpectedly high or uneven load. If you see this
> > message frequently, please contact the App Engine team.
> > ...
> > - A serious problem was encountered with the process that handled this
> > request, causing it to exit. This is likely to cause a new process to
> > be used for the next request to your application. If you see this
> > message frequently, you should contact the App Engine team. (Error
> > code 203)
>
> > --
> > 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-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com > e...@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-appeng...@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: Task Queue Stored Task Bytes being enforced now?

2010-11-30 Thread Mickey Kataria (Google Employee)
Hi Jason, we haven't started globally enforcing this quota yet.
However, if you set a quota for your app (as described in Ikai's
post), then that quota will be enforced for your app.

Re: the drop you noticed, we run a periodic job every few hours to
update the usage for tasks that have completed.

On Nov 30, 2:01 pm, Jason Collins  wrote:
> Some more mystery: our Task Queue Stored Task used quota dropped from
> 300M to 68M since my last post. We didn't have that many tasks in
> queue when we were at 300M, so I suspect that the bulk of the required
> storage was the tombstoned names?
>
> Regardless, I don't know why it would have dropped so dramatically in
> such a short time; our taskqueue usage is pretty stable from day-to-
> day.
>
> j
>
> On Nov 29, 5:12 pm, Jason Collins  wrote:
>
>
>
>
>
>
>
> > About 30 minutes ago, our application started throwing all sorts of
> > exceptions about:
>
> >   OverQuotaError: The API call taskqueue.BulkAdd() required more quota
> > than is available.
>
> > The only thing I could see being over quota was Task Queue Stored Task
> > Byte, so I updated queue.yaml and re-deployed. It took a couple of
> > minutes, but the problem cleared up.
>
> > Just a heads up that this quota seems to be enforced now.
>
> > j

-- 
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-appeng...@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] Index Error is impossible to debug

2010-11-30 Thread Ikai Lan (Google)
Brian, what's your app ID? Can you also post the rest of your indexes.yaml
file? There have been some issues with properties with special characters,
but this shouldn't cause the error you've been seeing.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Mon, Nov 29, 2010 at 2:45 PM, Brian Olson  wrote:

> Why does adding this to my index.yaml fail to build an index?
>
> - kind: FooBar
>   ancestor: yes
>   properties:
>   - name: __key__
> direction: desc
>
> That should be a simple enough index, yes? What's the problem?
> Banging my head against this problem for the last few hours has really
> soured me on the whole Index Error problem. It is opaque. The
> appengine.google.com console just says "Error" with no note about what
> went wrong. I did the `update_indexes; vacuum_indexes; update_indexes` dance
> just to wind up with the same opaque error message and no index and queries
> that fail. This doesn't happen on dev_appserver. This doesn't happen on a
> separate copy of the app at a different .appspot.com instance than our
> production copy. The index is fine there. This is exactly the index
> specification that the error message says I need when I do the query I want
> to do, and on ${myapp}dev.appspot.com it works fine, but ${myapp}.
> appspot.com is broken.
>
> The apparently standard article on this subject hasn't helped me either, as
> I did the part about what to do if I have an Error, and I still have an
> Error and no visibility into it.
>
> http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes
>
> Please please please give some visibility into this problem.
>
> --
> 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-appeng...@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-appeng...@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: DeadlineExceededError: This request caused a new process to be started for your application

2010-11-30 Thread Ikai Lan (Google)
Tim,

Datastore latencies do coincide with application startup times, but they are
not the cause. The root cause is usually the underlying I/O. We're working
on long term solutions for these issues.

Neal, we'll be shipping "Always On" as a billing enabled feature in 1.4.0.
You'll definitely want to make use of this in your application to prevent
this from happening.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Mon, Nov 29, 2010 at 10:10 PM, Tim Hoffman  wrote:

> Yep
>
> thats exactly what is happening.  The site is taking too long to
> start,
> imports seem to be affected by a range of appengine slow downs
> (i firmly believe elevated datastore latencies coincide with extended
> startup times).
>
> Warm starts my be useful for you as well as the soon to be available
> always on instances.
>
> Some other strategies you can adopt to shrink startup times is trying
> to defer
> some of your imports until you need to use the stuff.
>
> We have fast paths to retrieve relatively static content from
> memcache
> without even starting up a full stack.  (ie only importing core api's
> from appengine)
>
> This can usually get us an instance cold started and serving the front
> page in less 200ms
>
> understanding how you app starts and Tuning, tuning tuning the
> startup, I feel is really important for a good
> user experience.
>
> Rgds
>
>
> Tim
>
> On Nov 30, 1:49 pm, NealWalters  wrote:
> > I've read several other posts on this error, but they seem to be
> > inconclusive and several months old.
> > We are a startup, so our site is not used frequently, but when used,
> > it is often someone we are trying to impress,
> > so we MUST have some solution for this issue if we indeed continue to
> > use GAE.
> >
> > Since the trace is showing the errors on "import" statements, I'm
> > thinking this is the case where the system got "cold" and must "warm
> > up"?
> >
> > WebSite ishttp://Olexe.com.
> >
> > From my logs, this happened at least four times today on our home
> > page:
> >
> > E-Level Message:
> > :
> > Traceback (most recent call last):
> >   File "/base/data/home/apps/olexeprod/1.346221763725918442/main.py",
> > line 296, in 
> > from web.webServices import Subscribers
> >   File "/base/data/home/apps/olexeprod/1.346221763725918442/web/
> > webServices.py", line 15, in 
> > import gnosis.xml.pickle
> >   File "/base/data/home/apps/olexeprod/1.346221763725918442/gnosis/xml/
> > pickle/__init__.py", line 6, in 
> > from gnosis.xml.pickle._pickle import \
> >   File "/base/data/home/apps/olexeprod/1.346221763725918442/gnosis/xml/
> > pickle/_pickle.py", line 5, in 
> > """
> > I-Level Message:
> > This request caused a new process to be started for your application,
> > and thus caused your application code to be loaded for the first time.
> > This request may thus take longer and use more CPU than a typical
> > request for your application.
> >
> > Please advise,
> > Thanks,
> > Neal Walters
>
> --
> 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-appeng...@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-appeng...@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: Using GAE for a REST API

2010-11-30 Thread James Broberg
Ikai,

No but I have been meaning to. Maybe I could put something together for the
GAE blog if you are interested. The project we use GAE Java + Restlets +
Freemarker for is MetaCDN (http://www.metacdn.com)

You can check out our RESTful API here:
http://www.metacdn.com/apidocs/

Feedback is always appreciated. I know the arguments about what is RESTful
and what is not are pretty fun. :)

cheers

James



On 30 November 2010 06:40, Ikai Lan (Google)

> wrote:

> James, cool! Did you blog about this anywhere?
>
> This blog post is outdated, but I thought Jersey was pretty fun:
>
> http://blogs.sun.com/naresh/entry/running_the_jersey_webapp_on
>
> I was going to whip up a blog post about this for anyone who was
> interested.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger: http://googleappengine.blogspot.com
> Reddit: http://www.reddit.com/r/appengine
> Twitter: http://twitter.com/app_engine
>
>
>
> On Wed, Nov 24, 2010 at 10:25 PM, James Broberg wrote:
>
>> GAE is fantastically suited for REST. I use GAE Java + Restlets +
>> Freemarker myself.
>>
>>
>> On 25 November 2010 08:41, supercobra  wrote:
>>
>>> Hello there,
>>>
>>> What is your best practice to develop REST on GAE?
>>>
>>> Daniel
>>> --
>>> superco...@gmail.com
>>>
>>>
>>>
>>> On Wed, Nov 24, 2010 at 2:36 PM, Jay  wrote:
>>> > Yahel, GAE is a great platform for building and delivering RESTful
>>> > services. Of course there are quotas. But you are in control of how
>>> > much quota you want to a large extent.
>>> >
>>> > On Nov 23, 9:43 pm, Yahel Carmon  wrote:
>>> >> Hi all,
>>> >>
>>> >> I'm new to playing with GAE, and I'm thinking of using it to build a
>>> very
>>> >> simple API for one of my projects. I like the idea of the
>>> >> scaling  (mostly) handling itself for an API.
>>> >>
>>> >> However, I've read things about things like rate limiting triggering
>>> >> captchas for end users, a la Google services. Does that type of rate
>>> >> limiting present problems with using GAE as a backend for a REST API?
>>> >>
>>> >> I apologize if I'm asking a dumb or obvious question, but its
>>> surprisingly
>>> >> difficult to Google for if GAE can be used to build APIs without
>>> finding
>>> >> pages* *about GAE's API.
>>> >>
>>> >> Thanks in advance!
>>> >>
>>> >> --
>>> >> Yahel Carmon
>>> >> (917) 445-3498
>>> >> Twitter:http://twitter.com/yahelc
>>> >> Facebook:http://facebook.com/yahel
>>> >> LinkedIn:http://www.linkedin.com/in/yahelc
>>> >
>>> > --
>>> > 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-appeng...@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-appeng...@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-appeng...@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-appeng...@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] How to deserialize a list using GSON ?

2010-11-30 Thread Ikai Lan (Google)
This isn't really an App Engine question. Can you direct your question here?

http://groups.google.com/group/google-gson

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Tue, Nov 30, 2010 at 11:12 AM, Valter  wrote:

> Hi, i have a servlet in GAE :
>
> public void doGet(HttpServletRequest req, HttpServletResponse res)
> throws IOException {
>
> String titulo = req.getParameter("titulo");
> String json = "";
>
> PersistenceManager pm = PMF.get().getPersistenceManager();
> Query query = pm.newQuery("select from "+Video.class.getName()+ "
> where titulo.startsWith('"+titulo+"')");
> List video = (List) pm.newQuery(query).execute();
>
> Gson gson = new Gson();
>
> json = gson.toJson(video, new
> TypeToken>(){}.getType());
> System.out.println("SERIALIZED >> " + json);
>
> res.setContentType("application/json");
> res.setCharacterEncoding("UTF-8");
> res.getWriter().write(json);
>
> }
>
> So i'm trying to deserialize with GSON too :
>
> public void receberMetaDados(String titulo) throws IOException,
> Exception{
> InputStream input = new URL("http://localhost:/serve?titulo=
> "+titulo).openStream();
> Reader reader = new InputStreamReader(input, "UTF-8");
>
> List results = new Gson().fromJson(reader, new
> TypeToken>(){}.getType());
>
> }
>
> But isn't working, any help ?
>
> Best regards,
> Valter Henrique.
>
> --
> 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-appeng...@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-appeng...@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] Is it a good idea to use model.py

2010-11-30 Thread Ikai Lan (Google)
It just depends on what's less confusing for you. I'll favor importing the
User class from the models module, but User is a very common class name, so
in files where this can be ambiguous, either alias User to something else
use "as" or use the module name.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Tue, Nov 30, 2010 at 1:09 PM, Zeynel  wrote:

> Hello,
>
> I have hw.py, incoming.py and register.py and they all use models. I
> thought of putting them in model.py (like django) and import it. If I
> do that, of course, I need to use
>
> query = model.User.all()
>
> instead of
>
> query = User.all()
>
> Is this a good idea? Or is it better to have the models in each file?
>
> --
> 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-appeng...@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-appeng...@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: DeadlineExceededError: This request caused a new process to be started for your application

2010-11-30 Thread NealWalters
Ikai,
   I'm glad you have a solution coming - but do you understand how
ridiculous that sounds?  You host "free" websites if you stay under
quota, but if you want to always have your website available without
error, you have to pay   I guess having your website always
available indicates you that a site is in a pseudo-production mode,
but your claim to fame has always been "stay under quota" and its
free.  Seems like there would be thousands of small companies that
have very low volume that don't want to serve up 500 errors to their
potential customers.
   I'm shocked - dont' know what else to say.

Neal


On Nov 30, 3:46 pm, "Ikai Lan (Google)" 
wrote:
> Tim,
>
> Datastore latencies do coincide with application startup times, but they are
> not the cause. The root cause is usually the underlying I/O. We're working
> on long term solutions for these issues.
>
> Neal, we'll be shipping "Always On" as a billing enabled feature in 1.4.0.
> You'll definitely want to make use of this in your application to prevent
> this from happening.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
>
>
>
>
>
>
> On Mon, Nov 29, 2010 at 10:10 PM, Tim Hoffman  wrote:
> > Yep
>
> > thats exactly what is happening.  The site is taking too long to
> > start,
> > imports seem to be affected by a range of appengine slow downs
> > (i firmly believe elevated datastore latencies coincide with extended
> > startup times).
>
> > Warm starts my be useful for you as well as the soon to be available
> > always on instances.
>
> > Some other strategies you can adopt to shrink startup times is trying
> > to defer
> > some of your imports until you need to use the stuff.
>
> > We have fast paths to retrieve relatively static content from
> > memcache
> > without even starting up a full stack.  (ie only importing core api's
> > from appengine)
>
> > This can usually get us an instance cold started and serving the front
> > page in less 200ms
>
> > understanding how you app starts and Tuning, tuning tuning the
> > startup, I feel is really important for a good
> > user experience.
>
> > Rgds
>
> > Tim
>
> > On Nov 30, 1:49 pm, NealWalters  wrote:
> > > I've read several other posts on this error, but they seem to be
> > > inconclusive and several months old.
> > > We are a startup, so our site is not used frequently, but when used,
> > > it is often someone we are trying to impress,
> > > so we MUST have some solution for this issue if we indeed continue to
> > > use GAE.
>
> > > Since the trace is showing the errors on "import" statements, I'm
> > > thinking this is the case where the system got "cold" and must "warm
> > > up"?
>
> > > WebSite ishttp://Olexe.com.
>
> > > From my logs, this happened at least four times today on our home
> > > page:
>
> > > E-Level Message:
> > > :
> > > Traceback (most recent call last):
> > >   File "/base/data/home/apps/olexeprod/1.346221763725918442/main.py",
> > > line 296, in 
> > >     from web.webServices import Subscribers
> > >   File "/base/data/home/apps/olexeprod/1.346221763725918442/web/
> > > webServices.py", line 15, in 
> > >     import gnosis.xml.pickle
> > >   File "/base/data/home/apps/olexeprod/1.346221763725918442/gnosis/xml/
> > > pickle/__init__.py", line 6, in 
> > >     from gnosis.xml.pickle._pickle import \
> > >   File "/base/data/home/apps/olexeprod/1.346221763725918442/gnosis/xml/
> > > pickle/_pickle.py", line 5, in 
> > >     """
> > > I-Level Message:
> > > This request caused a new process to be started for your application,
> > > and thus caused your application code to be loaded for the first time.
> > > This request may thus take longer and use more CPU than a typical
> > > request for your application.
>
> > > Please advise,
> > > Thanks,
> > > Neal Walters
>
> > --
> > 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-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com > e...@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-appeng...@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] Is it a good idea to use model.py

2010-11-30 Thread Robert Kluin
Hi Zeynel,
   Instead of "import model"  use "from model import User";  then
you'll be able to use User.all().


Robert







On Tue, Nov 30, 2010 at 16:09, Zeynel  wrote:
> Hello,
>
> I have hw.py, incoming.py and register.py and they all use models. I
> thought of putting them in model.py (like django) and import it. If I
> do that, of course, I need to use
>
> query = model.User.all()
>
> instead of
>
> query = User.all()
>
> Is this a good idea? Or is it better to have the models in each file?
>
> --
> 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-appeng...@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-appeng...@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: Suitability of App Engine for Database Display App

2010-11-30 Thread Julian Namaro
GAE is not designed for performing complex queries on a dataset.
It is possible to get it to work by anticipating what queries you will
need and building the corresponding indexes, but it is not easy nor
flexible, and the complexity of the queries would be limited.

Why not start with a relational database ?  10 millions rows doesn't
sound like it would be slower than GAE.
Not sure about your use case but BigQuery also looks like a
possibility: http://code.google.com/apis/bigquery/docs/overview.html



On Nov 28, 11:56 am, smitts  wrote:
> I'm considering using GAE to host a relatively large (10 Million+
> rows, possibly larger) database.  Data from this database is then
> retrieved using filter criteria on multiple columns of the table and
> displayed to the user.  Typically the criteria is (column a < 50) &&
> (10 < column b < 1000) && (column c == true), which has been
> relatively database intensive on a traditional LAMP.
>
> Does anyone have experience running a similar setup?  Most of what I
> have seen GAE used for is much less database intensive.  Could it
> work?  Should I expect faster or slower responses from the LAMP?
>
> Thanks!

-- 
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-appeng...@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: DeadlineExceededError: This request caused a new process to be started for your application

2010-11-30 Thread Tim Hoffman
Hi Neal.

I host a small business website, typically less than 500 page views a
day.
And we might get one 500 Error in a week.

Good application design can relieve many of the issues.

I personally would not move our website to any other hosting provider.

Having it on appengine has been a huge benefit to us.

Tim

P.S. I do work on large commercial appengine projects too

On Dec 1, 11:01 am, NealWalters  wrote:
> Ikai,
>    I'm glad you have a solution coming - but do you understand how
> ridiculous that sounds?  You host "free" websites if you stay under
> quota, but if you want to always have your website available without
> error, you have to pay   I guess having your website always
> available indicates you that a site is in a pseudo-production mode,
> but your claim to fame has always been "stay under quota" and its
> free.  Seems like there would be thousands of small companies that
> have very low volume that don't want to serve up 500 errors to their
> potential customers.
>    I'm shocked - dont' know what else to say.
>
> Neal
>
> On Nov 30, 3:46 pm, "Ikai Lan (Google)" 
> wrote:
>
>
>
>
>
>
>
> > Tim,
>
> > Datastore latencies do coincide with application startup times, but they are
> > not the cause. The root cause is usually the underlying I/O. We're working
> > on long term solutions for these issues.
>
> > Neal, we'll be shipping "Always On" as a billing enabled feature in 1.4.0.
> > You'll definitely want to make use of this in your application to prevent
> > this from happening.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > Blogger:http://googleappengine.blogspot.com
> > Reddit:http://www.reddit.com/r/appengine
> > Twitter:http://twitter.com/app_engine
>
> > On Mon, Nov 29, 2010 at 10:10 PM, Tim Hoffman  wrote:
> > > Yep
>
> > > thats exactly what is happening.  The site is taking too long to
> > > start,
> > > imports seem to be affected by a range of appengine slow downs
> > > (i firmly believe elevated datastore latencies coincide with extended
> > > startup times).
>
> > > Warm starts my be useful for you as well as the soon to be available
> > > always on instances.
>
> > > Some other strategies you can adopt to shrink startup times is trying
> > > to defer
> > > some of your imports until you need to use the stuff.
>
> > > We have fast paths to retrieve relatively static content from
> > > memcache
> > > without even starting up a full stack.  (ie only importing core api's
> > > from appengine)
>
> > > This can usually get us an instance cold started and serving the front
> > > page in less 200ms
>
> > > understanding how you app starts and Tuning, tuning tuning the
> > > startup, I feel is really important for a good
> > > user experience.
>
> > > Rgds
>
> > > Tim
>
> > > On Nov 30, 1:49 pm, NealWalters  wrote:
> > > > I've read several other posts on this error, but they seem to be
> > > > inconclusive and several months old.
> > > > We are a startup, so our site is not used frequently, but when used,
> > > > it is often someone we are trying to impress,
> > > > so we MUST have some solution for this issue if we indeed continue to
> > > > use GAE.
>
> > > > Since the trace is showing the errors on "import" statements, I'm
> > > > thinking this is the case where the system got "cold" and must "warm
> > > > up"?
>
> > > > WebSite ishttp://Olexe.com.
>
> > > > From my logs, this happened at least four times today on our home
> > > > page:
>
> > > > E-Level Message:
> > > > :
> > > > Traceback (most recent call last):
> > > >   File "/base/data/home/apps/olexeprod/1.346221763725918442/main.py",
> > > > line 296, in 
> > > >     from web.webServices import Subscribers
> > > >   File "/base/data/home/apps/olexeprod/1.346221763725918442/web/
> > > > webServices.py", line 15, in 
> > > >     import gnosis.xml.pickle
> > > >   File "/base/data/home/apps/olexeprod/1.346221763725918442/gnosis/xml/
> > > > pickle/__init__.py", line 6, in 
> > > >     from gnosis.xml.pickle._pickle import \
> > > >   File "/base/data/home/apps/olexeprod/1.346221763725918442/gnosis/xml/
> > > > pickle/_pickle.py", line 5, in 
> > > >     """
> > > > I-Level Message:
> > > > This request caused a new process to be started for your application,
> > > > and thus caused your application code to be loaded for the first time.
> > > > This request may thus take longer and use more CPU than a typical
> > > > request for your application.
>
> > > > Please advise,
> > > > Thanks,
> > > > Neal Walters
>
> > > --
> > > 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-appeng...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine+unsubscr...@googlegroups.com > >  e...@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 su

Re: [google-appengine] Re: App Engine serving cluster is under unexpectedly high or uneven load...please contact the App Engine team

2010-11-30 Thread A. Stevko
I don't believe your use case should be a load problem. My users (
www.ninuku.com) are querying collections containing hundreds of instances
and extents that contain tens of thousands of instances usually within the
1000 msec threshold I've been tuning to. I'm getting between 1% and 2%
"waiting too long" responses on a normal day both on the external hits and
internal task queue hits.

Your second error (203) is usually the case when your app leaks a serious
runtime exception or error and app engine decides to restart that instance.

I've noticed that app engine sometimes has a hard time starting up new app
instances from none and the 500 errors will stack up until one comes fully
online.  I've had to bullet proof my UI requests with retry loops since my
customers get a bad taste from 500 responses. The only naked requests the
browser makes are to static files since they always serve up fast and
reliably.

My suggestion to you is the load up appstats and tune the external request
durations to a max 1000ms in order to not get throttled.
http://googleappengine.blogspot.com/2010/03/easy-performance-profiling-with.html
Also if you are using task queues, try to keep task hit durations under 10
seconds for the same reason.

App engine likes things to be quick.
Good luck,
--Stevko



On Tue, Nov 30, 2010 at 3:19 PM, MdeA  wrote:

> Thanks Stevko. I took a look at that Issue and now I think something
> is definitely wrong with the availability of the system.
> I don't know the rest of the people having this problem, but I'm not
> using anything sophisticated on those pages.
> The only I can think of is the queries against the Datastore, but if
> running a query against a "table" with around 100 "records" and 40
> "columns" to return 2 or 3 (max 12) records causes problems like this;
> then, we have a problem.
> The most basic relational DB would handle that in a breeze.
> You shouldn't have to go through the pain of implementing
> "caching" (what I've been told) for something as simple as that.
>
> On Nov 30, 1:17 pm, "A. Stevko"  wrote:
> > @micdearmas,
> > These are pretty much a fact of life these days.
> > I suggest star'ing this issuehttp://
> code.google.com/p/googleappengine/issues/detail?id=2396#c34
> > 
> >
> > 
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Nov 30, 2010 at 9:11 AM, MdeA  wrote:
> > > I know this is the million dollars question , but does anybody know
> > > what's the best way to contact the App Engine team. I'm getting some
> > > error msgs(below) that suggest you do that.
> > > I'm getting these messages and they seem to happen when no request has
> > > been received for some time.
> > > Also, my use of the free quotas don't surpass the 2%. However, I'm
> > > investing (with AdWords) to get my site promoted and I need to make
> > > sure that I have a responsive Engine running my application.
> > > Thanks in advance for your time and consideration.
> > > Michael
> >
> > > airport-parking-cheap.appspot.com
> > > ...
> > > - Request was aborted after waiting too long to attempt to service
> > > your request. This may happen sporadically when the App Engine serving
> > > cluster is under unexpectedly high or uneven load. If you see this
> > > message frequently, please contact the App Engine team.
> > > ...
> > > - A serious problem was encountered with the process that handled this
> > > request, causing it to exit. This is likely to cause a new process to
> > > be used for the next request to your application. If you see this
> > > message frequently, you should contact the App Engine team. (Error
> > > code 203)
> >
> > > --
> > > 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 e...@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-appeng...@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-appeng...@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.