forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
16 lines
1.6 KiB
HTML
16 lines
1.6 KiB
HTML
<a name="dcs-faq-0730017"></a><a name="dcs-faq-0730017"></a>
|
|
|
|
<h1 class="topictitle1">Can I Obtain the Addresses of the Nodes in a Cluster DCS Redis Instance?</h1>
|
|
<div id="body1596093268950"><p id="dcs-faq-0730017__en-us_topic_0152099097_p1483584313321">Cluster DCS Redis 3.0 instances (Proxy Cluster type) are used in the same way that you use single-node or master/standby instances. You do not need to know the backend node addresses.</p>
|
|
<p id="dcs-faq-0730017__en-us_topic_0152099097_p1835134343213">For a cluster DCS Redis 4.0 or 5.0 instance (Redis Cluster type), run the <strong id="dcs-faq-0730017__b16188355307">CLUSTER NODES</strong> command to obtain node addresses:</p>
|
|
<p id="dcs-faq-0730017__en-us_topic_0152099097_p64034338434"><strong id="dcs-faq-0730017__en-us_topic_0152099097_b1740393319431">redis-cli -h <em id="dcs-faq-0730017__en-us_topic_0152099097_i174031933184315">{redis_address}</em> -p <em id="dcs-faq-0730017__en-us_topic_0152099097_i44036333433">{redis_port}</em> -a <em id="dcs-faq-0730017__en-us_topic_0152099097_i184031833204314">{redis_password}</em> cluster nodes</strong></p>
|
|
<p id="dcs-faq-0730017__en-us_topic_0152099097_p12403163316433">In the output similar to the following, obtain the IP addresses and port numbers of all the master nodes.</p>
|
|
<p id="dcs-faq-0730017__en-us_topic_0152099097_p9149163917382"><span><img id="dcs-faq-0730017__en-us_topic_0152099097_image19820346211" src="en-us_image_0266316213.png"></span></p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dcs-faq-0326021.html">Redis Usage</a></div>
|
|
</div>
|
|
</div>
|
|
|