Skip to content

Commit 8e0b149

Browse files
committed
Merge branch '3.x'
2 parents ed11e03 + 183b6f9 commit 8e0b149

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/container-tomcat.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,21 @@ By default, the Tomcat instance is configured to store all Sessions and their da
9191
### Redis
9292
To enable Redis-based session replication, simply bind a Redis service containing a name, label, or tag that has `session-replication` as a substring.
9393

94+
### Pivotal Cloud Cache
95+
To enable session state caching on 'Pivotal Cloud Cache', bind to a 'Pivotal Cloud Cache' service instance who's name either ends in `-session-replication` or is tagged with `session-replication`.
96+
97+
Service instances can be created with a tag:
98+
99+
```sh
100+
$ cf create-service p-cloudcache my-service-instance -t session-replication
101+
```
102+
103+
or existing service instances can be given a tag:
104+
105+
```sh
106+
$ cf update-service new-service-instance -t session-replication
107+
```
108+
94109
## Managing Entropy
95110
Entropy from `/dev/random` is used heavily to create session ids, and on startup for initializing `SecureRandom`, which can then cause instances to fail to start in time (see the [Tomcat wiki]). Also, the entropy is shared so it's possible for a single app to starve the DEA of entropy and cause apps in other containers that make use of entropy to be blocked.
96111
If this is an issue then configuring `/dev/urandom` as an alternative source of entropy may help. It is unlikely, but possible, that this may cause some security issues which should be taken in to account.

0 commit comments

Comments
 (0)