Example Redis setup

Guidewire recommends that your Redis cluster configuration include several redundant Redis servers. You differentiate between the multiple servers through the use of plugin parameters in your Redis implementation of the ClusterBroadcastTransport plugin. The following example plugin code illustrates how to create a plugin that defines two separate Redis servers.
<?xml version="1.0"?>
<plugin interface="ClusterBroadcastTransportFactory" name="ClusterBroadcastTransportFactory">
  <plugin-osgi servicepid="com.guidewire.pl.cluster.internal.broadcast.redis.RedisBroadcastTransportFactory">
    <param name="redisServer1" value="localhost"/>
    <param name="redisPort1" value="6379"/>
    <param name="redisServer2" value="localhost"/>
    <param name="redisPort2" value="6279"/>
</plugin-os
Note: In actual practice, Guidewire recommends that you use different physical hosts for each Redis server.
To create this plugin configuration, first navigate to the following location in the PolicyCenter Studio Project window:
  • configuration > config > Plugins > registry > ClusterBroadcastTransportFactory

In the plugin editor, click the plus icon (+) underneath Parameters to add the necessary plugin parameter names and values.