Issue #378 Can't configure per nodes settings in start.ini

Updated gcloud-session to look for GAE environment variable for the node ID
This commit is contained in:
Greg Wilkins 2016-03-02 14:03:58 +01:00
parent 7e7b126847
commit 9c5a8d3f28
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@
<Arg>
<Ref id="Server"/>
</Arg>
<Set name="workerName"><Property name="jetty.gcloudSession.workerName" default="node1"/></Set>
<Set name="workerName"><Property name="jetty.gcloudSession.workerName"><Default>node<Env name="GAE_MODULE_INSTANCE" default="0"/></Default></Property></Set>
<Set name="config"><Ref id="gconf"/></Set>
</New>
</Set>

View File

@ -53,7 +53,8 @@ https://github.com/GoogleCloudPlatform/gcloud-java
http://www.apache.org/licenses/LICENSE-2.0.html
[ini-template]
## Unique identifier for this node in the cluster
## Unique identifier to force the workername for this node in the cluster
## If not set, will default to the string "node" plus the Env variable $GAE_MODULE_INSTANCE
# jetty.gcloudSession.workerName=node1