forked from docs/doc-exports
Reviewed-by: Liudmila Denisova <ldenisov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: chenjunjie <chenjunjie@huawei.com> Co-committed-by: chenjunjie <chenjunjie@huawei.com>
184 lines
15 KiB
HTML
184 lines
15 KiB
HTML
<a name="CacheCluster"></a><a name="CacheCluster"></a>
|
|
|
|
<h1 class="topictitle1">Proxy Cluster Redis</h1>
|
|
<div id="body1600250975360"><p id="CacheCluster__p1691110491160">DCS for Redis provides Proxy Cluster instances, which use Linux Virtual Server (LVS) and proxies to achieve high availability. Proxy Cluster instances have the following features:</p>
|
|
<ul id="CacheCluster__ul1265853801012"><li id="CacheCluster__li365893819101">The client is decoupled from the cloud service.</li><li id="CacheCluster__li565815388101">They support millions of concurrent requests, equivalent to Redis Cluster instances.</li><li id="CacheCluster__li465893811014">A wide range of memory specifications adapt to different scenarios.</li></ul>
|
|
<div class="note" id="CacheCluster__note134811721192210"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="CacheCluster__ul1758133822318"><li id="CacheCluster__li758133852319">A Proxy Cluster instance can be connected in the same way that a single-node or master/standby instance is connected, without any special settings on the client. You can use the IP address of the instance, and do not need to know or use the proxy or shard addresses.</li></ul>
|
|
</div></div>
|
|
<div class="section" id="CacheCluster__section946143384218"><h4 class="sectiontitle">Proxy Cluster DCS Redis 4.0/5.0/6.0 Instances</h4><p id="CacheCluster__p15151319104314">Proxy Cluster DCS Redis 4.0/5.0/6.0 instances are built based on open-source Redis 4.0/5.0/6.0 and compatible with <a href="https://github.com/CodisLabs/codis" target="_blank" rel="noopener noreferrer">open source codis</a>. They provide multiple large-capacity specifications ranging from 4 GB to 1024 GB and .</p>
|
|
<p id="CacheCluster__p6921194025014"><a href="#CacheCluster__table3552324111">Table 1</a> lists the number of shards corresponding to different specifications. You can customize the shard size when creating an instance. Currently, the number of shards and replicas cannot be customized. By default, each shard has two replicas.</p>
|
|
<p id="CacheCluster__p17223016111"><strong id="CacheCluster__b973712331448">Memory per shard = Instance specification/Number of shards</strong>. For example, if a 48 GB instance has 6 shards, the size of each shard is 48 GB/6 = 8 GB.</p>
|
|
|
|
<div class="tablenoborder"><a name="CacheCluster__table3552324111"></a><a name="table3552324111"></a><table cellpadding="4" cellspacing="0" summary="" id="CacheCluster__table3552324111" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Specifications of Proxy Cluster DCS Redis 4.0/5.0/6.0 instances</caption><thead align="left"><tr id="CacheCluster__row65521623113"><th align="left" class="cellrowborder" valign="top" width="22.56%" id="mcps1.3.4.5.2.5.1.1"><p id="CacheCluster__p1955210211118">Total Memory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.120000000000001%" id="mcps1.3.4.5.2.5.1.2"><p id="CacheCluster__p4666439770">Proxies</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="25.319999999999997%" id="mcps1.3.4.5.2.5.1.3"><p id="CacheCluster__p04843421456">Shards</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="37%" id="mcps1.3.4.5.2.5.1.4"><p id="CacheCluster__p10705195735213">Memory per Shard (GB)</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="CacheCluster__row1464993510548"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p126505357545">4 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p5666239376">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p665033510546">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p370555712524">1.33</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row1465023515544"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p176201956135416">8 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p866717391579">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p2651113535411">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p10651173512547">2.67</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row265163535419"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p1465143595418">16 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p46671139077">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p1865111355544">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p1165183555411">5.33</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row665163517546"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p1651335125417">24 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p1266719394718">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p166511035125412">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p15651735105412">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row155314218115"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p491514405611">32 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p10667939877">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p207903579620">3</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p113863985519">10.67</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row1731117227614"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p99166401567">48 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p18667153917714">6</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p1779095710616">6</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p370619576520">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row113126221669"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p891617401862">64 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p566711397713">8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p97906571561">8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p187067578527">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row10313162217619"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p19161140362">96 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p156671539275">12</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p879011574611">12</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p5706165711521">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row93136221568"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p15916164015619">128 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p76673393710">16</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p1679065712610">16</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p14706657195220">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row123147221965"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p1591613409619">192 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p18667839878">24</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p137910577616">24</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p67061357135216">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row1297218281269"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p4916140966">256 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p1966713391272">32</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p87911957860">32</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p1270617578529">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row14566154853519"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p356774883515">384 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p9667139078">48</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p10567548133513">48</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p187061057175211">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row8567124814359"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p14311185913513">512 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p19667439277">64</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p20567184883518">64</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p17071057175214">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row7567114814356"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p967654163618">768 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p14667939678">96</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p13568194813354">96</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p1670718574529">8</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="CacheCluster__row1656844810350"><td class="cellrowborder" valign="top" width="22.56%" headers="mcps1.3.4.5.2.5.1.1 "><p id="CacheCluster__p209424813617">1024 GB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.120000000000001%" headers="mcps1.3.4.5.2.5.1.2 "><p id="CacheCluster__p2066733918717">128</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="25.319999999999997%" headers="mcps1.3.4.5.2.5.1.3 "><p id="CacheCluster__p155682483350">128</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="37%" headers="mcps1.3.4.5.2.5.1.4 "><p id="CacheCluster__p970745714524">8</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="fignone" id="CacheCluster__fig333235812453"><span class="figcap"><b>Figure 1 </b>Architecture of a Proxy Cluster DCS Redis 4.0/5.0/6.0 instance</span><br><span><img id="CacheCluster__image233335814457" src="en-us_image_0000001433519397.png"></span></div>
|
|
<p id="CacheCluster__p92455403117">Architecture description:</p>
|
|
<ul id="CacheCluster__ul1656634373315"><li id="CacheCluster__li1056634315335"><strong id="CacheCluster__b1856604314336">VPC</strong><p id="CacheCluster__p1956624353316">All server nodes of the cluster instance run in the same VPC.</p>
|
|
<div class="note" id="CacheCluster__note1056694315338"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="CacheCluster__p175668437337">The client and the cluster instance must be in the same VPC, and the instance whitelist must allow access from the client IP address.</p>
|
|
</div></div>
|
|
</li><li id="CacheCluster__li65663435338"><strong id="CacheCluster__b20269447170">Application</strong><p id="CacheCluster__p5567743123317">The client used to access the instance.</p>
|
|
<p id="CacheCluster__p12567114363311">DCS Redis instances can be accessed through open-source clients. For details about accessing DCS instances in different languages, see <a href="dcs-ug-0916002.html">Accessing an Instance</a>.</p>
|
|
</li><li id="CacheCluster__li553320399371"><strong id="CacheCluster__b670514518819">VPC endpoint service</strong><p id="CacheCluster__p8685161011528">You can configure your DCS Redis instance as a VPC endpoint service and access the instance at the VPC endpoint service address.</p>
|
|
<p id="CacheCluster__p151417874214">The IP address of the Proxy Cluster DCS Redis instance is the address of the VPC endpoint service.</p>
|
|
</li><li id="CacheCluster__li75671043113311"><strong id="CacheCluster__b9611355174912">ELB</strong><p id="CacheCluster__p1356734343311">The load balancers, which are deployed in cluster HA mode.</p>
|
|
</li><li id="CacheCluster__li18567114311335"><strong id="CacheCluster__b8567104311337">Proxy</strong><p id="CacheCluster__p145677437332">The proxy server used to achieve high availability and process high-concurrency client requests.</p>
|
|
<p id="CacheCluster__p1656716436336">You cannot connect to a Proxy Cluster instance at the IP addresses of its proxies.</p>
|
|
</li><li id="CacheCluster__li1567164319336"><strong id="CacheCluster__b0249556881">Redis cluster</strong><p id="CacheCluster__p16567543123316">A shard of the cluster.</p>
|
|
<p id="CacheCluster__p1056784311339">By default, each shard is a master/standby dual-replica Redis instance. When the master instance is faulty, the standby node will be switched to the master one after 15 to 30 seconds. Access to the shard will fail until the switchover is complete.</p>
|
|
<p id="CacheCluster__p205671843133312">If both the master and standby nodes of a shard are faulty, the cluster can still provide services but the data on the faulty shard is inaccessible.</p>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dcs-pd-200312001.html">DCS Instance Types</a></div>
|
|
</div>
|
|
</div>
|
|
|