On Tue, Jul 12, 2011 at 1:26 AM, jeffrey_t_b <[email protected]> wrote: > It must not be too bad from Google's perspective, as they include an > example of a "recache" job in the GAE java cron documentation:
If you are recaching something every 2 minutes, there is a certain expectation that you going to be needing it uptodate all the time. So if your app gets traffic all day long, thats a good practice. But if your app is not that popular its just bad design. ... in short its just an example of what you can do. Its not shown as a 'best practice' in every possible situation. Just because you can, doesn't mean you should. > > http://code.google.com/appengine/docs/java/config/cron.html > > That said, I'm not sure why anyone would necessarily want to do this, > given the new pricing. Not sure how the New Pricing comes into this. Keeping an app 'warm' just means keeping an instance always loaded. And you get 24 hours of instance time free. So all its doing is making sure you using all your free quota, not costing you anything as such. > > > On Jul 11, 3:08 pm, Jeff Schnitzer <[email protected]> wrote: >> Using cron to keep your app warm is not sanctioned either. If Google wanted >> to give you a way to keep your app running, they'd offer it as a feature and >> charge for it. >> >> If these hacks become commonplace, GAE engineers will be retasked to >> fighting them and this will further delay new features that I care about >> like next-generation queries. Furthermore, the collateral damage of closing >> these loopholes might impact all our apps (such as, hypothetically, a >> surcharge for crons more frequent than 30 mins). >> >> Furthermore, if you hope to build a real business on top of appengine, >> you're getting off on the wrong foot by alienating the folks at Google. >> Don't expect to get your questions answered in this forum, and don't be >> surprised if your app gets blocked in some way. >> >> Read this: http://en.wikipedia.org/wiki/Tragedy_of_the_commons Exactly. Google could be spending their time lowering the instance startup time. Rather than dealing with the resource consumption of lots of people keeping their app 'warm' just in case. Keeping an app warm is a 'workaround'. And workarounds nearly always distract the developers from fixing the actual issue. >> >> Jeff >> >> >> >> >> >> >> >> On Sun, Jul 10, 2011 at 10:44 PM, Max <[email protected]> wrote: >> > hi Jeff, >> >> > AFAIK, lots of GAE developers are using cron job to *warm up*, including >> > me. You can search in this group, many ppl are doing this. >> >> > Also, if we want something more than a periodic ping, like those use cases >> > you mentioned, then we probably don't want all these logic stay with in our >> > business logic. This is the real benefit of this project and now is just >> > the >> > first step. But since such monitoring tools will enable "warm up" feature >> > as >> > a side effect, I will need to know this groups' idea before going further. >> >> > Again, I don't intend to go against *always on instance* solution. I am >> > just sharing my work so that other developers don't have to setup cron jobs >> > every time. >> >> > -- >> > 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/-/ht3qDc6Z984J. >> >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
