Re: [google-appengine] Keep it short: Who is forced to leave GAE?

2011-08-31 Thread Peter Petrov
I've already left GAE a couple of months ago. I.e. immediately after Greg replied to me that new pricing will come into effect before Python 2.7 and multithreading. My app has short bursts of thousands QPS, and without multithreading it was clear to me that for an unknown period I'd have to pay a v

Re: [google-appengine] Channel api disconnect when link clicked

2011-07-08 Thread Peter Petrov
Hi Aleksandra, An easy solution is to use target="_blank" in the links to the downloads. - Peter On Fri, Jul 8, 2011 at 12:45 AM, Aleksandra Kłapcińska < aleksandra.klapcin...@10clouds.com> wrote: > Hi everyone, > I'm developing an app on google app engine in python. I use there > channel API,

Re: [google-appengine] Re: Thread-safe Python Tips

2011-07-07 Thread Peter Petrov
On Wed, Jul 6, 2011 at 8:00 AM, Pol wrote: > On Jul 1, 10:10 am, "Ikai Lan (Google)" wrote: > > It's possible for two operations to update townCache concurrently, but in > > your case it looks like it doesn't really matter. If TownModel is somehow > > updated between reads, it's theoretically po

Re: [google-appengine] #appengine irc chat transcript 2011-06-15

2011-06-18 Thread Peter Petrov
Personally, I'd be much happier to see Node.js supported on GAE, than PHP. Being 100% asynchronous (reactor-type), it would be a great fit for the new per-instance pricing (despite being single-threaded). On Sat, Jun 18, 2011 at 7:47 AM, Ikai Lan (Google) wrote: > Yikes. Those are great points, D

Re: [google-appengine] What do you want to see answered in Greg's pricing FAQ?

2011-05-12 Thread Peter Petrov
e prices are indeed high. > > > On 12 May 2011 21:46, Peter Petrov wrote: > >> My single question for Greg's FAQ: >> >> 1) What is the justification behind the extremely high price for >> additional instances? >> >> Here is a comparison betwee

Re: [google-appengine] What do you want to see answered in Greg's pricing FAQ?

2011-05-12 Thread Peter Petrov
My single question for Greg's FAQ: 1) What is the justification behind the extremely high price for additional instances? Here is a comparison between a GAE Frontend Python Instance and a small Rackspace Cloud Server: GAE Frontend Python Instance:

Re: [google-appengine] Re: Is App Engine suddenly becoming more expensive???

2011-05-12 Thread Peter Petrov
On Thu, May 12, 2011 at 5:44 PM, Robert Kluin wrote: > > One thing is for sure, the senior PM is actively watching and responding to > these questions. This is also very good, I'm sure Greg and the AE team will > use all the feedback to finalize the details. > > Considering the fate of Greg's prev

Re: [google-appengine] Re: Using the Channel API with a desktop app: possible?

2011-02-13 Thread Peter Petrov
This has the drawback that the user must have a Google Account in order to connect to GTalk. Unfortunately GTalk does not support e.g. SASL ANONYMOUS logins. It would be perfect if the Channel API exposed directly its lower-level XMPP layer. Something like allowing the user to connect via XMPP as

Re: [google-appengine] Thoughts on app engine for games

2011-02-07 Thread Peter Petrov
You could use something similar to this technique, described by Nick Johnson: http://blog.notdot.net/2010/04/High-concurrency-counters-without-sharding Basically you use memcache to store the most current game state, and p

Re: [google-appengine] Re: Channel API future improvements?

2011-02-07 Thread Peter Petrov
On Mon, Feb 7, 2011 at 6:02 PM, Tim wrote: > > I've starred #4506 and #4507, but if Moishe is reading, I have a request > for a change for the Channel API as implemented by the Dev server (ie the > SDK)... it currently polls once a second, and when I'm trying to watch and > count my AJAX calls (s

Re: [google-appengine] Channel API future improvements?

2011-02-03 Thread Peter Petrov
I've opened issues in the tracker for the items in my wishlist. Please star whichever ones you find desirable: On Thu, Feb 3, 2011 at 8:36 PM, Peter Petrov wrote: > > 1. Batch send method (efficiently fan-out one message to a potentially > large number of channels). Moishe said th

Re: [google-appengine] Channel API future improvements?

2011-02-03 Thread Peter Petrov
ting on features that need to be > implemented. > > -- > 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, F

Re: [google-appengine] Re: Channel API future improvements?

2011-02-03 Thread Peter Petrov
On Thu, Feb 3, 2011 at 10:14 PM, mcilrain wrote: > I don't see what the issue is, an abstraction layer will add most of that > functionality. > > 1. The Matcher API could be very useful for this one. > > It is not useful at all. The Matcher API will simply fire a bunch of tasks for me. I already

[google-appengine] Channel API future improvements?

2011-02-03 Thread Peter Petrov
Today there was a GAE SDK 1.4.2 prerelease. I was quite disappointed that it had no Channel API related updates/improvements in the release notes. Since there is also no official roadmap announced for the Channel API, can we get some unof

Re: [google-appengine] Re: Channel API CPU usage

2010-12-23 Thread Peter Petrov
Hi Nick, Moishe, Specifying the expected channel lifetime at setup time is not very useful - because we _do not_ know in advance how long the user will stay. Some users will stay on the page longer, others will look quickly and go somewhere else. Reusing the channel tokens is not an option for som

Re: [google-appengine] Re: Static files cached even after update with changes

2010-12-18 Thread Peter Petrov
It's not necessary to have a build script which explicitly changes the version tag. I, for example, calculate a hash from the CURRENT_VERSION_ID environment variable at runtime, and use its prefix as a version tag. Since CURRENT_VERSION_ID is guaranteed to change on every deployment, the version ta

Re: [google-appengine] Re: Channel API: Callback when channel.js has been loaded

2010-12-06 Thread Peter Petrov
It is Closure-compiled, and the production source is not available. This is very close to being encrypted. On Mon, Dec 6, 2010 at 10:30 PM, Darien Caldwell wrote: > Can't you just add your own callback? The Javascript isn't encrypted. > Roll your own custom version. > > -- > You received this mes

Re: [google-appengine] does the channel api work across domains?

2010-12-03 Thread Peter Petrov
You can. The Channel API is designed to workaround the JavaScript same-origin policy, and will work across domains. On Fri, Dec 3, 2010 at 8:16 PM, Chad Burt wrote: > Say I have an application hosted outside of appengine. I'd like to build a > chat app hosted on appengine to take advantage of th

Re: [google-appengine] Re: Channel API quota

2010-12-03 Thread Peter Petrov
For billing-enabled apps the quota is 95040 channels created per day. This is still extremely low, I completely agree. If I remember correctly, yesterday after the 1.4.0 release this quota was considerably higher (about 10 times). Probably they are having capacity problems with the GAE / GTalk inf

Re: [google-appengine] query order and name attribute (patch)

2010-11-23 Thread Peter Petrov
Hey Robert, thanks very much for tracking and fixing this (I'm the one who reported the second issue). Dear Googlers, _please_ finally notice this and fix it. Named properties are nearly useless anyway, even without this bug (because the name attribute is not transparent as it should be, you still

Re: [google-appengine] Re: performance since maintenance

2010-11-22 Thread Peter Petrov
You probably won't disclose more details, but I'm curious whether you hint at disk I/O or at network I/O? In the past I've dealt (successfully) with some problems which bear similarity to the GAE stability issues. In my case the root cause were the TCP protocol peculiarities - namely that TCP conne

Re: [google-appengine] Re: Long running tasks in 1.4.0, queries will still timeout

2010-11-19 Thread Peter Petrov
A cleaner solution would be creating a new query object at each loop, using the cursor from the previous one (instead of continuously fetching from the same query object). On Fri, Nov 19, 2010 at 5:00 PM, timwhunt wrote: > So you're saying a query object can only live for 30 seconds? If that >

Re: [google-appengine] Re: how to *not* use _ah/queue/deferred?

2010-11-13 Thread Peter Petrov
Django-nonrel uses 'deferred' for various things internally - e.g. for sending emails. On Sat, Nov 13, 2010 at 1:44 PM, Ivan Uemlianin wrote: > Dear 风笑雪 > > Thank you for your comment. > > It's failing to find the request page because I've commented out the > url: /_ah/queue/deferred line in my a

Re: [google-appengine] Early Christmas Present from Google?

2010-11-06 Thread Peter Petrov
It looks like they performed some seriously powerful voodoo spells during the maintenance :) Well done, Googlers, thank you! On Sun, Nov 7, 2010 at 12:21 AM, Bart Thate wrote: > > > On Sat, Nov 6, 2010 at 11:17 PM, Greg wrote: > >> Check out the datastore stats after today's maintenance... >>

Re: [google-appengine] Re: balancing traffic between multiple versions of an appengine application

2010-11-04 Thread Peter Petrov
Deploy a third version called 'proxy', make it default, and use it to proxy/distribute the requests to the other two versions (via urlfetch). Two disadvantages: first, urlfetch has 10s time limit, so all your requests will have to complete in 10s; second, you'll consume more resources. On Fri, Nov

Re: [google-appengine] Channel API outside browsers

2010-11-03 Thread Peter Petrov
p, I was hoping the channel API would let me > simplify. > > > > Robert > > > > > > On Wed, Nov 3, 2010 at 00:29, Peter Petrov wrote: > > Forget about emulating it outside of a browser. Your best bet is using a > > separate mechanism for sending messages to

Re: [google-appengine] Channel API outside browsers

2010-11-02 Thread Peter Petrov
Forget about emulating it outside of a browser. Your best bet is using a separate mechanism for sending messages to non-browser clients - for example make a HTTP postback, or send a XMPP message. On Wed, Nov 3, 2010 at 6:20 AM, Robert Kluin wrote: > Have you look at the communications at all? I

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

2010-10-06 Thread Peter Petrov
v setting it up will be a > lot less than the production > pain if you miss something and have to go and install 2.5 anyway ;-) > > Rgds > > Tim > > > > On Oct 6, 11:17 am, Peter Petrov wrote: > > On Wed, Oct 6, 2010 at 3:28 AM, Ikai Lan (Google) > &

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

2010-10-06 Thread Peter Petrov
+1000 The download feature should be optional, and off by default. On Wed, Oct 6, 2010 at 12:48 PM, Greg wrote: > On Oct 6, 1:28 pm, "Ikai Lan (Google)" > > > > wrote: > > - The developer who uploaded an app version can download that version's > code > > using the appcfg.py download_app com

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

2010-10-05 Thread Peter Petrov
On Wed, Oct 6, 2010 at 3:28 AM, Ikai Lan (Google) > wrote: > - Fixed an issue with task queue tasks not running on the dev_appserver > when > using Python 2.6. > > Does this mean that Python 2.6 is now (more or less) supported for the dev_appserver? Are there any significant issues remaining wh

[google-appengine] Re: Unable to deploy new version

2010-09-12 Thread Peter Petrov
My updates are looping endlessly as well On Sep 12, 6:14 pm, indra wrote: > Hi, I'm unable to deploy a new version to appengine. It fails saying > 'version not ready' though I believe it does deploy the version. Whats > even strange, in Dashboard->Versions I see that no version is selected > as d

[google-appengine] Re: Static resources not updated?

2010-09-08 Thread Peter Petrov
This generally happens when you set a custom expiration time for static files. This causes Google's frontend servers to cache the files for up to the specified time, and they don't update it even if you push a new version in the mean time. This is true both for *.appspot.com and for custom domains.

[google-appengine] Re: Global transactions ?

2009-09-23 Thread Peter Petrov
See Nick's post for one possible solution: http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine On Sep 23, 10:50 am, hjo1620 wrote: > Background: I don't understand Datastore transactions. > > Containermanaged transactions in an JEE application server, > makes it easy to write a

[google-appengine] Re: https support

2009-08-25 Thread Peter Petrov
On Aug 25, 3:27 pm, "Nick Johnson (Google)" wrote: > I believe Amazon's EC2 instances start at $0.10 per hour, not $0.01. You > could serve many domains with one machine, potentially, but I'm not sure if > Amazon will let you associate multiple elastic IPs with the same EC2 > instance. That's co

[google-appengine] Re: ListProperty vs StringListProperty

2009-08-11 Thread Peter Petrov
On Aug 11, 10:57 pm, "Nick Johnson (Google)" wrote: > That's correct. The length limitation on StringProperty is due to the > indexing. Does this mean that a StringProperty(indexed=False) can have unlimited length? --~--~-~--~~~---~--~~ You received this message

[google-appengine] Re: Anything better than naked domains?

2009-07-29 Thread Peter Petrov
How about using SRV records, instead of CNAME? I don't know if the popular browsers support them, but if yes, they are a perfectly valid solution. On Jul 29, 7:40 pm, "Nick Johnson (Google)" wrote: > On Wed, Jul 29, 2009 at 5:37 PM, Barry Hunter > wrote: > > > > > 2009/7/29 Nick Johnson (Google)

[google-appengine] Re: How to not dereference ReferenceProperties?

2009-07-06 Thread Peter Petrov
See this recipe: http://appengine-cookbook.appspot.com/recipe/getting-dbreferenceproperty-key-without-loading-entity/ On Jul 7, 2:53 am, Oliver Zheng wrote: > For a model, I have a ListProperty of Keys, and whenever I access it, > it's a list of keys. Great. How can I access a ReferenceProperty