People always assume that steady traffic yields steady pricing.
If your app spends most of its time waiting on API’s like accessing the data store, Small changes in the traffic pattern through out the day can change the amount of concurrency and the number of Instances required to serve the traffic.
If you had 1000 people show up for 5 minutes at the same time, your cost will be much more than having 1000 people spread out in order through the day.
--
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-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
I took a very quick look at your application.
It looks like your datastore reads and writes did increase by about
10% between those two days. Your latency also increased for about 12
hours (without an increase in CPU usage).
It is possible that a small increase in datastore latency slowed down
your application enough that more instances were needed to service
requests. It could also be that you had some particularly long running
IO-bound tasks. But I don't have any strong evidence of either case
(the latency increase does correlate with the increase in billed
instances but I can't easily say why your latency increased).
Cheers,
Brian
Are you using the old MS datastore or the HR datastore? If you're using MS then pretty much anything to do with the datastore is totally random, so expect random latency increases which result in higher instance counts and thus higher cost to you, randomly of course. Google will not be fixing these so move to the hr datastore when you can.
--
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/-/PsCn4-PDjvUJ.
I hate to dig up an old subject, but this is exactly the biggest
concern I have with GAE's pricing model. When Google screws up the
datastore, revenue goes up.
I don't think anyone at Google is so nefarious that they would
deliberately increase datastore latency, but in the long run behavior
follows incentives. And this seems like a strong incentive *not* to
fix latency issues. In the made-for-tv movie script, some executive
deliberately lets latency rise in the last few days of the quarter
just to make his revenue targets and get a bonus. And because of
this, some otherwise-friendly, normal schizophrenic's medication order
fails to process and he goes on a murderous rampage in NYC. And Sam
Waterston convenes a grand jury....ok ok, so I've been watching too
much Law And Order.
It would make me a lot happier if "time spent waiting for Google
services which we are already paying for" (ie, datastore operations)
was subtracted from instance hours we pay for. What this says is
datastore latency is Google's problem, not my problem. It means that
GAE engineers will be always be working extra hard to keep latency
down - because low latency improves Google's bottom line rather than
inflating it.
Jeff
What do you mean? The dollar cost for HRD is the same as MS.
>I know we could save
> some CPU hours by using Python 2.7 concurrency feature if we move over to
> HRD. There is loss and there is gain. Overall, we don't see our cost will
> reduce by moving M/S to HRD. That is why we are reluctant to make the move.
>
> I have always wondered why GAE doesn't extend Python 2.7 support to M/S. It
> doesn't seem there is any particular technical blocker. Maybe I'm wrong.
>
> In this random latency case, I again wonder why GAE doesn't plan to fix for
> M/S servers.
We do have a fix - the HRD :-) Seriously, to make MS more consistent
and reliable, you'd need to synchronously replicate the data across
machines and data centers and that is exactly what MRD.
Cheers,
Brian
When HRD was launched it did cost 3x more than MS (since it costs
Google at least 3x more to do the replication). But the pricing has
later adjusted to be the same as MS.
Cheers,
Brian
HRD is NOT for "mission critical" only, it is for any app that you
care about at all. The only use for MS is now old apps that aren't
used - everything else should be migrated as a matter of the highest
priority.
Google haven't deprecated MS, probably to avoid yet another PR
backlash. But I'm sure privately they want to switch everyone over to
HRD as soon as possible, because it causes so many support headaches.
And it's not just Google - I'm sure you'll have noticed that you get
very little help from this group as soon as you admit you use MS.
Basically if you don't care enough about your app to migrate it, why
should we care about it either?
So to sum up, MIGRATE NOW! Make sure you understand eventual
consistency (see http://neogregious.blogspot.com/2011/04/migrating-app-to-high-replication.html
and http://neogregious.blogspot.com/2011/06/high-replication-migration-lessons.html),
and then GO FOR IT!
The last step of the migration is "alias the app over to the HRD app".
I am wondering:
whether oldapp.appspot.com will be pointed to newapp-hrd.appspot.com?
whether old...@appspot.com will be pointed to newap...@appspot.com
for xmpp?
whether postm...@oldapp.appspotmail.com will be pointed to
postm...@newapp-hrd.appspotmail.com?
Do we have to go to Google Apps and manually switch domain names
www.oldapp.com to newapp-hrd.appspot.com?
Thanks,
coronin
On Dec 14, 1:32 pm, Brian Quinlan <bquin...@google.com> wrote:
> On Thu, Dec 15, 2011 at 8:20 AM, Alan Xing <alanx...@gmail.com> wrote:
> > The dollar cost of HRD and MS are the same? It was a surprise for me. I
> > always had the impression HRD costed way more. Now I could not find that
> > document except from Google search engine snapshot. As of Dec 10, 2011, GAE
> > doc still mentioned HRD "uses approximately three times the storage and CPU
> > cost of the master/slave option". Please see attached snapshot.
>
> > Regardless, I'm very happy to know that HRD is not costing more than MS any
> > more. I will seriously think about to migrate to HRD soon.
>
> When HRD was launched it did cost 3x more than MS (since it costs
> Google at least 3x more to do the replication). But the pricing has
> later adjusted to be the same as MS.
>
> Cheers,
> Brian
>
>
>
>
>
>
>
> > As of this moment today, we are still seeing way much higher front end
> > instance hours than I would have expected before yesterday's spike. I'm not
> > convinced by the explanations I have received so far. I'd think it is good
> > to be transparent about pricing. Choosing a platform is a long term
> > relationship, transparency can help stabilize the relationship.
>
> > On Wed, Dec 14, 2011 at 12:14 PM, Brian Quinlan <bquin...@google.com> wrote:
> >> > On Wed, Dec 14, 2011 at 1:27 AM, Kenneth <kennet...@aladdinschools.com>