Re: [google-appengine] Re: App Engine doesn't downscale when CPU utilisation is below target_utilization

2019-08-29 Thread Harshit Dwivedi
Thanks but this seems to be available only for the Standard environment.
I'm currently using Appengine in the flex environment.

On Fri, Aug 30, 2019, 7:21 AM 'Diogo Almeida' via Google App Engine <
google-appengine@googlegroups.com> wrote:

> Other than the parameter you are already using, I recommend you check how
> auto scaling services use dynamic instances
> 
> and the parameter you can use in the app.yaml.
>
> On Thursday, August 29, 2019 at 12:36:08 PM UTC-4, Harshit Dwivedi wrote:
>>
>> Thanks George for the explanation.
>> Is there a way I can tweak the autoscaling params for my appengine flex
>> deployment?
>>
>> As far as I can see, it only allows me to modify the scaling based on the
>> CPU utilization.
>>
>> On Thu, Aug 29, 2019 at 4:46 AM 'George (Cloud Platform Support)' via
>> Google App Engine  wrote:
>>
>>> Hello Harshit,
>>>
>>> You seem to imply that downscaling depends strictly on CPU utilization
>>> levels. This is in fact not exactly the case, there are more factors
>>> involved; following policies may be adopted:
>>>
>>> - Average CPU utilization (not identical to target utilization)
>>> - HTTP load balancing serving capacity, which can be based on either
>>> utilization or requests per second.
>>> - Stackdriver Monitoring metrics.
>>>
>>> Scaling algorithms are not easy to describe. One factor that comes to
>>> mind is historic in nature: CPU charge for a certain past period, for
>>> instance. You may find related detail in the Scaling characteristics
>>> 
>>> sub-chapter of the "App Engine Flexible Environment for Users of App Engine
>>> Standard Environment", which refers to Autoscaling policy and target
>>> utilization 
>>> .
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-appengine/9e9c9047-5b13-4a9e-8cf7-b161124d3d8e%40googlegroups.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/4d7b4fde-207d-4e4b-9743-c8b90c99a1cc%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAErTERc%2BG_SSRV6Xep%2B0NPuTdL_b5NNYeJNsLK6De_YY%2Bq8nAg%40mail.gmail.com.


[google-appengine] Re: Is headless Chrome really available on App Engine/Cloud Functions?

2019-08-29 Thread 'Diogo Almeida' via Google App Engine
The link to the article “Introducing headless Chrome support in Cloud 
Functions and App Engine” is not working and I could not find it anywhere 
even though the link to it is here 
.
 
I inquired the blog administrators whether it will be republished and you 
can follow up on this issue tracker 
.

On Wednesday, August 28, 2019 at 11:34:53 PM UTC-4, Masataka Yakura wrote:
>
> Hello George,
>
> On Thursday, August 29, 2019 at 5:14:58 AM UTC+9, George (Cloud Platform 
> Support) wrote:
>>
>> Hello Masataka, 
>>
>> Headless Chrome is indeed available in Cloud Functions, you may check 
>> sub-chapter 
>> 
>>  
>> "Support for headless Chrome and additional system libraries" on "Cloud 
>> Functions serverless platform is generally available" page. You can easily 
>> convince yourself by creating a Cloud Function and importing Puppeteer. You 
>> may also read related material on the web, for instance "running 
>> puppeteer code in firebase cloud functions 
>> 
>> ". 
>>
>
> Thanks! That helps me a lot.
>
> What happened to the blog entry? Just curious. It's worth republishing. 
>
> Anyways. Thank you.
>
> Masataka
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/1b721973-f623-444a-9648-6b0c6512fb95%40googlegroups.com.


Re: [google-appengine] Re: App Engine doesn't downscale when CPU utilisation is below target_utilization

2019-08-29 Thread 'Diogo Almeida' via Google App Engine
Other than the parameter you are already using, I recommend you check how 
auto scaling services use dynamic instances 

 
and the parameter you can use in the app.yaml.

On Thursday, August 29, 2019 at 12:36:08 PM UTC-4, Harshit Dwivedi wrote:
>
> Thanks George for the explanation.
> Is there a way I can tweak the autoscaling params for my appengine flex 
> deployment?
>
> As far as I can see, it only allows me to modify the scaling based on the 
> CPU utilization.
>
> On Thu, Aug 29, 2019 at 4:46 AM 'George (Cloud Platform Support)' via 
> Google App Engine  wrote:
>
>> Hello Harshit, 
>>
>> You seem to imply that downscaling depends strictly on CPU utilization 
>> levels. This is in fact not exactly the case, there are more factors 
>> involved; following policies may be adopted:
>>
>> - Average CPU utilization (not identical to target utilization)
>> - HTTP load balancing serving capacity, which can be based on either 
>> utilization or requests per second.
>> - Stackdriver Monitoring metrics. 
>>
>> Scaling algorithms are not easy to describe. One factor that comes to 
>> mind is historic in nature: CPU charge for a certain past period, for 
>> instance. You may find related detail in the Scaling characteristics 
>> 
>>  
>> sub-chapter of the "App Engine Flexible Environment for Users of App Engine 
>> Standard Environment", which refers to Autoscaling policy and target 
>> utilization .
>>
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/9e9c9047-5b13-4a9e-8cf7-b161124d3d8e%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4d7b4fde-207d-4e4b-9743-c8b90c99a1cc%40googlegroups.com.


[google-appengine] Re: How to add new domain to app engine

2019-08-29 Thread 'Diogo Almeida' via Google App Engine
I just tested on my end and it seems that “projektecommerce.pl” is now 
mapping to your application.

Note that Google Groups is intended only for discussions about the Google 
Cloud Platform products. For issues like the one you reported here, in case 
additional investigation is needed, you will need to file a case instead 
[1].

[1] https://cloud.google.com/support-hub/


On Thursday, August 29, 2019 at 12:35:57 PM UTC-4, Szymon Ciba wrote:
>
> Im waiting, but i still can't open my domain projektecommerce.pl. How i 
> can add domain to service?
>
> W dniu środa, 28 sierpnia 2019 18:31:57 UTC+2 użytkownik Szymon Ciba 
> napisał:
>>
>> Hello,
>>
>> I have my engine app here:
>> http://inplitest.appspot.com/
>>
>> And i want to change my domain from inplitest.appspot.com to ,,
>> projektecommerce.pl" but i can't do this...
>>
>> Can you help me?
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/beb7d7f2-2a23-4c3d-993b-95b52ba905ea%40googlegroups.com.


[google-appengine] Re: nginx 502 error

2019-08-29 Thread 'George (Cloud Platform Support)' via Google App Engine
You may check replies and developments in your other, identical posting 

. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/39912732-9ccd-41a3-a822-9690ac3aca5d%40googlegroups.com.


[google-appengine] Re: Nginx 502 Error

2019-08-29 Thread 'George (Cloud Platform Support)' via Google App Engine
You may follow developments in your other, parallel posting 

. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/11c61958-1fd1-4c5a-b26d-b6211d90160c%40googlegroups.com.


[google-appengine] Re: Nginx error

2019-08-29 Thread 'George (Cloud Platform Support)' via Google App Engine
502 (BAD GATEWAY) is returned by nginx if it fails to contact your service. 
This usually happens if your app stopped listening, when instance has been 
shut down or did not start. 

Investigation progress depends on information such as: what app engine 
service is affected by this issue, name of services, what time the errors 
started appearing. A simple fix, if you have deployed a new version 
recently, would be rolling it back. Some of the needed information items 
are of private nature, and should not be posted in a publicly accessible 
forum. You are therefore encouraged to open an issue, with more relevant 
information, in the Public Issue Tracker , 
and set communication to "private", prior to posting private or sensitive 
information. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3dcb2a35-aa02-4815-adea-f1d49ecbbe9d%40googlegroups.com.


[google-appengine] Nginx 502 Error

2019-08-29 Thread curvelogics clg

Hi I am Using app engine to explore django rest api. After deploying gcloud 
app, getting 502 error. Is it the problem in nginx config. Can i edit this 
manually. Can u please 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/21ef500e-9492-4c96-89e7-296bab7d4e42%40googlegroups.com.


Re: [google-appengine] Re: App Engine doesn't downscale when CPU utilisation is below target_utilization

2019-08-29 Thread Harshit Dwivedi
Thanks George for the explanation.
Is there a way I can tweak the autoscaling params for my appengine flex
deployment?

As far as I can see, it only allows me to modify the scaling based on the
CPU utilization.

On Thu, Aug 29, 2019 at 4:46 AM 'George (Cloud Platform Support)' via
Google App Engine  wrote:

> Hello Harshit,
>
> You seem to imply that downscaling depends strictly on CPU utilization
> levels. This is in fact not exactly the case, there are more factors
> involved; following policies may be adopted:
>
> - Average CPU utilization (not identical to target utilization)
> - HTTP load balancing serving capacity, which can be based on either
> utilization or requests per second.
> - Stackdriver Monitoring metrics.
>
> Scaling algorithms are not easy to describe. One factor that comes to mind
> is historic in nature: CPU charge for a certain past period, for instance.
> You may find related detail in the Scaling characteristics
> 
> sub-chapter of the "App Engine Flexible Environment for Users of App Engine
> Standard Environment", which refers to Autoscaling policy and target
> utilization .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/9e9c9047-5b13-4a9e-8cf7-b161124d3d8e%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAErTERe%3DWEzk7VGPmx%2BJUvMSk6OCtBZMrDhshAnkHCB18WZmWQ%40mail.gmail.com.


[google-appengine] Re: How to add new domain to app engine

2019-08-29 Thread Szymon Ciba
Im waiting, but i still can't open my domain projektecommerce.pl. How i can 
add domain to service?

W dniu środa, 28 sierpnia 2019 18:31:57 UTC+2 użytkownik Szymon Ciba 
napisał:
>
> Hello,
>
> I have my engine app here:
> http://inplitest.appspot.com/
>
> And i want to change my domain from inplitest.appspot.com to ,,
> projektecommerce.pl" but i can't do this...
>
> Can you help me?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0afcb25d-285d-4691-b8bd-e74631a62381%40googlegroups.com.


[google-appengine] Re: How do I calculate how much AppEngine is costing me?

2019-08-29 Thread Jasmine Sultanah
Thanks Diogo. I have read all these links. My question is how do I find out 
how many cores per hour i'm using, how much memory per hour and how much 
persistent disk. the app is already running and I can see the dashboards in 
AppEngine. For example in AppEngine, my memory usage is 800MiB each 
minute,my instances remain at 2, CPU usage is about 5% (is this CPU usage 
of combined CPU for two instances?), my write Disk bytes is 50KiB a 
minute.  How do I translate this information into number of cores per hour, 
persistent disk and memory per hour. thanks

On Thursday, August 29, 2019 at 1:01:29 AM UTC+1, Diogo Almeida wrote:
>
> First off, note that your app.yaml settings use a deprecated version of Go 
> (1.9 ). 
> You can now use versions 1.11 
>  or 
> 1.12 
> .
>
> The documents that go over the version 1.11 and 1.12 provide more details 
> about what the app.yaml settings mean. However, note that not all of the 
> app.yaml settings are directly related to parameters that are used in the 
> calculator. Moreover, there are some parameters in the calculator that are 
> not set in the app.yaml file: region for instance.
>
> That said, note that resources are billed on a per-second basis with a 1 
> minute minimum usage cost, which means that if you want to estimate the 
> cost, you need to estimate how much of the resources your app will need to 
> use and set it up accordingly. The cost for cores and memory per hour as 
> well as persistent disk is explained here 
> 
> .
>
> If you have any other questions about the calculator parameter I suggest 
> you take a look at the document links provided in calculator (the ? button 
> of each parameter).
>
> On Wednesday, August 28, 2019 at 12:31:57 PM UTC-4, Jasmine Sultanah wrote:
>
>> I am using this calculator
>>
>>
>> https://cloud.google.com/products/calculator/#id=ce96468c-3b00-4dd6-920b-e838ab805265
>>
>> I have a version running with these spec
>>
>> runtime: go
>> api_version: go1
>> env: flexible
>> threadsafe: true
>> handlers:
>>   - url: .*
>> script: _go_app
>> secure: always
>> redirect_http_response_code: '301'
>> automatic_scaling:
>>   cool_down_period: 120s
>>   min_num_instances: 2
>>   max_num_instances: 20
>>   cpu_utilization:
>> target_utilization: 0.5
>> network: {}
>>
>> How do I find out all the parameters to put into the appengine calculator?
>> my Location is london, environment is flexible. but where do i find Cores 
>> per hour, memory per hour and persistent disk?
>>
>> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c7b3e827-409c-4c44-8d97-d6680c242cf0%40googlegroups.com.


[google-appengine] nginx 502 error

2019-08-29 Thread curvelogics clg
A django restframework is deployed in app engine and i got an error 502 
nginx bad gateway.
Is it possible to edit nginx configuarion manually.
how to solve this can u please help me

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6bc3c28f-ab25-4034-bcae-f70533f0a728%40googlegroups.com.


[google-appengine] Nginx error

2019-08-29 Thread curvelogics clg
Actually i am using django app in flexible app engine with python 3.7 
runtime
but i get nginx 502 error

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/0b01dc34-03a7-4d5f-9f36-c938ec26d062%40googlegroups.com.


[google-appengine] setting headers - X-Frame-Options

2019-08-29 Thread Rajesh Gupta
Hi,
I am trying to set X-frame-options headers.

I added the following in the appengine-web.xml





 

It is all fine, except for one case.

For example, if I am running local and type
http://localhost: :  Then the headers are not added to the response

However, http://localhost:/index.html, the headers are added to the
response

How can I add the headers in the response for the case '
http://localhost:'

-- 
Rajesh
*www.ServiceFolder.com *
*Field Service Software on Google Cloud Platform and Mobile*

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CA%2BS7ijb8TjmYxiQbhQBKL5A65b0ioekJW67%2BwcHbGrTh%2Bc19Pg%40mail.gmail.com.