Skip to content
Browse Gluu Server 4.5

Release

Cache Provider Configuration

#Overview

This page explains the Cache Provider configuration that can be accessed by navigating to Configuration > JSON Configuration > Cache Provider Configuration.

The following cache providers are now supported and can be selected via the cacheProviderType combo box field (see screenshot below):

In Memory - recommended for small deployments only Memcached - recommended for single cache server deployment Redis - recommended for cluster deployments Native Persistence - recommended to avoid additional components installation. All cache entries are saved in persistence layers.

#Cache Provider Properties

image

The following tables include the name and description of each configurable oxAuth property:

#Cache Configuration

NameDescription
cacheProviderTypeThe cache provider type

#Memcached Configuration

NameDescription
serversServer details separated by spaces (e.g. `server1:8080 server2:8081)
maxOperationQueueLengthMaximum number of operations that can be queued
bufferSizeBuffer size in bytes
defaultPutExpirationExpiration timeout value in seconds
MemcachedConnectionFactoryTypeIs the Connection Factory in memory or memcached

#In-Memory Configuration

NameDescription
defaultPutExpirationdefaultPutExpiration timeout value in seconds

#Redis Configuration

NameDescription
redisProviderTypeType of connection: standalone, clustered, sharded, sentinel
ServersServer details separated by commas (e.g. 'server1:8080,server2:8081')
passwordRedis password
defaultPutExpirationDefault expiration time for the object put into cache in seconds
useSSLEnable SSL communication between Gluu Server and Redis cache
sslTrustStoreFilePathDirectory Path to Trust Store
sentinelMasterGroupNameSentinel Master Group Name (required if SENTINEL type of connection is selected)
maxIdleConnectionsThe cap on the number of "idle" instances in the pool. If maxIdle is set too low on heavily loaded systems it is possible you will see objects being destroyed and almost immediately new objects being created. This is a result of the active threads momentarily returning objects faster than they are requesting them, causing the number of idle objects to rise above maxIdle. The best value for maxIdle for heavily loaded system will vary but the default is a good starting point.
maxTotalConnectionsThe number of maximum connection instances in the pool.
connectionTimeoutConnection time out.
soTimeoutWith this option set to a non-zero timeout, a read() call on the InputStream associated with this Socket will block for only this amount of time. If the timeout expires, a java.net.SocketTimeoutException is raised, though the Socket is still valid. The option must be enabled prior to entering the blocking operation to have effect. The timeout must be > 0. A timeout of zero is interpreted as an infinite timeout.
maxRetryAttemptsMax retry attepts in case of failure.

#Native Persistence Configuration

NameDescription
defaultPutExpirationDefault expiration time for the object put into cache in seconds