guillaumebort/play-gae — pull request #40 by jirubio (2012-02-25 17:51:14+00:00)
Title: added support for high replication datastore (HRD)

This commit tries to mimic de behaviour of the google plugin. The currently default datastore in appengine is the hrd one and we must have the functionality to simulate it on development mode.
I have added two properties (application.conf) to configure the behaviour of hrd:
# GAE config
# ~~~~~~
%dev.gae.datastore.enableHRD=true
#%dev.gae.datastore.hrd.unappliedJobPct=50

By default is disabled. The second property configures the consistency level that goes from 0 to 100.
When you use the datastore api for the firstime it gets initialized and you will see in the console these lines:
Local Datastore initialized:
Type: High Replication
The type can be Master/Slave or High Replication. Verify theses lines to be sure you have enabled correctly hrd.

Comments are wellcome.