How to switch from hazelcast to redis cache in packetmanager

By default packet manager uses hazelcast cache for cache management. For higher performance with low resources and fever restarts in packetmanager in any production environment it is recommended to use REDIS cache

Pre-requisites:

  1. Setup Redis standalone server.

  2. Make sure no password authentication is required.

 Instructions

Below are the step by step intructions to switch to the redis cache:

  1. Check if redis cache implementation jar is present in artifactory or not.

  2. Add cache implementation jar to the artifactory in case not present.

  3. Check and add redis related configurations to application / packetmanager related property file:

    1. redis.cache.hostname=10.10.20.191

    2. redis.cache.port=6379

    3. spring.cache.redis.time-to-live=7200000 (Note: for ttl = 2hr).

  4. Restart packetmaner services.

  5. Restart regproc services.

Check:

  1. Check Packetmanager logs for redis cache health check.

  2. Check if messages are present in REDIS cache server.