Maybe related: 

Our instance count exploded to over 100 instances while we normally use 2 
or 3. It happened about 6 hours ago, and average latency went to 2s instead 
of 300ms. It's now slowly going back to normal.

Also, the memcache status page shows a spike. I'm guessing App Engine has 
another of these days, and it might not be anything in your code at all.





On Friday, January 24, 2014 12:47:20 PM UTC+1, Tapir wrote:
>
> Here are two screnshots of instance lists, http://imgur.com/a/Ts6O0,
> in both cases, gae stole me about 20 minutes computing money.
>
>
>
> On Friday, January 24, 2014 7:40:02 PM UTC+8, Tapir wrote:
>
>> My settings works well before I converted projects into the modules style.
>> But after the conversion, the app engine scheduler behavior changes.
>> It seems the app engine scheduler treats modules style apps and old style 
>> apps differently.
>>
>> On Friday, January 24, 2014 7:36:38 PM UTC+8, Tapir wrote:
>>
>>>
>>>
>>> On Friday, January 24, 2014 6:48:28 PM UTC+8, Ian Marshall wrote:
>>>>
>>>> Have you tried something like (we cannot see all your settings):
>>>>
>>>>   <appengine-web-app xmlns="http://appengine.google.com/ns/1.0";>
>>>>     [...]
>>>>     <threadsafe>true</threadsafe>
>>>>     <automatic-scaling>
>>>>       <min-idle-instances>1</min-idle-instances>
>>>>       <max-idle-instances>automatic</max-idle-instances>
>>>>       <min-pending-latency>15.0s</min-pending-latency>
>>>>       <max-pending-latency>automatic</max-pending-latency>
>>>>       <max-concurrent-requests>50</max-concurrent-requests>
>>>>     </automatic-scaling>
>>>>   </appengine-web-app>
>>>>
>>>>
>>> Thanks for the suggestion.
>>>
>>> Ok, I set max-pending-latency and max-concurrent-requests as your 
>>> example. But I doubt there are any differences from the last version. In 
>>> fact max-concurrent-requests should be about 5. 
>>>
>>> The min-pending-latency value is still 2.7 seconds, for I hope dynamic 
>>> instances still can be spawned WHEN THEY ARE REALLY NEEDED.
>>>
>>> I still keep max-idle-instances as 1 for I don't want to there are 2 and 
>>> more resident instances.
>>>
>>> Here is the full settings:
>>>
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0";>
>>>  <application>{{app_id}}</application>
>>>    <module>default</module>
>>>  <version>{{app_version}}</version>
>>>  
>>>  <!-- loading faster -->
>>>   <precompilation-enabled>true</precompilation-enabled>
>>>   
>>>  <!-- warmup -->
>>>   <warmup-requests-enabled>true</warmup-requests-enabled>
>>>   
>>>   <!-- concurrentcy -->
>>>   <threadsafe>true</threadsafe> 
>>>   
>>>   <!-- concurrentcy -->
>>>   <sessions-enabled>true</sessions-enabled>
>>>    
>>>   <inbound-services>
>>>     <service>channel_presence</service>
>>>   </inbound-services>
>>>   
>>>   <!-- scale settings -->
>>>   
>>>   <instance-class>F1</instance-class>
>>>   <automatic-scaling>
>>>     <min-idle-instances>1</min-idle-instances>
>>>     <max-idle-instances>1</max-idle-instances>
>>>     <min-pending-latency>2730ms</min-pending-latency>
>>>     <max-pending-latency>automatic</max-pending-latency>
>>>     <max-concurrent-requests>50</max-concurrent-requests>
>>>   </automatic-scaling>
>>>  
>>>   <!-- Configure java.util.logging -->
>>>   <system-properties>
>>>     <property name="java.util.logging.config.file" 
>>> value="WEB-INF/logging.properties"/>
>>>   </system-properties>
>>>  
>>>  <static-files>
>>>   <include path="/favicon.ico" />
>>>   <include path="/crossdomain.xml" />
>>>   <include path="/css/**.*" expiration="1d"/>
>>>   <include path="/swfs/**.swf" expiration="365d" />
>>>   <include path="/js/**.js" expiration="1d" />
>>>   <include path="/images/**.ico" expiration="1d" />
>>>   <include path="/images/**.png" expiration="1d" />
>>>   <include path="/images/**.gif" expiration="1d" />
>>>   <include path="/images/**.jpg" expiration="1d" />
>>>   <include path="/htmls/**.i*" expiration="1d" />
>>>  </static-files>
>>>  
>>> </appengine-web-app>
>>>  
>>>
>>>> to minimise the number of application instances spawned?
>>>> On Friday, 24 January 2014 02:17:50 UTC, Tapir wrote:
>>>>>
>>>>> For a website with 1000 requests per days (300 pages), I have tried my 
>>>>> best to limit the number of simultaneous running instances.
>>>>> Here is the settings:
>>>>>
>>>>> <?xml version="1.0" encoding="utf-8" standalone="no"?>
>>>>> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0";>
>>>>>   <application>youyards</application>
>>>>>   <!--Other settings here...-->
>>>>>   <automatic-scaling>
>>>>>     <min-idle-instances>1</min-idle-instances>
>>>>>     <max-idle-instances>1</max-idle-instances>
>>>>>     <min-pending-latency>2.7s</min-pending-latency>
>>>>>   </automatic-scaling>
>>>>> </appengine-web-app>
>>>>>  
>>>>> But you scheduler will always spawn useless dynamic instances so that 
>>>>> the "Frontend Instance Hours" will always exceeds 28 hours each day. 
>>>>>
>>>>> Hi, gea team, I beg beg beg you, pls help tweak the settings so that 
>>>>> the "Frontend Instance Hours" for my project each days will be less than 
>>>>> 28 
>>>>> hours. Thank thank thanks!
>>>>>
>>>>> On Friday, January 24, 2014 9:43:44 AM UTC+8, Tapir wrote:
>>>>>
>>>>>> All the dynamic instances you spawned all just handle only one 
>>>>>> /_ah/warmup request. 
>>>>>> After this request, they do nothing but still running there for many 
>>>>>> minutes even hours!
>>>>>> You are wasting/stealing my money!
>>>>>>
>>>>>>

-- 
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 http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to