[google-appengine] Architecting entity groups, is this the correct approach?

2017-05-11 Thread Rob Curtis
Hi, I'm trying to understand which approach is better with regard to write throughput in transactions. We currently have multiple models that all use the same parent key. As an example, we have the following models: - Foo - FooLog (which uses a parent key from Foo) - FooAudit

[google-appengine] Flex environment slow to turn off instances, is this normal?

2017-05-11 Thread Rob Curtis
Hi, We've been experiencing very high costs on one of our google appengine flexible environment apps. To try reduce the costs, I updated the app.yaml to the following: runtime: custom env: flex entrypoint: gunicorn -b :$PORT main:app resources: cpu: 1 memory_gb: 1.0 automatic_scaling:

[google-appengine] Re: dev_appserver hangs while running tests

2017-05-11 Thread Shaunak Godbole
That is very weird indeed. To be fair, the tests suddenly stopped working one day and since then we've been seeing the tests hang every time. I'm going to try and upgrade my SDK version and see if that helps. I'm also going to try it on a different machine to see if it works there as well.

[google-appengine] Re: app.yaml resources suggestions for static hosting

2017-05-11 Thread E EE
30 requests per second for static resources is small enough to be insignificant. You should be able to serve it happily with a micro instance, so something seems very wrong here. It is possible that app engine has a lot of latency, so out of those 100ms, only 1ms or less is spent in your web

Re: [google-appengine] app.yaml resources suggestions for static hosting

2017-05-11 Thread 'Justin Beckwith' via Google App Engine
Are you *only* doing static hosting? Or is there a dynamic aspect as well? On Thu, May 11, 2017 at 2:58 PM, wrote: > I'm using nodejs flex environment and express.static middleware for > hosting a static site, a mix of html, javascript, css and images that has > about

[google-appengine] Re: dev_appserver hangs while running tests

2017-05-11 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Shaunak, Interesting indeed! My SDK version is: $ goapp version go version 1.6.3 (appengine-1.9.53) linux/amd64 Downgrading to 1.9.48 didn't cause the issue to appear, either. I'm running an Intel(R) Xeon(R) CPU @ 2.2 GHz, and I only have 7.3G memory! I'm running the exact code you'd

[google-appengine] Re: dev_appserver hangs while running tests

2017-05-11 Thread Shaunak Godbole
That's interesting. goapp version prints the following: go version go1.6.3 (appengine-1.9.48) darwin/amd64 I'm using MacBookPro with the following configuration: Processor: 2.2 GHz Intel Core i7 Memory 16G Graphics Intel Iris Pro 1536MB Thanks! Shaunak On Thursday, May 11, 2017 at 3:19:06

[google-appengine] Failed_to_pick_backend

2017-05-11 Thread EJ Kowal
Trying to install wordpress to google flexible environment, as documented here: https://cloud.google.com/php/tutorials/wordpress-app-engine-flexible I have it installed with not errors but am getting this error when I try to connect to the service: Error: Server ErrorThe server encountered a

[google-appengine] Re: dev_appserver hangs while running tests

2017-05-11 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Shaunak, I've not been able to observe the crash as you saw. For me, it completes in a timely manner. I'm curious to know what version of the SDK you're using now and what are the specs of the machine you're running this on? Cheers, Nick Cloud Platform Community Support On Thursday, May

[google-appengine] app.yaml resources suggestions for static hosting

2017-05-11 Thread jason
I'm using nodejs flex environment and express.static middleware for hosting a static site, a mix of html, javascript, css and images that has about 30 rps It seems the defaults on flex environment isn't powerful enough to serve static files in under 100ms. I've fixed this problem by increasing

[google-appengine] Re: Passing environment variables to Java Flexible Via Gradle

2017-05-11 Thread E EE
My questions are general, I mention spring just to give some context. The question is how do you change the variables between different environments (dev / production). The gradle app engine plugin is something I consider part of app engine. Maybe its better to start a new question thread with

[google-appengine] Re: Passing environment variables to Java Flexible Via Gradle

2017-05-11 Thread 'George (Cloud Platform Support)' via Google App Engine
If you use Spring Boot, there are various ways of choosing which build version, dev or prod, is getting built, as described in the "24. Externalized Configuration" sub-chapter of the "Spring Boot Reference Guide" online document. [1] More details and examples can be found on the "Spring Boot :

[google-appengine] Re: Querying on attributes of related kind in ndb

2017-05-11 Thread 'Jordan (Cloud Platform Support)' via Google App Engine
You first perform a keys_only query to retrieve the list of all Professors whose 'name' = "Snape". Then query for all Students

[google-appengine] Re: dev_appserver hangs while running tests

2017-05-11 Thread Shaunak Godbole
Thanks Nick, I was able to isolate the problem significantly. It seems like there is a limit on the number of operations that can be read in a given amount of time. If you run the following program: package main import ( "fmt" "testing" "google.golang.org/appengine"

[google-appengine] Re: Deployment Failures and Memcache Unavailability Due to Underlying Component

2017-05-11 Thread 'Nicholas (Google Cloud Support)' via Google App Engine
Hey Nickolas, Thank you for sharing your findings with the community here in order to help! This is much appreciated. Nonetheless, if I've understood your message correctly, you've occasionally encountered errors with *appcfg.py* where deployment which includes your *dispatch.yaml* does not

[google-appengine] Querying on attributes of related kind in ndb

2017-05-11 Thread Akshar Raaj
I have two kinds: class Professor(ndb.Model): name = ndb.StringProperty() email = ndb.StringProperty() class Student(ndb.Model): professor = ndb.KeyProperty(kind=Professor) name = ndb.StringProperty() age = ndb.IntegerProperty() I want to find all

Re: [google-appengine] Re: Maven plugins

2017-05-11 Thread Joshua Fox
On Mon, May 8, 2017 at 2:35 PM, 'Elliotte Rusty Harold' via Google App Engine wrote: > > > On Monday, May 8, 2017 at 6:45:56 AM UTC-4, Joshua Fox wrote: >> >> >> Launching two separate processes (first appengine:runfrom the C >> loud-SDK-Based >>

Re: [google-appengine] Maven plugins

2017-05-11 Thread Joshua Fox
On Thu, May 11, 2017 at 5:01 AM, Brian de Alwis wrote: > On 10-May-2017, at 7:48 AM, Joshua Fox wrote: > > I guess both approaches provide hot reload? (Debug-time class reloading.) > > CT4E uses the same Eclipse facilities used for Java projects to