[google-appengine] API to get a list of deployed applications to GAE

2013-07-25 Thread e . hossny
Hello All,
 I'm wondering if there is API that can be used by developers to retrieve a 
list of their deployed application to GAE?
 

-- 
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.




[google-appengine] Re: API to get a list of deployed applications to GAE

2013-07-25 Thread e . hossny
Sorry, I forget to tell u that I need a java API for the below purpose

On Thursday, July 25, 2013 12:05:51 PM UTC+2, e.ho...@fci-cu.edu.eg wrote:

 Hello All,
  I'm wondering if there is API that can be used by developers to retrieve 
 a list of their deployed application to GAE?
  


-- 
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.




Re: [google-appengine] Re: Flood of warm up requests!

2013-07-25 Thread Peter Backx
Same issue for me right now. I'm going to try the redeploy trick.

Peter


On Friday, June 28, 2013 1:35:41 AM UTC+2, husayt wrote:

 We experience the same issue with thousands of warmup requests. What is 
 going on? Why nobody from google has not replied yet?

 On Wednesday, 26 June 2013 17:43:10 UTC+1, Rafael Sanches wrote:

 Same here. It's extremely frustrating that the appengine team wasn't 
 capable of making a very simple configuration that would solve many issues 
 with the crazy scheduler: 
 - Make it possible to spin up JUST one new instance at time. On frontends 
 use the resident instance while that ONE new instance is booting.
 - Only after that ONE instance is up and executing requests, warmup 
 another one (only if necessary, which in 99% of the cases isn't necessary 
 unless you're running an apache bench service). 

 This would come very handy in B8 backends for example. Because my java 
 instances take a while to boot, I often find myself with 10 B8 instances 
 warming up. Extremely wasteful.

 It would be cheaper for me to hire a fulltime person to be manually 
 pushing the shutdown instance button. 

 Unfortunately there's no visibility when this extremely simple feature 
 will be done. Till then, let's keep with high costs for things we don't use 
 :)


 On Wed, Jun 26, 2013 at 9:31 AM, David turnt...@gmail.com wrote:

 I am also seeing 3 warm up requests per minute for nearly a day now on 
 my GAE for Java app.   And often this is happening when there is no 
 incoming traffic to my app.  My idle instances are also set to 1-1, yet my 
 charged hours are above this limit.  The dashboard shows up to 8 running 
 instances at times, with the app being charged for 3 or 4 instances.  The 
 dashboard also reports that 5% of these warm ups also fail.

 Will someone from Google please let me know how I can follow up so as 
 not to be overcharged for this usage?

 Thanks,
 David



 On Tuesday, June 25, 2013 4:49:00 PM UTC-4, chilang wrote:

 Hi,

 I'm seeing 15 warm up requests per secs causing 60+ instances to be 
 spin up, despite having little traffic!

 I haven't changed anything (code nor settings) recently. 
 This has started in the last 2 hours. 

 I've only noticed this due to app suddenly running out of quota. 
 I'm trying to cap Idle Instances to 1-1 to no avail. I've increased the 
 quota but at this rate it is going to burn through it very soon.

 Anyone else seeing this ?

 Regards,
 Chi Lang

  -- 
 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-appengi...@googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
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.




[google-appengine] saving google user details to datastore... but will they be kept to update?

2013-07-25 Thread Aidan Mack
Hi,

If I save details to the datastore with something like


User user = userService.getCurrentUser();
Entity greeting = new Entity(Greeting, guestbookKey);
greeting.setProperty(user, user);


That user then changers their nickname,

I then query the datastore for that greeting entity.

I then display properties from the user object I saved will those details 
be up to date? so will it now show the users new nickname?


If not can I save the userID and then is their an api to get user details 
based on an ID?

Thanks
Aidan



-- 
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.




[google-appengine] Where to place dispatch.xml file (app engine sdk 1.8.2)

2013-07-25 Thread Munish Dhiman
Hi,

I am just wondering where to put dispatch.xml file in a java application 
having multiple modules. It has not been specified anywhere in the docs.

-- 
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.




[google-appengine] Add missing content- and cache-control headers/metadata to cloudstorage/common (issue 11802047)

2013-07-25 Thread alex

Reviewers: tkaitchuck, huebsch_google.com,

Description:
Makes cloudstorage_test.CloudStorageTest.testGzip and testStat tests of
appengine-gcs-client pass.

Fixes:
  * https://code.google.com/p/googleappengine/issues/detail?id=9740
  * https://code.google.com/p/appengine-gcs-client/issues/detail?id=14

Please review this at https://codereview.appspot.com/11802047/

Affected files:
  M google/appengine/ext/cloudstorage/common.py


Index: google/appengine/ext/cloudstorage/common.py
===
--- google/appengine/ext/cloudstorage/common.py (revision 367)
+++ google/appengine/ext/cloudstorage/common.py (working copy)
@@ -76,8 +76,11 @@
 _GCS_BUCKET_REGEX = re.compile(_GCS_BUCKET_REGEX_BASE + r'$')
 _GCS_BUCKET_PATH_REGEX = re.compile(r'/' + _GCS_BUCKET_REGEX_BASE + r'$')
 _GCS_FULLPATH_REGEX = re.compile(r'/' + _GCS_BUCKET_REGEX_BASE + r'/.*')
-_GCS_OPTIONS = ('x-goog-acl',
-'x-goog-meta-')
+_GCS_METADATA = ['x-goog-meta-',
+ 'content-disposition',
+ 'cache-control',
+ 'content-encoding']
+_GCS_OPTIONS = _GCS_METADATA + ['x-goog-acl']

 CS_XML_NS = 'http://doc.s3.amazonaws.com/2006-03-01'

@@ -128,8 +131,9 @@
   etag: hex digest of the md5 hash of the file's content. str.
   st_ctime: posix file creation time. float compatible.
   content_type: content type. str.
-  metadata: a str-str dict of user specified metadata from the
-x-goog-meta header, e.g. {'x-goog-meta-foo': 'foo'}.
+  metadata: a str-str dict of user specified options when creating
+the file. Possible keys are x-goog-meta-, content-disposition,
+content-encoding, and cache-control.
 
 self.filename = filename
 self.st_size = long(st_size)
@@ -159,9 +163,9 @@


 def get_metadata(headers):
-  Get user defined metadata from HTTP response headers.
+  Get user defined options from HTTP response headers.
   return dict((k, v) for k, v in headers.iteritems()
-  if k.startswith('x-goog-meta-'))
+  if any(k.lower().startswith(valid) for valid in  
_GCS_METADATA))



 def validate_bucket_name(name):
@@ -244,7 +248,7 @@
   for k, v in options.iteritems():
 if not isinstance(k, str):
   raise TypeError('option %r should be a str.' % k)
-if not any(k.startswith(valid) for valid in _GCS_OPTIONS):
+if not any(k.lower().startswith(valid) for valid in _GCS_OPTIONS):
   raise ValueError('option %s is not supported.' % k)
 if not isinstance(v, basestring):
   raise TypeError('value %r for option %s should be of type  
basestring.' %



--
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.




Re: [google-appengine] SendGrid Integration

2013-07-25 Thread pdknsk
Hmm is this a sign that Google will soon remove the email functionality (at 
least for new applications)? I've been wondering how email will work when 
Google removes the Google Apps requirement for domains.

-- 
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.




Re: [google-appengine] Re: Flood of warm up requests!

2013-07-25 Thread Stefano Ciccarelli
I've noticed that this kind of behaviour started at least three weeks ago
and I've posted about it at least two weeks ago without responses.


2013/7/25 Peter Backx peter.ba...@gmail.com

 Same issue for me right now. I'm going to try the redeploy trick.

 Peter


 On Friday, June 28, 2013 1:35:41 AM UTC+2, husayt wrote:

 We experience the same issue with thousands of warmup requests. What is
 going on? Why nobody from google has not replied yet?

 On Wednesday, 26 June 2013 17:43:10 UTC+1, Rafael Sanches wrote:

 Same here. It's extremely frustrating that the appengine team wasn't
 capable of making a very simple configuration that would solve many issues
 with the crazy scheduler:
 - Make it possible to spin up JUST one new instance at time. On
 frontends use the resident instance while that ONE new instance is booting.
 - Only after that ONE instance is up and executing requests, warmup
 another one (only if necessary, which in 99% of the cases isn't necessary
 unless you're running an apache bench service).

 This would come very handy in B8 backends for example. Because my java
 instances take a while to boot, I often find myself with 10 B8 instances
 warming up. Extremely wasteful.

 It would be cheaper for me to hire a fulltime person to be manually
 pushing the shutdown instance button.

 Unfortunately there's no visibility when this extremely simple feature
 will be done. Till then, let's keep with high costs for things we don't use
 :)


 On Wed, Jun 26, 2013 at 9:31 AM, David turnt...@gmail.com wrote:

 I am also seeing 3 warm up requests per minute for nearly a day now on
 my GAE for Java app.   And often this is happening when there is no
 incoming traffic to my app.  My idle instances are also set to 1-1, yet my
 charged hours are above this limit.  The dashboard shows up to 8 running
 instances at times, with the app being charged for 3 or 4 instances.  The
 dashboard also reports that 5% of these warm ups also fail.

 Will someone from Google please let me know how I can follow up so as
 not to be overcharged for this usage?

 Thanks,
 David



 On Tuesday, June 25, 2013 4:49:00 PM UTC-4, chilang wrote:

 Hi,

 I'm seeing 15 warm up requests per secs causing 60+ instances to be
 spin up, despite having little traffic!

 I haven't changed anything (code nor settings) recently.
 This has started in the last 2 hours.

 I've only noticed this due to app suddenly running out of quota.
 I'm trying to cap Idle Instances to 1-1 to no avail. I've increased
 the quota but at this rate it is going to burn through it very soon.

 Anyone else seeing this ?

 Regards,
 Chi Lang

  --
 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-appengi...@**googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.com.
 Visit this group at 
 http://groups.google.com/**group/google-appenginehttp://groups.google.com/group/google-appengine
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




  --
 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.






-- 
Nel mondo esistono 10 categorie di persone, quelle che capiscono il binario
e quelle che non lo capiscono.

-- 
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.




[google-appengine] Time Syncronization

2013-07-25 Thread Evan Ruff
Hey guys,

I'm curious to hear about any strategies people have used to employ time 
synchronization among the AppEngine instances. I'm working on a project 
that is looking to have a pretty important time component and the current 
strategy I'm looking at is something long the lines of:

1. Record System.currentTimeMils()
2. URLFetch to an NTP server somewhere
3. Note return time
4. Correct NTP time using the start time to get request time.

Is this how other people are handling it? Is there another way that might 
be simpler? I'm a little hesitant to run an URLFetch for each request, 
obviously.

Thanks!

E

-- 
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.




Re: [google-appengine] Time Syncronization

2013-07-25 Thread Barry Hunter
If accuracy is that important to you, using URLFetch would not be accurate
enough.

If you use URLFetch, and the request takes say 400ms, you've no idea where
the actual timestamp belongs in that window. In theory its the middle but
because you don't know the relative delays of the send/receive phases, its
not guaranteed.

In theory, you could use the experimental Sockets API, to actually use the
NTP protocol itself, actually get a more accurate value.

But it would take time (many seconds) for the time to actually sync. So you
would need to say run a backend/module, that maintains time, locked via NTP
to a server somewhere. Which your front end apps queries via an API. In
theory a API connection to the back end is less susceptible to network
delays than to a external NTP server. And it might be possible maintain the
current skew, in a global veriable that persists between requests, so every
request doesnt 'have' to make the RPC.


 but appengine already undertakes to maintain server time via NTP
anyway, so it wont really give you any benefit. (so this is all bit of a
thought experiment!)


This might also be of interest:
https://www.google.com/search?q=%22Google+Production+time%22



On Thu, Jul 25, 2013 at 5:53 PM, Evan Ruff evan.r...@gmail.com wrote:

 Hey guys,

 I'm curious to hear about any strategies people have used to employ time
 synchronization among the AppEngine instances. I'm working on a project
 that is looking to have a pretty important time component and the current
 strategy I'm looking at is something long the lines of:

 1. Record System.currentTimeMils()
 2. URLFetch to an NTP server somewhere
 3. Note return time
 4. Correct NTP time using the start time to get request time.

 Is this how other people are handling it? Is there another way that might
 be simpler? I'm a little hesitant to run an URLFetch for each request,
 obviously.

 Thanks!

 E

 --
 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.




-- 
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.




[google-appengine] Debugging UnexpectedStateError while trying to start module.

2013-07-25 Thread Jeremy Bornstein
I am attempting to convert my backend use to app engine modules and am 
having difficulty.

The simplest place to start seems to be to say that calling 
google.appengine.api.modules.start_module() raises an UnexpectedStateError. 
I'm not seeing any evidence of a startup problem in the logs. Nor am I 
seeing evidence that the startup was attempted.

As a possibly-related aside, my backend is still configured, and appears in 
the UI as a version of the default module. When I call start_module() to 
start that explicitly, I get the same 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 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.




[google-appengine] Joomla website

2013-07-25 Thread Sravan Kumar
Hi There,

Good Day!!
Is there a provision where I can deploy my joomla based websites into 
google cloud space.

Many Thanks
Sravan

-- 
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.




[google-appengine] Re: Where to place dispatch.xml file (app engine sdk 1.8.2)

2013-07-25 Thread Stylianos Modes
Hello,

It goes inside the WEB-INF directory of your default module. When you 
upload, you'll see a new Dispatch link on your web admin page that lists 
the dispatch rules.

Stelios

On Thursday, 25 July 2013 14:11:31 UTC+1, Munish Dhiman wrote:

 Hi,

 I am just wondering where to put dispatch.xml file in a java application 
 having multiple modules. It has not been specified anywhere in the docs.


-- 
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.




[google-appengine] Re: Lots of 500's served tonight

2013-07-25 Thread Christian Foster Howes
I am seeing the same thing.  it's basically brought my site to its knees. 
 but it is only happening on one of the sites that i manage.

On Tuesday, July 23, 2013 8:30:45 PM UTC-7, GAEfan wrote:

 My app started serving 500s tonight, with no changes to the code for many 
 days.

 It is telling me exit_code=121

 If I continue to refresh, eventually the page loads.  Seems the instances 
 are crashing at spinup.  One instance appears in the admin console 
 dashboard, but if I click on the instances link, none show up.

 Remainder of log:


1. 500 1829ms 0kb Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac 
OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 
Mobile/8B117 Safari/6531.22.7 (compatible; Googlebot-Mobile/2.1; +
http://www.google.com/bot.html)

66.249.75.198 - - [23/Jul/2013:20:02:53 -0700] GET /page/ HTTP/1.1 500 0 
 - Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) 
 AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 
 Safari/6531.22.7 (compatible; Googlebot-Mobile/2.1; 
 +http://www.google.com/bot.html) www.mydomain.com ms=1830 cpu_ms=780 
 loading_request=1 exit_code=121 app_engine_release=1.8.2 
 instance=00c61b117cc97a586b8c77ba707be8ecf482 
 https://appengine.google.com/instances?app_id=s~crystal-bullversion_id=713.368782097257250375key=00c61b117cc97a586b8c77ba707be8ecf482#00c61b117cc97a586b8c77ba707be8ecf482

2. I2013-07-23 20:02:53.821

This request caused a new process to be started for your application, and 
 thus caused your application code to be loaded for the first time. This 
 request may thus take longer and use more CPU than a typical request for your 
 application.

3. W2013-07-23 20:02:53.821

A problem was encountered with the process that handled this request, 
 causing it to exit. This is likely to cause a new process to be used for the 
 next request to your application. (Error code 121)






-- 
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.




[google-appengine] JPA Relationship manytoone saving problem

2013-07-25 Thread Kaushal Prajapati
*Exception  persist method Save Attempt to assign child with key 
Role(19003) to parent with key User(no-id-yet). Parent keys are immutable
Exception  persist method Save Detected attempt to establish User(19004) as 
the parent of Role(1) but the entity identified by Role(1) has already been 
persisted without a parent.  A parent cannot be established or changed once 
an object has been persisted.


I want to save user entity with role as a relation entity 
*
*public class User{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Key id;
@ManyToOne(fetch=FetchType.EAGER,cascade = CascadeType.ALL)
@JoinColumn(name=role_id)
private Role role;
}
i cant save user entity when i assign role to user entity.


*

-- 
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.




Re: [google-appengine] Re: Flood of warm up requests!

2013-07-25 Thread Peter Backx
I just disabled warmup requests for now... I can't afford to have 40 
instances of my app running at this point.

I've filed a production issue and I've also asked this question on 
StackOverflow. Hopefully some one can help me tune this:
http://stackoverflow.com/questions/17865908/flood-of-warmup-requests


On Thursday, July 25, 2013 5:20:11 PM UTC+2, Stefano Ciccarelli wrote:

 I've noticed that this kind of behaviour started at least three weeks ago 
 and I've posted about it at least two weeks ago without responses.


 2013/7/25 Peter Backx peter...@gmail.com javascript:

 Same issue for me right now. I'm going to try the redeploy trick.

 Peter


 On Friday, June 28, 2013 1:35:41 AM UTC+2, husayt wrote:

 We experience the same issue with thousands of warmup requests. What is 
 going on? Why nobody from google has not replied yet?

 On Wednesday, 26 June 2013 17:43:10 UTC+1, Rafael Sanches wrote:

 Same here. It's extremely frustrating that the appengine team wasn't 
 capable of making a very simple configuration that would solve many issues 
 with the crazy scheduler: 
 - Make it possible to spin up JUST one new instance at time. On 
 frontends use the resident instance while that ONE new instance is booting.
 - Only after that ONE instance is up and executing requests, warmup 
 another one (only if necessary, which in 99% of the cases isn't necessary 
 unless you're running an apache bench service). 

 This would come very handy in B8 backends for example. Because my java 
 instances take a while to boot, I often find myself with 10 B8 instances 
 warming up. Extremely wasteful.

 It would be cheaper for me to hire a fulltime person to be manually 
 pushing the shutdown instance button. 

 Unfortunately there's no visibility when this extremely simple feature 
 will be done. Till then, let's keep with high costs for things we don't 
 use 
 :)


 On Wed, Jun 26, 2013 at 9:31 AM, David turnt...@gmail.com wrote:

 I am also seeing 3 warm up requests per minute for nearly a day now on 
 my GAE for Java app.   And often this is happening when there is no 
 incoming traffic to my app.  My idle instances are also set to 1-1, yet 
 my 
 charged hours are above this limit.  The dashboard shows up to 8 running 
 instances at times, with the app being charged for 3 or 4 instances.  The 
 dashboard also reports that 5% of these warm ups also fail.

 Will someone from Google please let me know how I can follow up so as 
 not to be overcharged for this usage?

 Thanks,
 David



 On Tuesday, June 25, 2013 4:49:00 PM UTC-4, chilang wrote:

 Hi,

 I'm seeing 15 warm up requests per secs causing 60+ instances to be 
 spin up, despite having little traffic!

 I haven't changed anything (code nor settings) recently. 
 This has started in the last 2 hours. 

 I've only noticed this due to app suddenly running out of quota. 
 I'm trying to cap Idle Instances to 1-1 to no avail. I've increased 
 the quota but at this rate it is going to burn through it very soon.

 Anyone else seeing this ?

 Regards,
 Chi Lang

  -- 
 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-appengi...@**googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.com.
 Visit this group at 
 http://groups.google.com/**group/google-appenginehttp://groups.google.com/group/google-appengine
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  


  -- 
 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-appengi...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Nel mondo esistono 10 categorie di persone, quelle che capiscono il 
 binario e quelle che non lo capiscono. 


-- 
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.




[google-appengine] GWT + GAE eclipse plugin - how not to compile

2013-07-25 Thread Deepak Singh
Hi,

I have my project GWT + GAE. Its all fine with the project.

When i deploy to GAE, plug in automatically compiles the project and then
deploy.

HOW DO I AVOID COMPILATION DURING DEPLOYMENT ?

-- 
Deepak Singh

-- 
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.




[google-appengine] Re: Time Syncronization

2013-07-25 Thread Richard
My experience is that GAE backends are horrible when it comes to the 'NTP 
correct' time.  I have seen servers as much as 20 minutes out.  For the 
last 6 months or so, they have been much better, so maybe Google got its 
act together.

Since I run a MMO synchronized client (android) server (GAE) game, I need 
everyone to be correct to within 1-2 seconds.  The following code works 
pretty well:

url = http://www.worldtimeserver.com;
format = '%a, %d %b %Y %H:%M:%S %Z'
correction = 0
try:
orig_timestamp = time.mktime(time.gmtime(time.time()))
result = urllib2.urlopen(url)
date_string = result.headers['Date']
recv_timestamp = time.mktime(time.gmtime(time.time()))
dest_timestamp = time.mktime(time.strptime(date_string, format))

correction = int((recv_timestamp - dest_timestamp)/2%180.)

Reason for the %180 in there is the games are on a 3 minute boundary.


I rarely see more than 1-3 seconds of 'correction' needing to be applied 
nowadays.


On Thursday, July 25, 2013 12:53:34 PM UTC-4, Evan Ruff wrote:

 Hey guys,

 I'm curious to hear about any strategies people have used to employ time 
 synchronization among the AppEngine instances. I'm working on a project 
 that is looking to have a pretty important time component and the current 
 strategy I'm looking at is something long the lines of:

 1. Record System.currentTimeMils()
 2. URLFetch to an NTP server somewhere
 3. Note return time
 4. Correct NTP time using the start time to get request time.

 Is this how other people are handling it? Is there another way that might 
 be simpler? I'm a little hesitant to run an URLFetch for each request, 
 obviously.

 Thanks!

 E


-- 
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.




[google-appengine] Re: Time Syncronization

2013-07-25 Thread Chad Vincent
My current project isn't very time-sensitive, but my previous one we saw 
servers up to 45 minutes slow.  Made it hard to make fetches from Amazon S3 
buckets with a 30-minute signed token when it was already expired by 15 
minutes...

On Thursday, July 25, 2013 2:27:04 PM UTC-5, Richard wrote:

 My experience is that GAE backends are horrible when it comes to the 'NTP 
 correct' time.  I have seen servers as much as 20 minutes out.  For the 
 last 6 months or so, they have been much better, so maybe Google got its 
 act together.

 Since I run a MMO synchronized client (android) server (GAE) game, I need 
 everyone to be correct to within 1-2 seconds.  The following code works 
 pretty well:

 url = http://www.worldtimeserver.com;
 format = '%a, %d %b %Y %H:%M:%S %Z'
 correction = 0
 try:
 orig_timestamp = time.mktime(time.gmtime(time.time()))
 result = urllib2.urlopen(url)
 date_string = result.headers['Date']
 recv_timestamp = time.mktime(time.gmtime(time.time()))
 dest_timestamp = time.mktime(time.strptime(date_string, format))

 correction = int((recv_timestamp - dest_timestamp)/2%180.)

 Reason for the %180 in there is the games are on a 3 minute boundary.


 I rarely see more than 1-3 seconds of 'correction' needing to be applied 
 nowadays.


 On Thursday, July 25, 2013 12:53:34 PM UTC-4, Evan Ruff wrote:

 Hey guys,

 I'm curious to hear about any strategies people have used to employ time 
 synchronization among the AppEngine instances. I'm working on a project 
 that is looking to have a pretty important time component and the current 
 strategy I'm looking at is something long the lines of:

 1. Record System.currentTimeMils()
 2. URLFetch to an NTP server somewhere
 3. Note return time
 4. Correct NTP time using the start time to get request time.

 Is this how other people are handling it? Is there another way that might 
 be simpler? I'm a little hesitant to run an URLFetch for each request, 
 obviously.

 Thanks!

 E



-- 
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.




[google-appengine] Re: GWT + GAE eclipse plugin - how not to compile

2013-07-25 Thread Chad Vincent
GWT must be compiled before being used, and it requires tools that are not 
available on GAE.

If you're looking to debug the JS that GWT generates in a live environment, 
you can change the compilation level from obfuscated to pretty or 
detailed.

On Thursday, July 25, 2013 2:26:42 PM UTC-5, Deepak Singh wrote:

 Hi,

 I have my project GWT + GAE. Its all fine with the project.

 When i deploy to GAE, plug in automatically compiles the project and then 
 deploy.

 HOW DO I AVOID COMPILATION DURING DEPLOYMENT ?

 -- 
 Deepak Singh 


-- 
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.




[google-appengine] Re: Joomla website

2013-07-25 Thread Chad Vincent
Looks like Joomla just started working on it last week-ish:

https://groups.google.com/forum/#!topic/joomla-dev-cms/JmDLyDPOGFA

On Thursday, July 25, 2013 10:54:18 AM UTC-5, Sravan Kumar wrote:

 Hi There,

 Good Day!!
 Is there a provision where I can deploy my joomla based websites into 
 google cloud space.

 Many Thanks
 Sravan


-- 
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.




[google-appengine] Re: Time Syncronization

2013-07-25 Thread alex
Evan, if the question here is whether currentTimeMils() returns correct 
time, it's all managed for you, obviously including correct time. This is 
not an EC2 instance.

Not that it probably matters here but Google introduced a concept called 
true time, which IMO even more accurate than NTP in some sense. I don't 
know if servers that run appspot apps use it at some level, but I know for 
sure Google team use it in Spanner.

Anyway, why would you want to adjust current system time, do you have 
evidence that it's not accurate enough?

On Thursday, July 25, 2013 6:53:34 PM UTC+2, Evan Ruff wrote:

 Hey guys,

 I'm curious to hear about any strategies people have used to employ time 
 synchronization among the AppEngine instances. I'm working on a project 
 that is looking to have a pretty important time component and the current 
 strategy I'm looking at is something long the lines of:

 1. Record System.currentTimeMils()
 2. URLFetch to an NTP server somewhere
 3. Note return time
 4. Correct NTP time using the start time to get request time.

 Is this how other people are handling it? Is there another way that might 
 be simpler? I'm a little hesitant to run an URLFetch for each request, 
 obviously.

 Thanks!

 E


-- 
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.




Re: [google-appengine] Re: Modules vs Backends

2013-07-25 Thread Chris Ramsdale
good feedback.  perhaps the documentation could have been a bit clearer,
we suggest that you start looking into Modules.  the feature is scheduled
to go to GA in the next 3 releases.

they will in fact subsume Backends, with the following being the preferred
architecture for larger GAE apps:

app_id
frontend (web)
  version 1
  version 2
  frontend (mobile)
  version 1
  version 2
  backend (data pipelining)
  version 1
  version 2

where all frontends and backends are themselves a Module.  hope this helps.

-- Chris


On Fri, Jul 19, 2013 at 9:32 AM, PK p...@gae123.com wrote:

 I think this is the direction too but the message on the console is
 questionable since backends is a GA feature while modules is in preview
 mode and another message (see 
 herehttps://developers.google.com/appengine/docs/python/modules/)
 states:


 This is a Preview release of the Modules service and its APIs. Please be
 aware that the APIs and service behavior may change before the service
 becomes a General Availability release. Also note that this Preview release
 is not covered by any SLA or deprecation policy.


 For a production site I would wait until modules becomes GA to start the
 migration...

 PK
 http://www.gae123.com

 On July 19, 2013 at 9:25:23 AM, Jason Collins (jason.a.coll...@gmail.com)
 wrote:

 I'm pretty certain Modules subsumes backends based on the message that is
 on my console:

 Looks like you're using Backends. We suggest that you make the switch to
 App Engine Modules. See the Modules documentation to learn more about
 converting: 
 Pythonhttps://developers.google.com/appengine/docs/python/modules/converting
  | Javahttps://developers.google.com/appengine/docs/java/modules/converting
 .

 Python link:
 https://developers.google.com/appengine/docs/python/modules/converting

 You can do the same things you do with backends using Modules.

 j

 On Thursday, 18 July 2013 21:54:26 UTC-6, husayt wrote:

 After reading the documentation on modules, I get an impression that
 backends are going to be replaced by modules.
 Is this right observation? Or maybe you could explain what would be the
 diff between the two.

  --
 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.



  --
 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.




-- 
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.




Re: [google-appengine] Re: Time Syncronization

2013-07-25 Thread Evan Ruff
Hey guys,

Thanks a lot for the interesting ideas about handling this issue. So for in
my application, I need to be very sensitive (mils) about the arrival time
of requests to resolve conflicts in data assignment.

Basically, I'm worried about two requests coming in around the same time,
hitting two different instances, then having to resolve which request was
first.

I've thought about creating a memcache-based semaphore based around the
actual data ID that will be assigned, but I thought I'd see if there was a
slicker way that anyone had used.

Thanks,

E
On Jul 25, 2013 4:07 PM, alex a...@cloudware.it wrote:

 Evan, if the question here is whether currentTimeMils() returns correct
 time, it's all managed for you, obviously including correct time. This is
 not an EC2 instance.

 Not that it probably matters here but Google introduced a concept called
 true time, which IMO even more accurate than NTP in some sense. I don't
 know if servers that run appspot apps use it at some level, but I know for
 sure Google team use it in Spanner.

 Anyway, why would you want to adjust current system time, do you have
 evidence that it's not accurate enough?

 On Thursday, July 25, 2013 6:53:34 PM UTC+2, Evan Ruff wrote:

 Hey guys,

 I'm curious to hear about any strategies people have used to employ time
 synchronization among the AppEngine instances. I'm working on a project
 that is looking to have a pretty important time component and the current
 strategy I'm looking at is something long the lines of:

 1. Record System.currentTimeMils()
 2. URLFetch to an NTP server somewhere
 3. Note return time
 4. Correct NTP time using the start time to get request time.

 Is this how other people are handling it? Is there another way that might
 be simpler? I'm a little hesitant to run an URLFetch for each request,
 obviously.

 Thanks!

 E

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/PPbVax3k1s0/unsubscribe
 .
 To unsubscribe from this group and all its topics, 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.




-- 
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.




Re: [google-appengine] GAE/J - Completely lost on migrating from Files API to GCS Client Library

2013-07-25 Thread Gilberto Torrezan Filho
Hi Vinny P,

Thank you for your reply. Indeed I'm having problems to activate the cloud 
integration for my project, due to this 
issuehttp://code.google.com/p/googleappengine/issues/detail?id=9602. 
I'll wait for a position from Google about it (a patch?) before creating 
more projects or trying workarounds.

Kaan Soral, I'm worried about the migration of existing blobstore as well. 
I think (and I want to believe) Google will make some migration magic 
button similar to when they migrated to HRD. I simply can't rely on a 
structure which makes me migrate data and rework code at every release, 
though.

-- 
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.




Re: [google-appengine] Re: Modules vs Backends

2013-07-25 Thread timh
Hi Chris

I have asked this a couple of times,  there is no mention of warmup 
requests for front end instances in the docs on modules.  Do/Will they 
still exist  for auto scaled frontends?

T

On Friday, July 26, 2013 5:44:09 AM UTC+8, Chris Ramsdale wrote:

 good feedback.  perhaps the documentation could have been a bit clearer, 
 we suggest that you start looking into Modules.  the feature is scheduled 
 to go to GA in the next 3 releases.

 they will in fact subsume Backends, with the following being the preferred 
 architecture for larger GAE apps:

 app_id
 frontend (web)
   version 1
   version 2   
   frontend (mobile)
   version 1
   version 2   
   backend (data pipelining)
   version 1
   version 2   

 where all frontends and backends are themselves a Module.  hope this helps.

 -- Chris


 On Fri, Jul 19, 2013 at 9:32 AM, PK p...@gae123.com javascript: wrote:

 I think this is the direction too but the message on the console is 
 questionable since backends is a GA feature while modules is in preview 
 mode and another message (see 
 herehttps://developers.google.com/appengine/docs/python/modules/) 
 states:


 This is a Preview release of the Modules service and its APIs. Please 
 be aware that the APIs and service behavior may change before the service 
 becomes a General Availability release. Also note that this Preview release 
 is not covered by any SLA or deprecation policy.


 For a production site I would wait until modules becomes GA to start the 
 migration...

 PK
 http://www.gae123.com

 On July 19, 2013 at 9:25:23 AM, Jason Collins 
 (jason.a...@gmail.comjavascript:) 
 wrote:

 I'm pretty certain Modules subsumes backends based on the message that is 
 on my console:

 Looks like you're using Backends. We suggest that you make the switch 
 to App Engine Modules. See the Modules documentation to learn more about 
 converting: 
 Pythonhttps://developers.google.com/appengine/docs/python/modules/converting
  | Javahttps://developers.google.com/appengine/docs/java/modules/converting
 .

 Python link: 
 https://developers.google.com/appengine/docs/python/modules/converting

 You can do the same things you do with backends using Modules.

 j

 On Thursday, 18 July 2013 21:54:26 UTC-6, husayt wrote:

 After reading the documentation on modules, I get an impression that 
 backends are going to be replaced by modules.
 Is this right observation? Or maybe you could explain what would be the 
 diff between the two.

  -- 
 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-appengi...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

  -- 
 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-appengi...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
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.




Re: [google-appengine] Memcache Fishyness - 7/18/2013 @ 438pm EST

2013-07-25 Thread Jeffery Fernandez
Thanks Vinny,

That's a great tip to analyse the success rate, but I was more after what
error is thrown if the memcached service was down, so I can catch the
problem and recover. In an other thread I was told PHP environment is on
HRD and I don't have to worry about the availability.

Reading this mailing list, I have come across way-too-many issues with
services falling apart, so much so I am not confident that they will be
running 99.95% (SLA agreement) of the time. I may be just paranoid or maybe
looking for a more reliable service.


On Wed, Jul 24, 2013 at 3:38 PM, Vinny P vinny...@gmail.com wrote:

 On Sun, Jul 21, 2013 at 7:38 PM, Jeffery Fernandez 
 jefferyfernan...@gmail.com wrote:

 I have implemented memcached for my project as well, but different
 environment (php). Though I can't find the capabilities API for php. Do I
 just catch the exceptions (what?) and not worry about checking if the
 memcached service is available?


  The Capabilities API for PHP isn't implemented yet, at least to my
 knowledge.

  What you can do is periodically track the time it takes memcache to
 return and its success rate, and automatically stop using memcache if those
 numbers become unacceptable (and return to using it once those numbers
 return to acceptable levels).

 -
 -Vinny P
 Technology  Media Advisor
 Chicago, IL

 App Engine Code Samples: http://www.learntogoogleit.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 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.






-- 
Mobile: +61 430 534 464
Home: +61 3 9764 4439
Work: +61 3 9723 9399

-- 
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.




[google-appengine] Problems with modules

2013-07-25 Thread Jeremy Bornstein
I am having trouble getting my module(s) to run. Here's a StackOverflow 
post:

http://stackoverflow.com/questions/17827475/starting-app-engine-modules-in-google-app-engine/17848050?noredirect=1#17848050

Any help or pointers would be much appreciated.

-- 
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.




Re: [google-appengine] Re: Modules vs Backends

2013-07-25 Thread Chris Ramsdale
I'm not sure that I have complete context here. We're not removing any
functionality for frontends, so all existing functionality will persist.
On Jul 25, 2013 4:21 PM, timh zutes...@gmail.com wrote:

 Hi Chris

 I have asked this a couple of times,  there is no mention of warmup
 requests for front end instances in the docs on modules.  Do/Will they
 still exist  for auto scaled frontends?

 T

 On Friday, July 26, 2013 5:44:09 AM UTC+8, Chris Ramsdale wrote:

 good feedback.  perhaps the documentation could have been a bit clearer,
 we suggest that you start looking into Modules.  the feature is scheduled
 to go to GA in the next 3 releases.

 they will in fact subsume Backends, with the following being the
 preferred architecture for larger GAE apps:

 app_id
 frontend (web)
   version 1
   version 2
   frontend (mobile)
   version 1
   version 2
   backend (data pipelining)
   version 1
   version 2

 where all frontends and backends are themselves a Module.  hope this
 helps.

 -- Chris


 On Fri, Jul 19, 2013 at 9:32 AM, PK p...@gae123.com wrote:

 I think this is the direction too but the message on the console is
 questionable since backends is a GA feature while modules is in preview
 mode and another message (see 
 herehttps://developers.google.com/appengine/docs/python/modules/)
 states:


 This is a Preview release of the Modules service and its APIs. Please
 be aware that the APIs and service behavior may change before the service
 becomes a General Availability release. Also note that this Preview release
 is not covered by any SLA or deprecation policy.


 For a production site I would wait until modules becomes GA to start the
 migration...

 PK
 http://www.gae123.com

 On July 19, 2013 at 9:25:23 AM, Jason Collins (jason.a...@gmail.com)
 wrote:

 I'm pretty certain Modules subsumes backends based on the message that
 is on my console:

 Looks like you're using Backends. We suggest that you make the switch
 to App Engine Modules. See the Modules documentation to learn more about
 converting: 
 Pythonhttps://developers.google.com/appengine/docs/python/modules/converting
  | 
 Javahttps://developers.google.com/appengine/docs/java/modules/converting
 .

 Python link: https://developers.**google.com/appengine/docs/**
 python/modules/convertinghttps://developers.google.com/appengine/docs/python/modules/converting

 You can do the same things you do with backends using Modules.

 j

 On Thursday, 18 July 2013 21:54:26 UTC-6, husayt wrote:

 After reading the documentation on modules, I get an impression that
 backends are going to be replaced by modules.
 Is this right observation? Or maybe you could explain what would be the
 diff between the two.

  --
 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-appengi...@**googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.**com.
 Visit this group at 
 http://groups.google.com/**group/google-appenginehttp://groups.google.com/group/google-appengine
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .



  --
 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-appengi...@**googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.**com.
 Visit this group at 
 http://groups.google.com/**group/google-appenginehttp://groups.google.com/group/google-appengine
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




  --
 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.




-- 
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.




[google-appengine] Modules and runtimes

2013-07-25 Thread Ronoaldo Pereira
Can I have an application module (or backend) using the Go runtime and keep 
my front-ends using Java runtime?

-- 
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.




Re: [google-appengine] Re: Modules vs Backends

2013-07-25 Thread timh
Hi Chris

Thats what I assumed, however the documentation for modules, talks 
explicitly about /_ah/start for various manual and basic scaling startup, 
but did not including any mention of warmup requests for dynamic scaling 
instance startup

https://developers.google.com/appengine/docs/python/modules/#performance

So I just wanted to make sure.  

Thanks

Tim


On Friday, July 26, 2013 10:56:48 AM UTC+8, Chris Ramsdale wrote:

 I'm not sure that I have complete context here. We're not removing any 
 functionality for frontends, so all existing functionality will persist. 
 On Jul 25, 2013 4:21 PM, timh zute...@gmail.com javascript: wrote:

 Hi Chris

 I have asked this a couple of times,  there is no mention of warmup 
 requests for front end instances in the docs on modules.  Do/Will they 
 still exist  for auto scaled frontends?

 T

 On Friday, July 26, 2013 5:44:09 AM UTC+8, Chris Ramsdale wrote:

 good feedback.  perhaps the documentation could have been a bit clearer, 
 we suggest that you start looking into Modules.  the feature is scheduled 
 to go to GA in the next 3 releases.

 they will in fact subsume Backends, with the following being the 
 preferred architecture for larger GAE apps:

 app_id
 frontend (web)
   version 1
   version 2   
   frontend (mobile)
   version 1
   version 2   
   backend (data pipelining)
   version 1
   version 2   

 where all frontends and backends are themselves a Module.  hope this 
 helps.

 -- Chris


 On Fri, Jul 19, 2013 at 9:32 AM, PK p...@gae123.com wrote:

 I think this is the direction too but the message on the console is 
 questionable since backends is a GA feature while modules is in preview 
 mode and another message (see 
 herehttps://developers.google.com/appengine/docs/python/modules/) 
 states:


 This is a Preview release of the Modules service and its APIs. Please 
 be aware that the APIs and service behavior may change before the service 
 becomes a General Availability release. Also note that this Preview 
 release 
 is not covered by any SLA or deprecation policy.


 For a production site I would wait until modules becomes GA to start 
 the migration...

 PK
 http://www.gae123.com

 On July 19, 2013 at 9:25:23 AM, Jason Collins (jason.a...@gmail.com) 
 wrote:

 I'm pretty certain Modules subsumes backends based on the message that 
 is on my console:

 Looks like you're using Backends. We suggest that you make the switch 
 to App Engine Modules. See the Modules documentation to learn more about 
 converting: 
 Pythonhttps://developers.google.com/appengine/docs/python/modules/converting
  | 
 Javahttps://developers.google.com/appengine/docs/java/modules/converting
 .

 Python link: https://developers.**google.com/appengine/docs/**
 python/modules/convertinghttps://developers.google.com/appengine/docs/python/modules/converting

 You can do the same things you do with backends using Modules.

 j

 On Thursday, 18 July 2013 21:54:26 UTC-6, husayt wrote:

 After reading the documentation on modules, I get an impression that 
 backends are going to be replaced by modules.
 Is this right observation? Or maybe you could explain what would be 
 the diff between the two.

  -- 
 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-appengi...@**googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.**com.
 Visit this group at 
 http://groups.google.com/**group/google-appenginehttp://groups.google.com/group/google-appengine
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  

  -- 
 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-appengi...@**googlegroups.com.
 To post to this group, send email to google-a...@googlegroups.**com.
 Visit this group at 
 http://groups.google.com/**group/google-appenginehttp://groups.google.com/group/google-appengine
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  


  -- 
 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-appengi...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-a...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-appengine.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  



-- 
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] Re: Keep forwarding to admin/configure.jsp

2013-07-25 Thread Cin Ling
Dear Vinny..
may i ask something again??
I'm really new with gae..
I have just deployed this http://testictactoe.appspot.com/;.
When i click to the Tictactoe, it shows Server Error.

My plan is i wanna this http://testictactoe.appspot.com/; as an server, i 
will make an c# as my client application.

Here is my java coding for server :
package com.tictactoe;

import java.io.*;
import java.nio.channels.Channel;
import java.util.Random;

import javax.servlet.http.*;

import com.google.appengine.api.channel.ChannelMessage;
import com.google.appengine.api.channel.ChannelService;
import com.google.appengine.api.channel.ChannelServiceFactory;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
import com.sun.org.apache.xml.internal.resolver.helpers.Debug;

@SuppressWarnings(serial)
public class TictactoeServlet extends HttpServlet
{
private UserService userService;
private String userID;
private ChannelService channelService;
private String token;
private String gameState;

public void doGet(HttpServletRequest req, HttpServletResponse resp) 
throws IOException 
{
/*resp.setContentType(text/plain);
resp.getWriter().println(Hello, world);*/

userService = UserServiceFactory.getUserService();
userID = userService.getCurrentUser().getUserId();
channelService = ChannelServiceFactory.getChannelService();

token = channelService.createChannel(userID);

channelService.sendMessage(new ChannelMessage(userID, token));

resp.setContentType(text/html);
resp.getWriter().write(token);
}

@Override
public void doPost(HttpServletRequest req, HttpServletResponse resp) 
throws IOException
{
String userId = req.getParameter(user);
gameState = req.getParameter(gstate);
if(gameState == X-E) gameState = O;
else if(gameState == O-E) gameState = X;
else if(gameState == O-S || gameState == X-S) gameState = O;
channelService = ChannelServiceFactory.getChannelService();
channelService.sendMessage(new ChannelMessage(userId, gameState));
}
}

Is there anything wrong??

At my client application, what's the url that could link to this tictactoe 
server.

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 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.




Re: [google-appengine] Time Syncronization

2013-07-25 Thread Rafael
Another idea to speed up synchronization on a high concurrency
transactional level, would be to create a single java backend instance that
takes in tasks from the front ends and process it in a singular queue. That
way you know the time is just from one server and you also know its from a
single threaded queue.

On Thursday, July 25, 2013, Evan Ruff wrote:

 Hey guys,

 Thanks a lot for the interesting ideas about handling this issue. So for
 in my application, I need to be very sensitive (mils) about the arrival
 time of requests to resolve conflicts in data assignment.

 Basically, I'm worried about two requests coming in around the same time,
 hitting two different instances, then having to resolve which request was
 first.

 I've thought about creating a memcache-based semaphore based around the
 actual data ID that will be assigned, but I thought I'd see if there was a
 slicker way that anyone had used.

 Thanks,

 E
 On Jul 25, 2013 4:07 PM, alex a...@cloudware.it javascript:_e({},
 'cvml', 'a...@cloudware.it'); wrote:

 Evan, if the question here is whether currentTimeMils() returns correct
 time, it's all managed for you, obviously including correct time. This is
 not an EC2 instance.

 Not that it probably matters here but Google introduced a concept called
 true time, which IMO even more accurate than NTP in some sense. I don't
 know if servers that run appspot apps use it at some level, but I know for
 sure Google team use it in Spanner.

 Anyway, why would you want to adjust current system time, do you have
 evidence that it's not accurate enough?

 On Thursday, July 25, 2013 6:53:34 PM UTC+2, Evan Ruff wrote:

 Hey guys,

 I'm curious to hear about any strategies people have used to employ time
 synchronization among the AppEngine instances. I'm working on a project
 that is looking to have a pretty important time component and the current
 strategy I'm looking at is something long the lines of:

 1. Record System.currentTimeMils()
 2. URLFetch to an NTP server somewhere
 3. Note return time
 4. Correct NTP time using the start time to get request time.

 Is this how other people are handling it? Is there another way that
 might be simpler? I'm a little hesitant to run an URLFetch for each
 request, obviously.

 Thanks!

 E

  --
 You received this message because you are subscribed to a topic in the
 Google Groups Google App Engine group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/google-appengine/PPbVax3k1s0/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 google-appengine+unsubscr...@googlegroups.com javascript:_e({}, 'cvml',
 'google-appengine%2bunsubscr...@googlegroups.com');.
 To post to this group, send email to 
 google-appengine@googlegroups.comjavascript:_e({}, 'cvml', 
 '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.



  --
 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 javascript:_e({},
 'cvml', 'google-appengine%2bunsubscr...@googlegroups.com');.
 To post to this group, send email to 
 google-appengine@googlegroups.comjavascript:_e({}, 'cvml', 
 '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.




-- 
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.