On Nov 24, 10:41 am, Sahid Orentino Ferdjaoui
<[email protected]> wrote:
>
> So I would like know if GAE flush memcached (all items stored into the
> severs) in a particular time of the day.


Memcache is flushed when the servers are upgraded, but I don't think
it is policy to flush regularly at a particular time of the day.


> Because;
> - i have a big number of deadline in a particular moment of the day
> and so i would like know if that comes from here.


Look at the stack trace for the DeadlineExceededError's and see what
the code was doing immediately before this error. Was it running a
query which would usually be cached?

It is easier to check this kind if thing if you log the progress of
all your RPC calls. Something like this:


from google.appengine.api import (
    apiproxy_stub_map,
    quota
)

def _log_api_pre_call(service, call, request, response, rpc):
    logging.debug('RPC(pre) %s.%s', service, call)

def _log_api_post_call(service, call, request, response, rpc, error):
    if service == 'datastore_v3' and call in ('Put', 'Touch',
'Delete', 'Commit'):
        cost = response.cost()
        cost_info = ' idx_writes=%d entity_writes=%d entity_bytes=%d'
% (
            cost.index_writes(), cost.entity_writes(),
cost.entity_write_bytes())
    else:
        cost_info = ''

    logging.info('RPC(post) %s.%s %.3fapi_cpu_ms%s',
                 service, call,
 
quota.megacycles_to_cpu_seconds(rpc.cpu_usage_mcycles),
                 cost_info)

apiproxy_stub_map.apiproxy.GetPreCallHooks().Append(
    '_log_api_pre_call', _log_api_pre_call)

apiproxy_stub_map.apiproxy.GetPostCallHooks().Append(
    '_log_api_post_call', _log_api_post_call)



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to