[Standard App Engine] cloud logging performance

72 views
Skip to first unread message

Azrael Seoeun Park

unread,
Nov 30, 2016, 10:03:34 AM11/30/16
to Google App Engine
I am using cloud logging (java, google-api-services-logging:v2beta1-rev23-1.22.0) in Standard App Engine.

When I write a single log entry, it takes almost 120ms.
Following is the example code:

------------------------------------------------------------
long start = System.currentTimeMillis();
WriteLogEntriesRequest content = (new WriteLogEntriesRequest()).setEntries(entries);
WriteLogEntriesResponse response = logging.entries().write(content).execute();
long end = System.currentTimeMillis();
logger.info("---- duration = {}", (end - start));
------------------------------------------------------------

I am wondering the 120ms is the typical time to take.
If it is, I have to change the way to write log entry for performance.

Is there any way to reduce the latency time to write the logEntry, such as async way?

Thanks in advance.

Nick (Cloud Platform Support)

unread,
Dec 5, 2016, 4:41:25 PM12/5/16
to Google App Engine
Is this happening every time, or was it only observed a few times?
Reply all
Reply to author
Forward
0 new messages