google-app-engine

What is the best way to profile/optimize google app engine application?

不羁岁月 提交于 2020-01-10 07:44:29
问题 Currently I am working on new App Engine application. Unfortunately it seems that my application uses to lot of resources even for relatively small user number. So I need to determine its bottle necks and optimize them. 回答1: Appstats: RPC Instrumentation for Google App Engine. It is being developed by Guido himself. alt text http://img130.imageshack.us/img130/526/timelinea.png EDIT : I believe AppStats will not work with Java, but there are some tips here. 回答2: The Eclipse plugin for the

Google app engine entity groups

十年热恋 提交于 2020-01-10 07:42:07
问题 As far as I understand from app engine tutorial, entity groups exist only for the purpose of transactions: "Only use entity groups when they are needed for transactions" (from the tutorial) The definition of being in the same entity group is to have the same root.. In that case, what is the use of having more than 1 hierarchy level? That is, why should I use "A -> B -> C" (A is the root, B his son, C his grandson) instead of "A -> B ; A -> C" ? (A, B and C are still in the same entity group

Specifying retry limit for tasks queued using GAE deferred library

你离开我真会死。 提交于 2020-01-10 06:04:25
问题 We are offloading certain time consuming tasks using the GAE deferred library and would like to know how can we set the retry limit for those offloaded tasks. We are running into issues where certain tasks are retried for ever as the task would never succeed due to some un recoverable exception. 回答1: According to the documentation the _retry_options of the deferred.defer API can be used to pass retry options to the associated Task() instance: _countdown, _eta, _headers, _name, _target,

Invalid credentials: Google API calendar

痴心易碎 提交于 2020-01-10 05:49:05
问题 I am new to using Google APIs. I followed steps to setup Google Calendar sample code in eclipse using Google client library. I deployed the code to app engine using the cmd command- mvn appengine:update (when tried to deploy through eclipse it gave me an error saying the project is not an App Engine project). Deploying through command line worked and I could launch my web application. Suddenly, after few API request calls, started getting invalid credentials error: error:401 domain:global

ImportError: no module named pwd in app engine

偶尔善良 提交于 2020-01-10 05:40:09
问题 I'm trying to run a python flask based application on google app engine using cloud datastore. I'm following the bookshelf example - https://cloud.google.com/python/getting-started/using-cloud-datastore Everything seems to work in local machine but on app engine, I'm getting ImportError: No module named pwd , which is being imported by oauth2client library. Is there anything I'm missing. Any help will be appreciated. The question referenced as duplicate is different. The application there

How can I deploy direct from Google Cloud Source Repository to Google App Engine?

前提是你 提交于 2020-01-10 05:38:45
问题 Google offers git -> App Engine and git <-> Source Repository , so presumably somewhere it offers Source Repository -> App Engine . But I can't find where... even after twice reading all the Source Repository and App Engine docs I can find, inc. https://cloud.google.com/source-repositories/docs/ . I'd guess the procedure could be How to manually deploy direct from Bitbucket to Google App Engine? modified to access the SR files. But I can find the SR files in the GCS VM. Deleting all the $HOME

Cannot fetch URLs from GAE local environment

谁说胖子不能爱 提交于 2020-01-10 05:08:26
问题 I'm getting the following error when trying to fetch an URL with urllib2 in the google app engine: error: An error occured while connecting to the server: Unable to fetch URL: http://www.google.com Error: [Errno 10106] getaddrinfo failed This is the code calling the urllib2 open read methods: def get(self): self.write(urllib2.urlopen("http://www.google.com").read()) self.render_index() Nothing fancy, just a call to the library inside the main handler to ouptut the fetched text. My PC resolves

Google app engine php executable path not found

廉价感情. 提交于 2020-01-10 04:09:26
问题 Followed the steps given on the official google app engine page for installing the sdk for php-> https://developers.google.com/appengine/docs/php/gettingstarted/helloworld but I get this error in my browser on opening localhost. The path specified with the --php_executable_path flag () does not exist. How to set it ? Installed on Ubuntu. 回答1: When starting dev appserver via the script one can pass in --php_executable_path pointing to the location of your php executable. The reason for the

How to get current UK time in Google App Engine

為{幸葍}努か 提交于 2020-01-10 04:05:47
问题 Under python on my machine I can run datetime.now() to get the local time. If I inspect time.daylight flag it is set to 1 because we are currently in July (hence daylight saving). But if I run datetime.now() on Google App Engine (including the dev server) it doesn't account for daylight saving (british summer time) and returns the wrong time (13:47 instead of 14:47). If I inspect time.daylight in GAE it is set to 0 . How can I get the correct local time? Do I need to change the timezone on my

How to get current UK time in Google App Engine

此生再无相见时 提交于 2020-01-10 04:05:11
问题 Under python on my machine I can run datetime.now() to get the local time. If I inspect time.daylight flag it is set to 1 because we are currently in July (hence daylight saving). But if I run datetime.now() on Google App Engine (including the dev server) it doesn't account for daylight saving (british summer time) and returns the wrong time (13:47 instead of 14:47). If I inspect time.daylight in GAE it is set to 0 . How can I get the correct local time? Do I need to change the timezone on my