[google-appengine] Re: Latency while handling a request in GAE

2016-09-28 Thread Kajal Gupta
Hi Nick,

Thanks for your apt replay and apologises for my delayed response.
Here is the values as per logs for this URI:
*ms=6907 cpu_ms=94 cpm_usd=2.9727e-8 loading_request=0*

Also digging logs I found thatpendingTime: *"6.683222770s" * under 
protoPayload.

Thanks.

On Friday, September 23, 2016 at 5:12:21 AM UTC+5:30, Nick (Cloud Platform 
Support) wrote:
>
> Hey Kajal,
>
> Are the calls to memcache.get the first line of code in the request 
> handler? And what do the corresponding logs (see here how to read the logs 
> ) show in the 
> Developers Console for requests like these in regard to the two pieces of 
> data "cpu_ms", "ms", and "pending_ms"?
>
> Cheers,
>
> Nick
> Cloud Platform Community Support
>
> On Wednesday, September 21, 2016 at 9:32:48 AM UTC-4, Kajal Gupta wrote:
>>
>> Hello,
>>
>> I am facing latency issue while handling an API request. Please see the 
>> trace attached. Basically here I am unable to understand why there is wait 
>> time of 6,687 ms before any processing starts. This is happening quite 
>> often and some time latency increasing to 10ms. Please explain this, It 
>> would be great help.
>>
>> 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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f04e2cb9-ec2f-4f95-9e33-eab51ad20f14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Error Response: [3] Docker image appengine.gcr.io/gcloud/project_id.version.time was either not found, or you do not have access to it.

2016-09-28 Thread Geoffroy Lesage
Hey Nicholas, the local machine is OSX, setup using authentication with the 
email associated to the account... I've been able to deploy until now as 
well and nothing has changed.

Would I be able to reset permissions possible? I tried gcloud init again 
and setting up with our email, but after attempting to deploy I get the 
same error

On Monday, September 26, 2016 at 12:41:38 PM UTC-5, Nicholas (Google Cloud 
Support) wrote:
>
> As you've confirmed that the container exists, based on the error message, 
> one can only conclude that the issue lies with access control.  How is your 
> dev machine (the one from which you are using gcloud) authenticated 
> (service account, other credentials, etc.)?  At the moment, I cannot 
> reproduce the behavior you're experiencing.
>
> On Monday, August 22, 2016 at 2:11:18 AM UTC-4, Nao Ito wrote:
>>
>> Hi,
>> I have served one website with GCE(GAE flexible = vm).
>> But suddenly the deployment command got to result in failure.
>> I could deploy successfully with the same command about four months ago.
>>
>> I googled the error code and message, but there is no related post at all.
>> Does anyone face the same error? or come up with some hints to solve the 
>> problem?
>>
>> Thank you in advance.
>>
>>
>> # Details
>> ## Development Environment: Mac OS 10.11.6
>>
>> ## Development Language: Go (GAE/Go)
>>
>> ## Command: aedeploy gcloud preview app deploy app.yaml --promote
>>
>> ## Debug message(using option: --verbose debug):
>> Updating module [default]...\DEBUG: Operation 
>> [apps/project_id/operations/ab08cc84-9104-43db-9430-805fce9936a7] complete. 
>> Result: {
>> "metadata": {
>> "target": 
>> "apps/project_id/modules/default/versions/20160821t144637",
>> "method": "google.appengine.v1beta4.Versions.CreateVersion",
>> "operationType": "create_version",
>> },
>> "done": true,
>> "name": 
>> "apps/project_id/operations/ab08cc84-9104-43db-9430-805fce9936a7",
>> "error": {
>> "message": "Docker image 
>> appengine.gcr.io/gcloud/project_id.version.time was either not found, or 
>> you do not have access to it.",
>> "code": 3
>> }
>> }
>> Updating module [default]...failed.
>>
>>
>>

-- 
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/94ac9ff3-a919-48ac-8243-9b2ddb682ef2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: How to deploy a flexible app to a preemptible VM?

2016-09-28 Thread Miguel Vitorino

Hi Randy,

I don't believe that you can use Preemptible VMs yet. But it would surely 
make sense since these in the flex environment should be disposable
But I wouldn't get too excited about the current flex pricing as there have 
been hints that pricing may change for GA to consider the added value of 
GAE on top of GCE or GKE.


On Wednesday, September 28, 2016 at 2:32:50 PM UTC+1, Randy Sugianto wrote:
>
> I just tried the Flexible version of app engine, and I like it because 
> with 0.05 USD per hour I can get 1 core and almost 4 GB of RAM, much higher 
> than with a B1 instance (600MHz CPU and 128 MB of RAM only!).
>
> Then I know that Google also offers Preemptible VMs with cost only 0.01 
> USD/hour for the same spec! I guess my app engine app is very suitable to 
> use preemptible VMs.
>
> However I can't find a way to do so. Is there anything in the app.yaml 
> file that I should put so that the app will be deployed to a preemptible VM 
> instead of a normal one?
>

-- 
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/f766555d-3026-49dd-a805-ee778530743a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Deferred tasks in flexible environment

2016-09-28 Thread Randy Sugianto

Since I switched my App Engine app to a flexible environment, it seems that 
all tasks failed to run. I was surprised that all tasks failed. But when I 
open the logs, I got only this:

01:33:56.026POST500167 B4 msAppEngine-Google; 
(+http://code.google.com/appengine)/_ah/queue/deferred

The status code is 500, but when I expand it, there is only this 
information inside:

0.1.0.2 - - [29/Sep/2016:01:33:56 +0800] "POST /_ah/queue/deferred 
HTTP/1.1" 500 167 
http://0.xxx.module-sync.x.appspot.com/_ah/background 
"AppEngine-Google; (+http://code.google.com/appengine)" 
"module-sync.xx.appspot.com" ms=4 cpu_ms=0 cpm_usd=1.8663e-8 
loading_request=0 instance=- app_engine_release=1.9.45 trace_id=-
{
metadata: {…}  
protoPayload: {…}  
insertId: "2016-09-28|10:34:00.180396-07|10.106.31.139|1292268011"  
log: "appengine.googleapis.com/request_log"  
httpRequest: {…}  
operation: {…}  
}
There is no exception or stack trace or anything else that I usually see 
when I was using the standard environment.

How can I troubleshoot this? Why are my deferred tasks not run?

-- 
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/5c95805b-7936-416c-ba7d-3ae509d5876d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Error while handling "large'ish" number of parallel requests

2016-09-28 Thread Vinay Chitlangia
Hi,
I am using appengine flexible environment.

I am facing issues when there is a sudden spurt of requests to our system. 
(About 30 requests in a second). The server gets back to normal in 5-10 
seconds (perhaps with the decrease
in traffic again)
Generally the requests come at about 5-8 per second.

I am running with 2 instances.


  2
  10
  120
  
0.7



AFAICT the requests did not hit my servlet. (I added a log, the first line 
in the servlet, and for failed request it does not get printed).
"loading_request" is 0 for the failed requests as well.

The error code is 502

Is it that the requests are queued while a new instance comes up? Is it 
possible to override that, that is start the process of bringing up the new 
servers,
but use the old one (if it is taking a while?). The log shows some of the 
request waiting for 600seconds, most though fail in 10-15ms.
The failure happens for between 0.5 to 2% of the requests

-- 
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/483c4f5e-870e-4d65-b52f-d204385627a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] How to deploy a flexible app to a preemptible VM?

2016-09-28 Thread Randy Sugianto
I just tried the Flexible version of app engine, and I like it because with 
0.05 USD per hour I can get 1 core and almost 4 GB of RAM, much higher than 
with a B1 instance (600MHz CPU and 128 MB of RAM only!).

Then I know that Google also offers Preemptible VMs with cost only 0.01 
USD/hour for the same spec! I guess my app engine app is very suitable to 
use preemptible VMs.

However I can't find a way to do so. Is there anything in the app.yaml file 
that I should put so that the app will be deployed to a preemptible VM 
instead of a normal one?

-- 
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/d514f296-fc74-47e9-a5ef-8acddbf14b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Keeps crashing on deploy

2016-09-28 Thread Rick Brunstedt
When I enter "gcloud app deploy", it runs for 10 sek -ish and then this 
error occur "*Python quit unexpectedly." *
I attached the log as well but it doesn't help me really, I can't see any 
problems in there.
Sometimes, which seems very randomly, it actually works..

Where should I start looking to solve this problem?



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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/d190227f-8809-4d46-8af3-6a0332c45f05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2016-09-28 01:23:29,174 DEBUGrootLoaded Command Group: ['gcloud', 'app']
2016-09-28 01:23:29,527 DEBUGrootLoaded Command Group: ['gcloud', 'app', 'deploy']
2016-09-28 01:23:29,529 DEBUGrootRunning gcloud.app.deploy with Namespace(__calliope_internal_deepest_parser=ArgumentParser(prog='gcloud.app.deploy', usage=None, description='Deploy the local code and/or configuration of your app to App Engine.', version=None, formatter_class=, conflict_handler='error', add_help=False), account=None, authority_selector=None, authorization_token_file=None, bucket=None, calliope_command=, command_path=['gcloud', 'app', 'deploy'], configuration=None, credential_file_override=None, deployables=[], docker_build=None, document=None, format=None, h=None, help=None, http_timeout=None, ignore_bad_certs=False, image_url=None, log_http=None, project=None, promote=None, quiet=None, server=None, skip_staging=False, stop_previous_version=None, trace_email=None, trace_log=None, trace_token=None, user_output_enabled=None, verbosity='warning', version=None).
2016-09-28 01:23:29,555 DEBUGrootAPI endpoint: [https://appengine.googleapis.com/], API version: [v1beta5]
2016-09-28 01:23:30,527 INFO ___FILE_ONLY___ You are about to deploy the following services:

2016-09-28 01:23:30,527 INFO ___FILE_ONLY___  - treat-web/default/20160928t012329 (from [/Users/rick/Projects/Dynamo/treat-web/app.yaml])
 Deployed URL: [https://treat-web.appspot.com]


2016-09-28 01:23:32,058 DEBUGrootNo bucket specified, retrieving default bucket.
2016-09-28 01:23:32,062 DEBUGrootUsing bucket [gs://staging.treat-web.appspot.com/].
2016-09-28 01:23:33,048 INFO ___FILE_ONLY___ Beginning deployment of service [default]...

2016-09-28 01:23:33,048 DEBUGrootNo staging command found for runtime [python27] and environment [STANDARD].
2016-09-28 01:23:33,055 INFO rootIgnoring file [.DS_Store]: File matches ignore regex.
2016-09-28 01:23:33,055 INFO rootIgnoring file [.babelrc]: File matches ignore regex.
2016-09-28 01:23:33,055 INFO rootIgnoring file [.bootstraprc]: File matches ignore regex.
2016-09-28 01:23:33,055 INFO rootIgnoring file [.eslintrc]: File matches ignore regex.
2016-09-28 01:23:33,055 INFO rootIgnoring directory [.git]: Directory matches ignore regex.
2016-09-28 01:23:33,055 INFO rootIgnoring file [.gitignore]: File matches ignore regex.
2016-09-28 01:23:33,055 INFO rootIgnoring directory [.idea]: Directory matches ignore regex.
2016-09-28 01:23:33,055 INFO rootIgnoring file [.tern-project]: File matches ignore regex.
2016-09-28 01:23:33,056 INFO rootIgnoring directory [.vscode]: Directory matches ignore regex.
2016-09-28 01:23:33,056 INFO rootIgnoring file [README.md]: File matches ignore regex.
2016-09-28 01:23:33,056 INFO rootIgnoring file [app.yaml]: File matches ignore regex.
2016-09-28 01:23:33,058 INFO rootIgnoring file [prod-server.js]: File matches ignore regex.
2016-09-28 01:23:33,058 INFO rootIgnoring file [server.js]: File matches ignore regex.
2016-09-28 01:23:33,058 INFO rootIgnoring file [webpack/common.config.js]: File matches ignore regex.
2016-09-28 01:23:33,058 INFO rootIgnoring file [webpack/dev.config.js]: File matches ignore regex.
2016-09-28 01:23:33,058 INFO rootIgnoring file [webpack/prod.config.js]: File matches ignore regex.
2016-09-28 01:23:33,058 INFO rootIgnoring directory [static/images]: Directory matches ignore regex.
2016-09-28 01:23:33,059 INFO rootIgnoring directory [src/actions]: Directory matches ignore regex.
2016-09-28 01:23:33,059 INFO rootIgnoring directory [src/api]: Directory matches ignore regex.
2016-09-28 01:23:33,059 INFO rootIgnoring directory [src/components]: 

[google-appengine] Re: Running PHP app in Google App Engine Flexible Environment gcloud app deploy failed, But local working fine

2016-09-28 Thread Dhandapani Sattanathan
I want to install PHP 7 IN GAE. 

https://github.com/GoogleCloudPlatform/php-docker/tree/master/php-nginx#change-the-php-version
 


using this above link i changed. Is this correct? Or Any other way to 
install PHP 7 IN GAE ?

Plz help me to solve this!.

Thanks in advance


On Wednesday, September 28, 2016 at 3:28:54 PM UTC+5:30, Dhandapani 
Sattanathan wrote:
>
> I want to use Google App engine FE to run PHP app.
>
> I tried the sample hello world as per the  below link
>
> https://cloud.google.com/php/getting-started/hello-world
>
>
> 1. I tried the following steps in my local
>
>
>
> 1.Created a project in Cloud Platform Console.
>
> 2.Under App Engine location, selected a United States location.
>
> 3. Gave project name as ‘ TEST-FE.
>
> 4. Installed Google Cloud SDK 
>
>
> Using Google Cloud SDK  , Steps i did.
>
>
>
> Welcome to the Google Cloud SDK! Run "gcloud -h" to get the list of 
> available commands.
>
> C:\Program Files (x86)\Google\Cloud SDK>cd /..
>
>
> C:\>git clone https://
> github.com/GoogleCloudPlatform/getting-started-php.git
>
>
> 09/27/2016  05:22 PM  appengine-custom-runtimes-samples
>
> 09/28/2016  10:30 AM  getting-started-php
>
>
> C:\>cd getting-started-php
>
>
> C:\getting-started-php>dir
>
> Directory of C:\getting-started-php
>
>
> 09/28/2016  10:30 AM  .
>
> 09/28/2016  10:30 AM  ..
>
> 09/28/2016  10:30 AM   474 .coveralls.yml
>
> 09/28/2016  10:30 AM   137 .gitignore
>
> 09/28/2016  10:30 AM 1,343 .travis.yml
>
> 09/28/2016  10:30 AM  1-hello-world
>
> 09/28/2016  10:30 AM  2-structured-data
>
> 09/28/2016  10:30 AM  3-cloud-storage
>
> 09/28/2016  10:30 AM  4-auth
>
> 09/28/2016  10:30 AM  5-logging
>
> 09/28/2016  10:30 AM  6-pubsub
>
> 09/28/2016  10:30 AM 1,661 CONTRIBUTING.md
>
> 09/28/2016  10:30 AM11,558 LICENSE
>
> 09/28/2016  10:30 AM  optional-compute-engine
>
> 09/28/2016  10:30 AM  optional-container-engine
>
> 09/28/2016  10:30 AM 2,527 README.md
>
> 09/28/2016  10:30 AM  testing
>
> 09/28/2016  10:30 AM 1,676 TRAVIS.md
>
> 09/28/2016  10:30 AM  _tuts
>
>7 File(s) 19,376 bytes
>
>   12 Dir(s)  816,290,033,664 bytes free
>
> C:\getting-started-php>cd 1-hello-world
>
> C:\getting-started-php\1-hello-world>composer install
>
> Loading composer repositories with package information
>
> Installing dependencies (including require-dev) from lock file
>
>   - Installing symfony/routing (v3.0.2)
>
> Downloading: 100%
>
>   - Installing symfony/http-foundation (v3.0.2)
>
> Downloading: 100%
>
>   - Installing symfony/event-dispatcher (v3.0.2)
>
> Downloading: 100%
>
>   - Installing psr/log (1.0.0)
>
> Downloading: 100%
>
>   - Installing symfony/debug (v3.0.2)
>
> Downloading: 100%
>
>
>
>
>   - Installing symfony/http-kernel (v3.0.2)
>
> Downloading: 100%
>   - Installing pimple/pimple (v1.1.1)
>
> Downloading: 100%
>
>   - Installing silex/silex (v1.3.5)
>
> Downloading: 100%
>
>   - Installing symfony/polyfill-mbstring (v1.1.0)
>
> Downloading: 100%
>
>   - Installing symfony/dom-crawler (v3.0.2)
>
> Downloading: 100%
>
>   - Installing symfony/css-selector (v2.8.2)
>
> Downloading: 100%
>
>   - Installing symfony/browser-kit (v3.0.2)
>
> Downloading: 100%
>
>   - Installing psr/http-message (1.0)
>
> Downloading: 100%
>
>   - Installing guzzlehttp/psr7 (1.2.2)
>
> Downloading: 100%
>
>   - Installing guzzlehttp/promises (1.0.3)
>
> Downloading: 100%
>
>   - Installing guzzlehttp/guzzle (6.1.1)
>
> Downloading: 100%
>
>   - Installing fabpot/goutte (v3.1.2)
>
> Downloading: 100%
>
>   - Installing behat/mink (v1.7.0)
>
> Downloading: 100%
>
>   - Installing behat/mink-browserkit-driver (v1.3.1)
>
> Downloading: 100%
>
>   - Installing behat/mink-goutte-driver (v1.2.0)
>
> Downloading: 100%
>
>   - Installing phpdocumentor/reflection-docblock (2.0.4)
>
> Downloading: 100%
>
>   - Installing phpunit/php-token-stream (1.4.8)
>
> Downloading: Failed
>
> Downloading: 100%
>
>   - Installing symfony/yaml (v3.0.2)
>
> Downloading: 100%
>
>
>   - Installing sebastian/version (1.0.6)
>
> Downloading: 100%
>
>   - Installing sebastian/global-state (1.1.1)
>
> Downloading: 100%
>
>
>
>
>   - Installing sebastian/recursion-context (1.0.2)
>
> Downloading: 100%
>
>
>
>
>   - Installing sebastian/exporter (1.2.1)
>
> Downloading: 100%
>
>
>
>
>   - Installing sebastian/environment (1.3.3)
>
> Downloading: 100%
>
>
>
>
>   - Installing sebastian/diff (1.4.1)
>
> Downloading: 100%
>
>
>
>
>   - Installing sebastian/comparator (1.2.0)
>
> Downloading: 100%
>
>
>
>
>   - Installing phpunit/php-text-template (1.2.1)
>
> Downloading: 100%
>
>
>
>
>   - Installing