Re: [google-appengine] Re: Over Quota Custom Message

2018-02-08 Thread Attila-Mihaly Balazs
Hossein,

If we're talking about AppEngine standard, you can set the static file 
which will be served for particular sitations (over quota, timeout, etc): 
see "error_handlers" here: 
https://cloud.google.com/appengine/docs/standard/python/config/appref

Cheers,
Attila

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f08950fa-7840-4944-b719-ab360de690e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to deploy a java microservice to an existing python-default standard environment app?

2018-02-08 Thread 'Jordan (Cloud Platform Support)' via Google App Engine
You can think of services 

 
like completely different applications (which can be written in different 
languages), with each their own versions. Your main App Engine project then 
makes use of your different services by first accepting requests from the 
'default' front-end Python service and version, then having the 'default' 
service/version make requests 

 
to your additional backend services' ('worker' and 'javaworker') default 
versions. 

Of course your clients can make direct requests to your other services 
instead of only the 'default' by using the services' routing URL 
.
 
Therefore, since these are separate applications working together to form a 
project, each service has its own app.yaml (or appengine-web.xml 
 for 
Java). Having separate configuration files allows you to then specify a 
different 'service' (if deploying with gcloud, else use 'module' if 
deploying with App Engine Maven plugin) in the configuration file. 

Now that you have separate services with unique configuration files, you 
can then run the deployment commands (gcloud or mvn appengine:deploy) from 
the root filtepaths (aka where their configuration files reside) to deploy 
a new version of that service to your App Engine project. 

- Note Google Groups is for general product discussions and is not for 
technical support. If your require further technical support for deploying 
services to your App Engine project, it is recommended to post your 
detailed questions  to Stack 
Overflow  using the 
supported Cloud tags. 

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2522f75c-79e5-4486-affa-6438594edf96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] App Engine Type & Cost

2018-02-08 Thread Terry Caliendo
I'm trying to understand what it would cost to run a fairly simple app on 
Google App Engine.  I've tried the cost calculator, but I'm a bit unsure 
that I'm entering everything correctly (and/or reading the limits of the 
free tier correctly).  The simple app I'm developing is for a non-profit so 
I need to keep the cost extremely low.

*Basic App Info*
The app will be a specialized database of client information.   

The app will be very responsive for the user in that when the user makes a 
change to a field, the browser will send the change to the server after the 
focus moves away from the field (ie. the user won't be hitting a "submit" 
button to save the changes).  

Also, in similar fashion to the way google docs works, if two users have 
the same record open at the same time and one user makes an update to a 
field that gets saved (as outlined above), the system will send the change 
to the other user's browser to update the corresponding field.  

I'm primarily a php developer and this type of instant interaction is not 
well suited, because each instance of php/cgi is resource intensive.  Thus 
keeping a process alive to create a websocket type setup would put an 
unnecessary strain on the server.  And polling the server every 5 seconds 
via client side "pull" would also be intensive on the server.  


*Flexible Enviornment*
Thus I'm was looking at NodeJS as the development platform as I believe it 
would handle websockets with high efficiency.  But it appears as though 
Node JS needs to run in the "Flexible Environment", which does not have a 
free tier and appears as though it would be somewhat costly for the non 
profit at around $20-$40 per month (from articles I've read on the 
internet).


*Standard Environment*
The "Standard Environment" has a free tier that it seems like I may be able 
to keep this app within.  I think I'd probably choose to have the app 
developed in Python, but I'm open to suggestions as to what would be the 
best player for websockets (or server "push") in the Standard Envoronment.



*App Resource Needs*
My app will have about 5 users that will use the app on and off throughout 
their day.   Each of them would make approximately 5 changes per session, 
and browse approximately 10 records per session.And lets say each 
worker does 20 sessions per day, and that the sessions each last 10 
minutes.  So, with approx 23 work days per month, there would be about a 
total of 11,500 writes per month and 22,000 reads per month.  The total 
data stored on the database would be small, around 10MB.


*Cost*
>From what I'm gathering from the pricing, I'm absolutely in the free tier 
for the database usage, correct?

If I had the app built to run in the Standard Environment, it appears as 
though I can have one F1 instance running 24/7 for free.  At some point 
during the day the 5 users could all be accessing the app at the same time, 
so would one F1 instance (running Python) be able to handle 5 concurrent 
websocket connections with read/writes to the database?   

If so it appears as though I could get this app hosted for this non profit 
on google's platform for free.


*Thoughts*
Am I thinking about this in the correct way?  Are there any fees I'm likely 
missing?

Thanks for any suggestions and input.

Terry

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/386fb991-30e7-4204-958d-a48a814a7955%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google App Engine Cost

2018-02-08 Thread Terry Caliendo
I'm trying to understand what it would cost to run a fairly simple app on 
Google App Engine.  I've tried the cost calculator, but I'm a bit unsure 
that I'm entering everything correctly (and/or reading the limits of the 
free tier correctly).  The simple app I'm developing is for a non-profit so 
I need to keep the cost extremely low.

*Basic App Info*
The app will be a specialized database of client information.   

The app will be very responsive for the user in that when the user makes a 
change to a field, the browser will send the change to the server after the 
focus moves away from the field (ie. the user won't be hitting a "submit" 
button to save the changes).  

Also, in similar fashion to the way google docs works, if two users have 
the same record open at the same time and one user makes an update to a 
field that gets saved (as outlined above), the system will send the change 
to the other user's browser to update the corresponding field.  

I'm primarily a php developer and this type of instant interaction is not 
well suited, because each instance of php/cgi is resource intensive.  Thus 
keeping a process alive to create a websocket type setup would put an 
unnecessary strain on the server.  And polling the server every 5 seconds 
via client side "pull" would also be intensive on the server.  


*Flexible Enviornment*
Thus I'm was looking at NodeJS as the development platform as I believe it 
would handle websockets with high efficiency.  But it appears as though 
Node JS needs to run in the "Flexible Environment", which does not have a 
free tier and appears as though it would be somewhat costly for the non 
profit at around $20-$40 per month (from articles I've read on the 
internet).


*Standard Environment*
The "Standard Environment" has a free tier that it seems like I may be able 
to keep this app within.  I think I'd probably choose to have the app 
developed in Python, but I'm open to suggestions as to what would be the 
best player for websockets (or server "push") in the Standard Envoronment.



*App Resource Needs*
My app will have about 5 users that will use the app on and off throughout 
their day.   Each of them would make approximately 5 changes per session, 
and browse approximately 10 records per session.And lets say each 
worker does 20 sessions per day, and that the sessions each last 10 
minutes.  So, with approx 23 work days per month, there would be about a 
total of 11,500 writes per month and 22,000 reads per month.  The total 
data stored on the database would be small, around 10MB.


*Cost*
>From what I'm gathering from the pricing, I'm absolutely in the free tier 
for the database usage, correct?

If I had the app built to run in the Standard Environment, it appears as 
though I can have one F1 instance running 24/7 for free.  At some point 
during the day the 5 users could all be accessing the app at the same time, 
so would one F1 instance (running Python) be able to handle 5 concurrent 
websocket connections with read/writes to the database?   

If so it appears as though I could get this app hosted for this non profit 
on google's platform for free.


*Thoughts*
Am I thinking about this in the correct way?  Are there any fees I'm likely 
missing?

Thanks for any suggestions and input.

Terry

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7602526c-d37a-4b33-9006-1e86d72e351a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google Cloud Storage API, sometimes we get errors

2018-02-08 Thread 'Kenworth (Google Cloud Platform)' via Google App Engine


A thread like this is off-topic for Google Groups, and should be posted to 
StackOverflow . 
While I'd like to help you, this isn't the place to do it. This forum isn't 
meant for specific 1-on-1 technical issues, but for general discussion of 
the platform and its services. With StackOverflow 
, which we 
also monitor, you'll be in touch with a much larger user-base of people who 
are going to help you, and in a format which is designed for that purpose. 
Check out our community support page for the list of tags 
 we monitor. 

If you suspect this is a defect on the platform, you can open a new public 
issue tracker  as described in this article 
 so that proper 
attention will be given to it. 

Regardless of the platform used, It would be helpful to the community if 
you can provide more content to the issue like providing a piece of the 
failing code and/ answers to Ani’s questions.

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/197721fd-7a78-4de8-a0ff-a21ca18969c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to deploy a java microservice to an existing python-default standard environment app?

2018-02-08 Thread rasmus
As per topic.
I want to add a java service to my existing python app.

What does it take? All google java tutorials assume I'm building a full 
app, so the examples dont work for me.

Anyone have an example of deploying microservices in java?

I have root directory
my-app-VERSION
  +- default -- contains app.yaml, lots of python code
  +- worker -- contains worker.yaml, some python code

now I want to add
  javaworker -- containing pom.xml, build.gradle, some java code in 
src/main/com/mycompany/javaworker

gradle builds the WAR distribution alright, outputs my HelloService.class 
in the expected place.
But it can't deploy or run, claiming it can't find gcloud.
Gradle discussions seem to say it "currently" requires the default service 
to be a pom.xml (implying java i guess)

mvn appengine:run says that it's missing root pom.xml

I don't want to suddenly overwrite our main app with some empty java 
servlet.
What to do?




-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/fa1ea6ad-66d7-4669-ab21-172d0ff6f88b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google App Engine is slow to deploy, hangs on "Updating service [someproject]..."

2018-02-08 Thread Franck Diédrich
Hello,

I'm experiencing serious latency too on a flexible env.

Deployments used to last around 9 minutes (which is quite long) and now 
they time out without explicit reason.

When will deployement improvement flow be available?

Le jeudi 29 septembre 2016 21:48:26 UTC+2, Kevin Lau a écrit :
>
>
> Is there a faster way to deploy an app? Google App Engine is slow to 
> deploy, hangs on "Updating service [someproject]..." I am using a flexible 
> environment with PHP.
>

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8dc214d6-ae76-4fe6-89e3-6aa0ced1d5ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: A porta 300 do servidor 35.199.79.18 está: Inacessível

2018-02-08 Thread 'Yannick (Cloud Platform Support)' via Google App Engine
Hello Patrick, please note that support on these forums is only offered in 
English. This being said, your issue's description is extremely vague anf 
there's not much anyone here can do to help you without more context and 
information. Port 300 is not a commonly used port on the Google Cloud 
Platform so that's not enough information to go on.

To get proper help in any situation, please provide the following 
information:
1) Describe what you are attempting to do, giving as much relevant 
information as possible, including software and OS versions.
2) Give us a description of the action you performed that led to an error 
message as well as the full context of the error message.
3) Describe what you have tried so far to resolve your issue.

And as always, screenshots are always a good aid for describing an issue.

This being said, also keep in mind that this forum is for discussion of Google 
App Engine . If you have a problem 
with another Google Cloud Platform product, use the community support 
overview  to figure out 
where to ask for help.

On Thursday, February 8, 2018 at 9:02:36 AM UTC-5, Patrick Jonshon wrote:
>
> A porta 300 do servidor 35.199.79.18 está:
> Inacessível 
>
> HELP
>

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bab71311-392c-43e6-aed5-05c6f6c6f26f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] A porta 300 do servidor 35.199.79.18 está: Inacessível

2018-02-08 Thread Patrick Jonshon
A porta 300 do servidor 35.199.79.18 está:
Inacessível 

HELP

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d4b631e7-e6c2-47df-ae60-d0bba027eb4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.