[google-appengine] Re: Google Cloud Stackdriver Profiling Nodejs which documentation is right regarding logLevel?

2018-04-18 Thread 'Katayoon (Cloud Platform Support)' via Google App Engine
The sample 

 
is based on the Alpha release of Stackdriver Profiler, while the product’s 
documentation  is 
on the Beta release.


On Wednesday, April 18, 2018 at 9:55:48 AM UTC-4, Sudhanshu Gaur wrote:
>
> I was adding Profiling in my Google CLoud Nodejs App and i see here in the 
> documentation docs/profiling-nodejs 
>  that suported 
> loglevels are
>
>- 0: disables all agent logging (default)
>- 1: enables error logging
>- 2: enables warning logging
>- 3: enables debug logging
>
> But here in the Sample App documentation cloud-profiler-nodejs 
>  suported 
> loglevels are
>
>- Setting logLevel to 0 will disable logging
>- 1 sets log level to error
>- 2 sets it to warn
>- 3 sets it to info
>- 4 sets it to debug.
>
> So can anyone please tell me which documentation is right and which one is 
> wrong ?
>

-- 
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/b7714ae5-e796-4ff3-b8cf-d4f64074847a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: PY deployment is not working on code lab

2018-04-18 Thread 'Kenworth (Google Cloud Platform)' via Google App Engine
It appears that you may be experiencing the same "code=13" issue as this 
Google Groups thread 
 or 
this Public Issue Tracker case . 
A possible workaround is to deploy using "appcfg.py". If your issue 
persists, I highly recommend reporting the issue 
on our Public Issue 
Tracker so proper attention can be given to it.

-- 
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/e149dc9a-4d0f-476e-8ab1-c9711071c5f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Newbie: Can I control the IP address where code gets executed from?

2018-04-18 Thread Omar Miah
Navi

Thanks for the replies - so helpful.

I don't really have any more information about the architecture. The code 
is just an idea in my head at the moment. :)

*One other question*: if I fired off 100 instances of the code running in 
at 11.59am, will they all have the same IP address assigned?
It shouldn't matter - but it might! So best for me to know ahead of time.
If I offer a system whereby orders for users are sent at 12.00pm, then I 
would need to fire off all 1 minute earlier.

Thanks.





On Wednesday, 18 April 2018 20:04:58 UTC+1, Navi Aujla (Google Cloud 
Support) wrote:
>
> Hi Omar, 
>
> Public IP addresses are assigned to GCE VM instances from the available 
> pool of External IP addresses 
> , 
> which can be reserved 
> .
>  
> These IPs are based on the regional basis, for example: If hosting VM 
> instance is in europe-west1, then public IP assigned to the VM will be from 
> the same region. However the DNS lookup for the IP assigned (ext) to the VM 
> can map to US Mountain view location, because of the SWIP records. For more 
> information, refer to this stackoverflow thread 
> 
>  where 
> one of our engineer has explained it in more detail. 
>
> However currently, "*App Engine does not currently provide a way to map 
> static IP addresses to an application.*" "App Engine's current range of 
> outgoing IP addresses are encoded in the sender policy framework (SPF) 
> record of _cloud-netblocks.googleusercontent.com. You may need to 
> recursively perform DNS SPF lookups to resolve the entire list of IP 
> ranges."[1 ] 
>
> To answer to your questions, currently, it is not possible to choose the 
> specific external IP address of your choice from the IP pool, however you 
> can reserve the IP address from the region's IP pool. For your second 
> question, can you provide more details? Also, your use case and proposed 
> architecture would be helpful to get better understanding in this case. 
>
> FYI: You can check the list of currently available GCP location and 
> regions.  
>
> [1] https://cloud.google.com/appengine/kb/
>
>
> On Tuesday, April 17, 2018 at 8:05:36 PM UTC-4, Omar Miah wrote:
>>
>> Fady, thanks for the reply, immensely helpful in understanding.
>>
>> The problem is Amazon - nothing else.
>> For code execution and all other factors - yes, I want fastest and best 
>> options.
>>
>> But it's all about Amazon. For a UK user, I don't mind if the server is 
>> in USA - as long as the IP address that is given to Amazon 'appears' to be 
>> a UK one.
>>
>> It's not Amazon as such - they're super helpful and nice.
>> It's the robot computers that will detect activity from Google's servers 
>> in North Korea and freeze the account for days, while the seller cries 
>> saying everything is OK - while banging their head against a wall. 
>>
>> So...
>>
>> 1. Can I control the reported IP number?
>>
>> 2. For one user, can I repeatedly use the same IP number again and again?
>> The idea is that each user will have their own IP address.
>>
>> Let me know what you think.
>>
>> Thanks.
>>
>>
>>
>>
>> On Wednesday, 18 April 2018 00:09:40 UTC+1, Fady (Google Cloud Platform) 
>> wrote:
>>>
>>> Hello Omar,
>>>
>>> In general, using Google Cloud Platform, you may try hosting your 
>>> application in two different ways. The first is by using Google App 
>>> Engine  where the idea is to focus 
>>> on your code and build your application without worrying about the 
>>> underlying infrastructure. However the infrastructure that is hosting your 
>>> app is regional , 
>>> and you have to choose the region before deployment (project creation). For 
>>> example, if you choose to have your application in europe-west2 (London), 
>>> then your customers in London will have faster response time than other 
>>> customers from other parts of the world.  
>>>
>>> The second approach is to manage your own virtual infrastructure through 
>>> Google 
>>> Compute Engine . For example, you 
>>> can create as many VM instances 
>>>  
>>> as you wish in multiple regions 
>>> , and run your 
>>> application accordingly, load balance and autoscale 
>>>  the VMs, use Cloud 
>>> CDN , etc. 
>>>
>>> In both circumstances IP addresses are not the proper resources to 
>>> determine where the underlying 

[google-appengine] Re: Newbie: Can I control the IP address where code gets executed from?

2018-04-18 Thread 'Navi Aujla (Google Cloud Support)' via Google App Engine
Hi Omar, 

Public IP addresses are assigned to GCE VM instances from the available 
pool of External IP addresses 
, 
which can be reserved 
.
 
These IPs are based on the regional basis, for example: If hosting VM 
instance is in europe-west1, then public IP assigned to the VM will be from 
the same region. However the DNS lookup for the IP assigned (ext) to the VM 
can map to US Mountain view location, because of the SWIP records. For more 
information, refer to this stackoverflow thread 

 where 
one of our engineer has explained it in more detail. 

However currently, "*App Engine does not currently provide a way to map 
static IP addresses to an application.*" "App Engine's current range of 
outgoing IP addresses are encoded in the sender policy framework (SPF) 
record of _cloud-netblocks.googleusercontent.com. You may need to 
recursively perform DNS SPF lookups to resolve the entire list of IP 
ranges."[1 ] 

To answer to your questions, currently, it is not possible to choose the 
specific external IP address of your choice from the IP pool, however you 
can reserve the IP address from the region's IP pool. For your second 
question, can you provide more details? Also, your use case and proposed 
architecture would be helpful to get better understanding in this case. 

FYI: You can check the list of currently available GCP location and regions. 
 

[1] https://cloud.google.com/appengine/kb/


On Tuesday, April 17, 2018 at 8:05:36 PM UTC-4, Omar Miah wrote:
>
> Fady, thanks for the reply, immensely helpful in understanding.
>
> The problem is Amazon - nothing else.
> For code execution and all other factors - yes, I want fastest and best 
> options.
>
> But it's all about Amazon. For a UK user, I don't mind if the server is in 
> USA - as long as the IP address that is given to Amazon 'appears' to be a 
> UK one.
>
> It's not Amazon as such - they're super helpful and nice.
> It's the robot computers that will detect activity from Google's servers 
> in North Korea and freeze the account for days, while the seller cries 
> saying everything is OK - while banging their head against a wall. 
>
> So...
>
> 1. Can I control the reported IP number?
>
> 2. For one user, can I repeatedly use the same IP number again and again?
> The idea is that each user will have their own IP address.
>
> Let me know what you think.
>
> Thanks.
>
>
>
>
> On Wednesday, 18 April 2018 00:09:40 UTC+1, Fady (Google Cloud Platform) 
> wrote:
>>
>> Hello Omar,
>>
>> In general, using Google Cloud Platform, you may try hosting your 
>> application in two different ways. The first is by using Google App 
>> Engine  where the idea is to focus 
>> on your code and build your application without worrying about the 
>> underlying infrastructure. However the infrastructure that is hosting your 
>> app is regional , and 
>> you have to choose the region before deployment (project creation). For 
>> example, if you choose to have your application in europe-west2 (London), 
>> then your customers in London will have faster response time than other 
>> customers from other parts of the world.  
>>
>> The second approach is to manage your own virtual infrastructure through 
>> Google 
>> Compute Engine . For example, you can 
>> create as many VM instances 
>>  
>> as you wish in multiple regions 
>> , and run your 
>> application accordingly, load balance and autoscale 
>>  the VMs, use Cloud 
>> CDN , etc. 
>>
>> In both circumstances IP addresses are not the proper resources to 
>> determine where the underlying infrastructure is hosting your application ( 
>> VM instance for example). As a matter of fact, Google Cloud IP addresses 
>> are not specific to a region 
>> ,
>>  
>> and they are usually registered to be originating in the USA ( Mountain 
>> View) despite that the resource using it could be somewhere else. In other 
>> words, your customers can not determine the location of your resource from 
>> an IP address. I hope this answers your question.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and 

[google-appengine] Re: Node standard environment?

2018-04-18 Thread Ben Rometsch
Great - thanks!

On Wednesday, 18 April 2018 16:20:37 UTC+1, Jordan (Cloud Platform Support) 
wrote:
>
> We are indeed working on providing Node.js language support for App Engine 
> Standard. It is still in the early access stage and you can try it by 
> filling out the Early Access request form 
> 
>  which 
> will allow the Quick Start 
> example
>  
> to work for your project. 
>
> There is no official release date ETA yet, but you can follow the Google 
> Cloud Platform Blog  and sign up 
> to receive direct notifications via the Google Cloud Platform Newsletter 
>  to know when it becomes available. 
>

-- 
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/ae36886c-24d7-47fd-8386-a544123534ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Node standard environment?

2018-04-18 Thread 'Jordan (Cloud Platform Support)' via Google App Engine
We are indeed working on providing Node.js language support for App Engine 
Standard. It is still in the early access stage and you can try it by 
filling out the Early Access request form 

 which 
will allow the Quick Start 
example
 
to work for your project. 

There is no official release date ETA yet, but you can follow the Google 
Cloud Platform Blog  and sign up to 
receive direct notifications via the Google Cloud Platform Newsletter 
 to know when it becomes available. 

-- 
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/6e665ec0-b81f-4e19-b20b-1989b39bce51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Google Cloud Stackdriver Profiling Nodejs which documentation is right regarding logLevel?

2018-04-18 Thread Sudhanshu Gaur


I was adding Profiling in my Google CLoud Nodejs App and i see here in the 
documentation docs/profiling-nodejs 
 that suported 
loglevels are

   - 0: disables all agent logging (default)
   - 1: enables error logging
   - 2: enables warning logging
   - 3: enables debug logging

But here in the Sample App documentation cloud-profiler-nodejs 
 suported 
loglevels are

   - Setting logLevel to 0 will disable logging
   - 1 sets log level to error
   - 2 sets it to warn
   - 3 sets it to info
   - 4 sets it to debug.

So can anyone please tell me which documentation is right and which one is 
wrong ?

-- 
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/237168da-98fb-4eea-8a7f-aa932b30c3db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Google Cloud Profiling how to optimize my code by analyzing it?

2018-04-18 Thread Sudhanshu Gaur
@Jordan This is *Heap *Flamegraph. Also, one thing i wanted to ask is why 
there is no *Function* name mentioned in this graph because I can optimize 
my code only if I can see which functions are utilising much *Heap/CPU. *

On Thursday, April 5, 2018 at 12:57:56 AM UTC+5:30, Sudhanshu Gaur wrote:
>
> I am trying to analyse the Google CLoud Stackdriver's Profiling, now can 
> anyone please tell me how can I *Optimize my code* by using this.
>
> Also, i am not seeing any of my function name and all, i don't know what 
> is this _tickCallback and which part of the code it is executing ??
>
> Please help me, anyone.
>
>
>
> 
>
>
>

-- 
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/a2de2b05-fd6c-4c72-af60-58fc30ab6ea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] PY deployment is not working on code lab

2018-04-18 Thread 'Arms Yongyuth' via Google App Engine
Hi, I am running into deployment of this code lab.  It's a standard py  app 
from GCP  I am getting the error below.

%gcloud app deploy app.yaml --verbosity debug
DEBUG: Running [gcloud.app.deploy] with arguments: [--verbosity: "debug", 
DEPLOYABLES:1: "['app.yaml']"]
DEBUG: API endpoint: [https://appengine.googleapis.com/], API version: [v1]
Services to deploy:

descriptor:  [/Users/ayongyuth/Documents/workspace3/ay-codelab/app.yaml]
source:  [/Users/ayongyuth/Documents/workspace3/ay-codelab]
target project:  [ay-codelab]
target service:  [default]
target version:  [20180416t061521]
target url:  [https://ay-codelab.appspot.com]


Do you want to continue (Y/n)?  y

DEBUG: No bucket specified, retrieving default bucket.
DEBUG: Using bucket [gs://staging.ay-codelab.appspot.com].
Beginning deployment of service [default]...
INFO: Ignoring file [conference.pyc]: File matches ignore regex.
INFO: Ignoring file [models.pyc]: File matches ignore regex.
INFO: Ignoring file [settings.pyc]: File matches ignore regex.
INFO: Ignoring file [utils.pyc]: File matches ignore regex.
Some files were skipped. Pass `--verbosity=info` to see which ones.
You may also view the gcloud log file, found at
[/Users/ayongyuth/.config/gcloud/logs/2018.04.16/06.15.20.101298.log].
DEBUG: Could not call git with args ('config', '--get-regexp', 
'remote\\.(.*)\\.url'): Command '['git', 'config', '--get-regexp', 
'remote\\.(.*)\\.url']' returned non-zero exit status 1
INFO: Could not find any remote repositories associated with 
[/Users/ayongyuth/Documents/workspace3/ay-codelab]. Cloud diagnostic tools 
may not be able to display the correct source code for this deployment.
DEBUG: Skipping upload of [static/general/README.md]
DEBUG: Skipping upload of [LICENSE]
DEBUG: Skipping upload of [static/css/angular-bootstrap-calendar.css]
DEBUG: Skipping upload of [static/css/main.css]
DEBUG: Skipping upload of [static/partialsb/schedule.html]
DEBUG: Skipping upload of [static/workingjob/workingjobApp.js]
DEBUG: Skipping upload of 
[static/images/ic_list_black_24dp/android/drawable-xxhdpi/ic_list_black_24dp.png]
DEBUG: Skipping upload of [static/fonts/glyphicons-halflings-regular.woff]
DEBUG: Skipping upload of [static/partialsb/issueMod.html]
DEBUG: Skipping upload of [static/templates/index.htmlKitchen]
DEBUG: Skipping upload of [static/images/ajax-loader.gif]
DEBUG: Skipping upload of [static/partialsb/create_conferences.html]
DEBUG: Skipping upload of [static/js/appn.js]
DEBUG: Skipping upload of [static/images/business1.jpg]
DEBUG: Skipping upload of [static/images/Builder_man_toolbox.jpeg]
DEBUG: Skipping upload of [static/css/angular-bootstrap-calendar.min.css]
DEBUG: Skipping upload of [static/templates/index.htmlDay]
DEBUG: Skipping upload of [static/partialsb/referal.html]
DEBUG: Skipping upload of [static/css/bootstrap-cosmo.css]
DEBUG: Skipping upload of [static/partialsb/issue.html-]
DEBUG: Skipping upload of [utils.py]
DEBUG: Skipping upload of [static/img/business1.jpg]
DEBUG: Skipping upload of [static/demo/index.html-]
DEBUG: Skipping upload of [static/img/favicon.ico]
DEBUG: Skipping upload of [static/css/offcanvas.css]
DEBUG: Skipping upload of [static/bootstrap/css/offcanvas.css]
DEBUG: Skipping upload of [static/bootstrap/css/bootstrap-responsive.css]
...
DEBUG: Skipping upload of [static/partialsb/conference_detail.html]
DEBUG: Skipping upload of [static/partialsb/first.html]
INFO: Incremental upload skipped 100.0% of data
DEBUG: Uploading 0 files to Google Cloud Storage
DEBUG: Using [16] threads
╔╗
╠═ Uploading 0 files to Google Cloud Storage═╣
╚╝
File upload done.
INFO: Manifest: [{'static/general/README.md': {'sourceUrl': 
'https://storage.googleapis.com/staging.ay-codelab.appspot.com/c38f009d5fb2d9256d81f67728feaccda1dc922c',
 
'sha1Sum': 'c38f009d5fb2d9256d81f67728feaccda1dc922c'}, 'LICENSE': 
{'sourceUrl': 
'https://storage.googleapis.com/staging.ay-codelab.appspot.com/23a440c301dda1b710f7b694303bfe1f1330aa6f',
 
'sha1Sum': '23a440c301dda1b710f7b694303bfe1f1330aa6f'}, 
'static/css/angular-bootstrap-calendar.css': {'sourceUrl': 
'https://storage.googleapis.com/staging.ay-codelab.appspot.com/46807b13e9054c35e43ddecd65887145e052fdb1',
 
'sha1Sum': '46807b13e9054c35e43ddecd65887145e052fdb1'}, 
'static/css/main.css': {'sourceUrl': 
'https://storage.googleapis.com/staging.ay-codelab.appspot.com/8c1ae9a7a86ebefbf6b6203d8cc1c735a599da11',
 
'sha1Sum': '8c1ae9a7a86ebefbf6b6203d8cc1c735a599da11'}, 
'static/partialsb/schedule.html': {'sourceUrl': 
'https://storage.googleapis.com/staging.ay-codelab.appspot.com/ad641223b0ebc4af80bf74f1e5c26a578de1b787',
 
'sha1Sum': 'ad641223b0ebc4af80bf74f1e5c26a578de1b787'}, 
'static/workingjob/workingjobApp.js': {'sourceUrl': 
'https://storage.googleapis.com/staging.ay-codelab.appspot.com/90f46f7ece20c2e5a3c1e941f43831cdd47960d3',
 
'sha1Sum': 

[google-appengine] Node standard environment?

2018-04-18 Thread Ben Rometsch
https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/appengine/hello-world/standard/app.yaml

Can anyone comment on this? Is this happening?

-- 
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/75de19f2-825a-4135-bf0d-57e5affaa329%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Marketplace Authorization for apps (Java)

2018-04-18 Thread Álvaro Jose Egea Almagro
thx

El miércoles, 18 de abril de 2018, 1:25:41 (UTC+2), Kamran (Google Cloud 
Support) escribió:
>
>
> This looks like a question about G Suite Marketplace applications. I'd 
> recommend posting this issue on Stackoverflow.com and tag it with 
> *google-apps-marketplace 
> . *There you'll have access to a large community of enthusiasts and 
> experts to share ideas with and get support for this product.
>
>
>
> On Tuesday, April 17, 2018 at 9:13:14 AM UTC-4, Álvaro Jose Egea Almagro 
> wrote:
>>
>> Hello,
>>
>> I am trying to make an application that I can put in the marketplace to 
>> read content from a spreadsheet.
>>
>> In my local developments in java, my authorization is always of the 
>> following type:
>>
>>
>> credential = new GoogleCredential.Builder ()
>> .setTransport (HTTP_TRANSPORT)
>> .setJsonFactory (JSON_FACTORY)
>> .setServiceAccountId ("sample")
>> .setServiceAccountPrivateKeyFromP12File (f)
>> .setServiceAccountScopes (SCOPES)
>> .setServiceAccountUser ("sample")
>> .build ();
>>
>>
>> How do you do to install the app and authorize have all the permissions, 
>> how is that code to get credentials without using a p12?
>>
>> Thank you very much
>>
>

-- 
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/54c00f90-82c9-4897-809a-44a078985717%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.