Created
February 26, 2020 08:36
-
-
Save vanhtuan0409/4135f6200fa1600b951cdc764ef2111d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<ServerList> | |
<!-- FIO config with 2 servers --> | |
<!-- Each server will be responsible for 8 bucket --> | |
<Name>fio</Name> | |
<Policy>hash</Policy> | |
<Servers name="fio1"> | |
<Addr>{addr1}</Addr> | |
<Bucket>0 1 2 3 4 5 6 7</Bucket> | |
<Proto>beansdb</Proto> | |
</Servers> | |
<Servers name="fio4"> | |
<Addr>{addr4}</Addr> | |
<Bucket>8 9 A B C D E F</Bucket> | |
<Proto>beansdb</Proto> | |
</Servers> | |
</ServerList> | |
<ServerList> | |
<!-- Memcached server --> | |
<Name>mem</Name> | |
<Policy>rnwn</Policy> | |
<Servers name="mem1"> | |
<Addr>{addr1}</Addr> | |
<Proto>memc</Proto> | |
<QueueTimeout>150</QueueTimeout> | |
<MaxConns>60</MaxConns> | |
</Servers> | |
</ServerList> | |
<ServerList> | |
<!-- HD server groups with 4 server. RNW1 policy --> | |
<!-- Writing to hd4 but reading from all --> | |
<Name>hd-rnw1</Name> | |
<Policy>rnw1</Policy> | |
<Servers name="hd1"> | |
<Addr>{addr1}</Addr> | |
<Proto>beansdb</Proto> | |
<QueueTimeout>400</QueueTimeout> | |
<MaxConns>10</MaxConns> | |
</Servers> | |
<Servers name="hd2"> | |
<Addr>{addr2}</Addr> | |
<Proto>beansdb</Proto> | |
<QueueTimeout>400</QueueTimeout> | |
<MaxConns>10</MaxConns> | |
</Servers> | |
<Servers name="hd3"> | |
<Addr>{addr3}</Addr> | |
<Proto>beansdb</Proto> | |
<QueueTimeout>400</QueueTimeout> | |
<MaxConns>10</MaxConns> | |
</Servers> | |
<Servers name="hd4"> | |
<Addr>{addr4}</Addr> | |
<Proto>beansdb</Proto> | |
<QueueTimeout>400</QueueTimeout> | |
<MaxConns>10</MaxConns> | |
</Servers> | |
<WServers name="hd4"> | |
<Addr>{addr4}</Addr> | |
<Proto>beansdb</Proto> | |
<QueueTimeout>400</QueueTimeout> | |
<MaxConns>10</MaxConns> | |
</WServers> | |
</ServerList> | |
<ServerList> | |
<!-- HD server groups with 4 server. RNWN policy --> | |
<!-- Writing to all. Reading from all --> | |
<Name>hd-rnwn</Name> | |
<Policy>rnwn</Policy> | |
<!-- hd1 is responsible for bucket [0-3] --> | |
<Servers name="hd1"> | |
<Addr>{addr1}</Addr> | |
<Proto>beansdb</Proto> | |
<QueueTimeout>400</QueueTimeout> | |
<MaxConns>10</MaxConns> | |
</Servers> | |
<!-- hd2 is responsible for bucket [4-7] --> | |
<Servers name="hd2"> | |
<Addr>{addr2}</Addr> | |
<Proto>beansdb</Proto> | |
<QueueTimeout>400</QueueTimeout> | |
<MaxConns>10</MaxConns> | |
</Servers> | |
<!-- hd3 is responsible for bucket [8-B] --> | |
<Servers name="hd3"> | |
<Addr>{addr3}</Addr> | |
<Proto>beansdb</Proto> | |
<QueueTimeout>400</QueueTimeout> | |
<MaxConns>10</MaxConns> | |
</Servers> | |
<!-- hd4 is responsible for bucket [C-F] --> | |
<Servers name="hd4"> | |
<Addr>{addr4}</Addr> | |
<Proto>beansdb</Proto> | |
<QueueTimeout>400</QueueTimeout> | |
<MaxConns>10</MaxConns> | |
</Servers> | |
</ServerList> | |
<PolicyList> | |
<App>1</App> | |
<From>1</From> | |
<!-- App 1 from 1 will use FIO and memcache and RNW1 HD groups --> | |
<FioName>fio</FioName> | |
<MemName>mem</MemName> | |
<HdName>hd-rnw1</HdName> | |
<ToCache>2</ToCache> | |
<TnToCache>2</TnToCache> | |
<MemCacheExp>1</MemCacheExp> | |
<TnMemCacheExp>1</TnMemCacheExp> | |
<MaxToMemSize>4096000</MaxToMemSize> | |
</PolicyList> | |
<PolicyList> | |
<App>1</App> | |
<From>2</From> | |
<!-- App 1 from 2 will use FIO and memcache and RNWN HD groups --> | |
<FioName>fio</FioName> | |
<MemName>mem</MemName> | |
<HdName>hd-rnwn</HdName> | |
<ToCache>2</ToCache> | |
<TnToCache>2</TnToCache> | |
<MemCacheExp>1</MemCacheExp> | |
<TnMemCacheExp>1</TnMemCacheExp> | |
<MaxToMemSize>4096000</MaxToMemSize> | |
</PolicyList> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment