[google-appengine] Project Sharding/Load Balancing

2014-09-05 Thread Corey Gilmore
Hi All,

I build a method for load balancing on GAE.

Why?:  Yes, I understand that GAE auto scales on application demand. 
 However, it does not balance in the sense of free quota usage.  If your 
free quota app hits the quota limit, wouldn't it be nice to just use 
another project and that projects free quota?  I built something to take 
advantage of the multiple projects, independent quota limits to use more 
"free" GAE usage and reduce the need for billable GAE usage.

Let me explain: If your project runs out of free quota (and billing is 
disabled), the app stops functioning.  While Google gives you the ability 
to create 25 different projects, each with an independent quota, none of 
these projects can share quota.  Basically: using only 1 project does not 
mean you get 25 projects * 28 instance hours for that project.

How it works: Basically there is one primary project that handles users 
(user creation, user sign in, user data, etc.).  This project randomly 
chooses and assigns a secondary project for every use upon account 
creation.  You can have a pool of secondary projects.  Users are 
round-robin load balanced to each secondary to split the load and use more 
free quota (3 secondaryies = 150k datastore ops, for example).

Let me know what you think,

Project home page: http://gae-balancer-proxy.appspot.com/
Github repo: https://github.com/coreymgilmore/gae-balancer
More info at my blog: 
http://blog.coreygilmore.io/app-engine-free-tier-load-balancing/

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Custom domain, no "Compute > App Engine" option.

2014-09-05 Thread Philip G
I'm trying to follow this guide for adding a *non*-Google Apps custom 
domain: 
https://developers.google.com/appengine/docs/domain#serving_your_app_on_a_custom_domain

However, the very first step says: 

> Go to the Google Developers Console at 
> https://console.developers.google.com and select your project to see its 
> dashboard. At the left of the dashboard, select Compute > App Engine > 
> Settings


... I don't have an "App Engine" option. I have an app engine app running. 
It's deployed, and heck, even has the remains of a working site (test 
only), but there is no "App Engine" option.. What am I missing? 

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google App Engine - java.lang.NoClassDefFoundError: com.google.appengine.api.datastore.DatastoreServiceFactory

2014-09-05 Thread Thiago Graça Couto Braun


I have an app that is successfully uploading content to a server on 
Google´s App Engine. What I wanna do now, is retrieve that content using a 
DataStore constructed like this:

 DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();

Whenever I call that line, I got the following error:

09-05 11:21:37.922: E/AndroidRuntime(27138): FATAL EXCEPTION: AsyncTask 
#2Caused by: java.lang.NoClassDefFoundError: 
com.google.appengine.api.datastore.DatastoreServiceFactory

I´m unsure at the moment if the problem lies on the application itself, or 
on the AppEngine. I have already tried to add some suggested JARs to my 
buildpath, for example appengine-agent.jar and appengineagentimpl.jar 
without success.

I would deeply appreciate any inputs on this. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Project Sharding/Load Balancing

2014-09-05 Thread Chad Vincent
An interesting thought experiment, but effectively theft.  I'm not really 
sure if there's an ethical application for this?

On Thursday, September 4, 2014 8:09:24 PM UTC-5, Corey Gilmore wrote:
>
> Hi All,
>
> I build a method for load balancing on GAE.
>
> Why?:  Yes, I understand that GAE auto scales on application demand. 
>  However, it does not balance in the sense of free quota usage.  If your 
> free quota app hits the quota limit, wouldn't it be nice to just use 
> another project and that projects free quota?  I built something to take 
> advantage of the multiple projects, independent quota limits to use more 
> "free" GAE usage and reduce the need for billable GAE usage.
>
> Let me explain: If your project runs out of free quota (and billing is 
> disabled), the app stops functioning.  While Google gives you the ability 
> to create 25 different projects, each with an independent quota, none of 
> these projects can share quota.  Basically: using only 1 project does not 
> mean you get 25 projects * 28 instance hours for that project.
>
> How it works: Basically there is one primary project that handles users 
> (user creation, user sign in, user data, etc.).  This project randomly 
> chooses and assigns a secondary project for every use upon account 
> creation.  You can have a pool of secondary projects.  Users are 
> round-robin load balanced to each secondary to split the load and use more 
> free quota (3 secondaryies = 150k datastore ops, for example).
>
> Let me know what you think,
>
> Project home page: http://gae-balancer-proxy.appspot.com/
> Github repo: https://github.com/coreymgilmore/gae-balancer
> More info at my blog: 
> http://blog.coreygilmore.io/app-engine-free-tier-load-balancing/
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Project Sharding/Load Balancing

2014-09-05 Thread Jay
This is a violation of the terms of service. 
You shoud have investigated more before investing the effort.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Project Sharding/Load Balancing

2014-09-05 Thread PK
I am not qualified to provide legal advice but I would expect you would be 
violating your Terms of Service by doing this. I suggest you put your 
creativity to work on something else!!

PK
http://www.gae123.com

On September 5, 2014 at 12:04:55 PM, Chad Vincent (ccrvinc...@gmail.com) wrote:

An interesting thought experiment, but effectively theft.  I'm not really sure 
if there's an ethical application for this?

On Thursday, September 4, 2014 8:09:24 PM UTC-5, Corey Gilmore wrote:
Hi All,

I build a method for load balancing on GAE.

Why?:  Yes, I understand that GAE auto scales on application demand.  However, 
it does not balance in the sense of free quota usage.  If your free quota app 
hits the quota limit, wouldn't it be nice to just use another project and that 
projects free quota?  I built something to take advantage of the multiple 
projects, independent quota limits to use more "free" GAE usage and reduce the 
need for billable GAE usage.

Let me explain: If your project runs out of free quota (and billing is 
disabled), the app stops functioning.  While Google gives you the ability to 
create 25 different projects, each with an independent quota, none of these 
projects can share quota.  Basically: using only 1 project does not mean you 
get 25 projects * 28 instance hours for that project.

How it works: Basically there is one primary project that handles users (user 
creation, user sign in, user data, etc.).  This project randomly chooses and 
assigns a secondary project for every use upon account creation.  You can have 
a pool of secondary projects.  Users are round-robin load balanced to each 
secondary to split the load and use more free quota (3 secondaryies = 150k 
datastore ops, for example).

Let me know what you think,

Project home page: http://gae-balancer-proxy.appspot.com/
Github repo: https://github.com/coreymgilmore/gae-balancer
More info at my blog: 
http://blog.coreygilmore.io/app-engine-free-tier-load-balancing/
--
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] reduce startup time with ProGuard?

2014-09-05 Thread Vinny P
On Thu, Sep 4, 2014 at 2:48 AM, stephanos  wrote:

> It's ~18 seconds on good days, ~26 second on bad ones.
>


ProGuard will probably save you a few seconds with the above quoted startup
times (especially on the "bad" startup time). I would say it's worth your
time to try ProGuard out, and see if it does anything to help you.


-
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Google App Engine - java.lang.NoClassDefFoundError: com.google.appengine.api.datastore.DatastoreServiceFactory

2014-09-05 Thread Vinny P
It looks like you're trying to make the Datastore call directly from your
Android device, which won't work since the DatastoreServiceFactory only has
meaning to an application running within App Engine.

Look into App Engine Endpoints:
https://cloud.google.com/developers/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial,
it'll show you how to move data between your Android device and the App
Engine service, and to save data to the datastore by moving it from Android
Device -> App Engine app -> Datastore.

-
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com


 On Fri, Sep 5, 2014 at 9:41 AM, Thiago Graça Couto Braun <
thiagoco...@gmail.com> wrote:

>  I have an app that is successfully uploading content to a server on
> Google´s App Engine. What I wanna do now, is retrieve that content using a
> DataStore constructed like this:
>
>  DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
>
> Whenever I call that line, I got the following error:
>
> 09-05 11:21:37.922: E/AndroidRuntime(27138): FATAL EXCEPTION: AsyncTask 
> #2Caused by: java.lang.NoClassDefFoundError:
> com.google.appengine.api.datastore.DatastoreServiceFactory
>
> I´m unsure at the moment if the problem lies on the application itself, or
> on the AppEngine. I have already tried to add some suggested JARs to my
> buildpath, for example appengine-agent.jar and appengineagentimpl.jar
> without success.
>
> I would deeply appreciate any inputs on this. Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Re: Project Sharding/Load Balancing

2014-09-05 Thread Vinny P
 On Fri, Sep 5, 2014 at 2:04 PM, Chad Vincent  wrote:

> An interesting thought experiment, but effectively theft.  I'm not really
> sure if there's an ethical application for this?
>


As Chad and others have already mentioned, I would expect this to be
against the TOS. Specifically section 3.3 (
https://developers.google.com/cloud/terms/ ):


*3.3 Restrictions. Customer will not... (d) create multiple Applications,
Accounts, or Projects to simulate or act as a single Application, Account,
or Project (respectively) or otherwise access the Services in a manner
intended to avoid incurring Fees; *

 -
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Custom domain, no "Compute > App Engine" option.

2014-09-05 Thread Vinny P
On Thu, Sep 4, 2014 at 11:40 PM, Philip G  wrote:

>  ... I don't have an "App Engine" option. I have an app engine app
> running. It's deployed, and heck, even has the remains of a working site
> (test only), but there is no "App Engine" option.. What am I missing?
>


 It sounds like you haven't integrated your App Engine application into
cloud projects yet. Go to the App Engine admin console at appspot.com, open
up your application console, then open the Application Settings page (the
link is on the left hand navigation bar). Scroll down until you see a
section called "Cloud Integration", similar to this:
http://imgur.com/qpEs2ju

If you see a Create button, click it and wait 10-15 minutes. After that,
try again to see if the App Engine option appears in the cloud console.

-
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google Billing + Renewed Credit Card = Cancer

2014-09-05 Thread Dan Stokeley
Hi Kaan,

To update the credit card with a different expiry date, please follow the 
"Update a form of payment" instructions 
here: https://support.google.com/cloudbilling/answer/4356091 .

Even if the CVV has changed, you only need to update the expiry date for 
the card.

Regards

Dan Stokeley
Cloud Billing PM

On Wednesday, 3 September 2014 12:56:11 UTC-7, Kaan Soral wrote:
>
> Thanks for the replies
>
> No I haven't created an issue, they said the issue tracker would be more 
> active, but I've yet to see a change
>
> I'm outside US, so direct bank deposits, for N(~5) apps, would be death
>
> Your experience is very interesting Doug, I guess in US they have that 
> level of integration, I'm guessing it's the reason why I'm experiencing 
> this, since they have that capability in US, I'm guessing they didn't give 
> much thought into manual replacement
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google Billing + Renewed Credit Card = Cancer

2014-09-05 Thread Kaan Soral
Thanks a lot for the reply, that is very interesting, It might be a good 
idea to put this information on the UI/form, there might be more like me, 
I'm assuming either the old CVV works, or there is an established way to 
request the new CVV from the credit card systems

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: GAE SDK Release announcements ???

2014-09-05 Thread PK
No response from Google and 1.9.10, another very minor release, is now out.

Anybody with paid support could you please be kind enough to ask your support 
representative this question.

Thanks,
PK
http://www.gae123.com

On August 19, 2014 at 10:33:51 AM, PK (p...@gae123.com) wrote:

It used to be that new GAE SDK releases would be announced in this group. 
Lately, I have not seen any announcements. The last announcement I can find is 
1.9.3 and the downloads page and dashboard show 1.9.9.

So my question is are the GAE SDK releases announced somewhere else? I think 
the pre-release announcements was a good practice too although  I understand 
that the last few releases are very minor on the SDK side.

Thanks,
PK
http://www.gae123.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.