enonic / doc-xp

Enonic XP > 7.0 Reference Documentation
2 stars 4 forks source link

Document Hazelcast features #151

Closed rymsha closed 4 years ago

rymsha commented 4 years ago

new file com.enonic.xp.hazelcast.cfg

## If true some properties are set based on xp cluster configuration.
#clusterConfigDefaults=true

## Hazelcast Lite member which does not own any partitions.
#lightMember=false

#network.port=5701
#network.portCount=100
#network.portAutoIncrement=false

## Overrides the public address of a member. It should be set in the format "host IP address:port number".
## Ignored when clusterConfigDefaults is true.
#network.publicAddress=

#network.join.multicast.enabled=false

#network.join.kubernetes.enabled=false

# service DNS
#network.join.kubernetes.serviceDns=

#network.join.tcpIp.enabled=true

## Comma separated list of well known members.
## If not provided and clusterDefaults=true then cluster's discovery.unicast.hosts used instead.
#network.join.tcpIp.members=

#network.interfaces.enabled=false

## Comma separated list of ip addresses for binding.
#network.interfaces=

## Enable Hazelcast REST API.
#network.restApi.enabled=false

## Comma separated list of REST API Endpoint Groups.
#network.restApi.restEndpointGroups=HEALTH_CHECK, CLUSTER_READ

## Enable or disable the sending of phone home data to Hazelcast's phone home server.
#system.hazelcast.phone.home.enabled=true

## Bind both server-socket and client-sockets to any local interface.
#system.hazelcast.socket.bind.any=true

# Initial expected cluster size to wait before node to start completely
#system.hazelcast.initial.min.cluster.size=0

# Prefer IPv4 Stack, don't use IPv6
#system.hazelcast.prefer.ipv4.stack=true

# The number of incremental ports, starting with the port number defined in the network configuration, that is used to connect to a host.
#system.hazelcast.tcp.join.port.try.count=1

# Maximum timeout of heartbeat in seconds for a member to assume it is dead.
#system.hazelcast.max.no.heartbeat.seconds=60

# Heartbeat send interval in seconds.
#system.hazelcast.heartbeat.interval.seconds=5

# Timeout which defines when master candidate gives up waiting for response to its mastership claim.
#system.hazelcast.mastership.claim.timeout.seconds=120

# Wait time before join operation
#hazelcast.wait.seconds.before.join=5

# Maximum wait time before join operation
#hazelcast.max.wait.seconds.before.join=20

new file com.enonic.xp.web.sessionstore.cfg

#replicated or non-persistent
# storeMode = non-persistent

# A non-zero value means that session won't be persisted if only the access time changed
# and it has been less than savePeriodSeconds since the last time the session was written.
# Has no effect in non-persistent storeMode.
# savePeriodSeconds = 0

# Specifies how many seconds to wait for non-session-owner nodes to be checked
# to verify an expired session is in fact expired throughout the cluster before closing it.
# Has no effect in non-persistent storeMode.
# gracePeriodSeconds = 3600

# Controls whether a session that is newly created will be immediately (true)
# or lazily (false) persisted as the last request for the session exits.
# Has no effect in non-persistent storeMode.
# saveOnCreate = false

# Controls whether a session that is changed ("dirty") will be persisted as the response is about to commit.
# If false, a dirty session will only be persisted when the last simultaneous request for it leaves the session.
# Has no effect in non-persistent storeMode.
# flushOnResponseCommit = false
rymsha commented 4 years ago

enonic/xp#8125 describes how to use distributed sessions