Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions onecache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@

<group name="group1" hash_min="0" hash_max="19" policy="master_only">
<!--组名为 group1 哈希映射的范围为0~19 (包含0,19) 使用的策略为 master_only-->
<host host_name="host1" ip="172.30.12.12" port="6379" master="1" password="" connect_num="50"></host>
<host host_name="host1" ip="172.30.12.12" port="6380" master="0" password="" connect_num="50"></host>
<host host_name="host1" ip="172.30.12.12" port="6379" master="1" password="" connection_num="50"></host>
<host host_name="host1" ip="172.30.12.12" port="6380" master="0" password="" connection_num="50"></host>
<!--host_name 表示主机别名-->
<!--ip Redis服务器IP-->
<!--port Redis服务器端口-->
<!--master 是否主备 1:主 0:备-->
<!--password 表示redis服务器的验证密码-->
<!--connect_num 表示连接到redis服务器的连接池大小-->
<!--connection_num 表示连接到redis服务器的连接池大小-->
</group>
<group name="group2" hash_min="20" hash_max="39">
<host host_name="host1" ip="172.30.12.12" port="6381" master="1"></host>
Expand Down