Issue #11745 - fix the environment var for the GAE Instance in id-manager.xml (#11797)

* Issue #11745 - fix the environment var for the GAE Instance in id-manager.xml

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan 2024-05-28 11:54:59 +10:00 committed by GitHub
parent 042582813f
commit bc03176224
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ This uniquely identifies the jetty server instance and is applied to the `Sessio
You can either provide a value for this property, or you can allow Jetty to try and synthesize a `workerName` - the latter option is _only_ advisable in the case of a single, non-clustered deployment.
There are two ways a default `workerName` can be synthesized:
* if running on Google AppEngine, the `workerName` will be formed by concatenating the values of the environment variables `JETTY_WORKER_INSTANCE` and `GAE_MODULE_INSTANCE`
* if running on Google AppEngine, the `workerName` will be formed by concatenating the values of the environment variables `JETTY_WORKER_INSTANCE` and `GAE_INSTANCE`
* otherwise, the `workerName` will be formed by concatenating the environment variable `JETTY_WORKER_INSTANCE` and the literal `0`.
So, if you're not running on Google AppEngine, and you haven't configured one, the workerName will always be: `node0`.

View File

@ -15,7 +15,7 @@
<Property name="jetty.sessionIdManager.workerName">
<Default>node<Env name="JETTY_WORKER_INSTANCE">
<Default>
<Env name="GAE_MODULE_INSTANCE">
<Env name="GAE_INSTANCE" deprecated="GAE_MODULE_INSTANCE">
<Default>0</Default>
</Env>
</Default>