redis-proxy是一个以redis协议为主的高性能稳定的代理中间件服务,不侵入业务代码,与业务毫无联系,不需要改任何应用代码,天然支持分布式部署。
一:功能特点:
1:自带连接池,性能高效 2:提供分片策略,扩展性强,可自定义分片算法 3:提供读写分离,一主多从,从按照权重读取 4:提供自动监听功能,主挂了,提供选举算法,从作为主 5:可HA分布式部署,节点随意扩展二:redis-proxy架构图 三:redis-proxy部署架构图
四:例子配置文件:
<?xml versio="1.0" ecodig="UTF-8"?> <beas xmls="https://www.sprigframework.org/schema/beas"xmls:redisProxy="https://www.redisproxy.com/redisProxy" xmls:xsi="https://www.w3.org/2001/XMLSchema-istace" xsi:schemaLocatio="https://www.sprigframework.org/schema/beas https://www.sprigframework.org/schema/beas/sprig-beas-4.0.xsd https://www.redisproxy.com/redisProxy https://www.redisproxy.com/redisProxy/redisProxy.xsd" > <!--redis 主从配置 --> <redisProxy:redisProxyNode id="wadaredisode" redisProxyHost="127.0.0.1" redisProxyPort="6379" algorithm-ref="loadMasterBalace" address="127.0.0.1:2181"> <redisProxy:redisProxyMaster id="wadaredismasters" host="127.0.0.1" port="6380" timeout="5000" maxActiveCoectio="5000" maxIdleCoectio="500" miCoectio="50" algorithm-ref="loadClusterBalace"> <redisProxy:redisProxyCluster id="wadarediscluster0" host="127.0.0.1" port="6381" timeout="5000" maxActiveCoectio="5000" maxIdleCoectio="500" miCoectio="50" weight="1"></redisProxy:redisProxyCluster> </redisProxy:redisProxyMaster> </redisProxy:redisProxyNode> <bea ame="loadMasterBalace" class="com.opesource.etty.redis.proxy.core.cluster.impl.CosistetHashLoadBalace"></bea> <bea ame="loadClusterBalace" class="com.opesource.etty.redis.proxy.core.cluster.impl.RoudRobiLoadBalace"></bea> </beas>








评论