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>
26 lines
4.6 KiB
HTML
26 lines
4.6 KiB
HTML
<a name="dcs-faq-0730010"></a><a name="dcs-faq-0730010"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Troubleshoot Redis Connection Failures?</h1>
|
|
<div id="body1596093268949"><p id="dcs-faq-0730010__en-us_topic_0152099099_p1220253901312"><strong id="dcs-faq-0730010__b193371534125919">Preliminary checks:</strong></p>
|
|
<ul id="dcs-faq-0730010__en-us_topic_0152099099_ul1046719202222"><li id="dcs-faq-0730010__en-us_topic_0152099099_li11467620102213">Check the connection address.<p id="dcs-faq-0730010__en-us_topic_0152099099_p2679175422217"><a name="dcs-faq-0730010__en-us_topic_0152099099_li11467620102213"></a><a name="en-us_topic_0152099099_li11467620102213"></a>Obtain the connection address from the instance basic information page on the DCS console.</p>
|
|
</li><li id="dcs-faq-0730010__en-us_topic_0152099099_li10467152082214">Check the instance password.<p id="dcs-faq-0730010__en-us_topic_0152099099_p191321182317"><a name="dcs-faq-0730010__en-us_topic_0152099099_li10467152082214"></a><a name="en-us_topic_0152099099_li10467152082214"></a>If the instance password is incorrect, the port can still be accessed but the authentication will fail.</p>
|
|
</li><li id="dcs-faq-0730010__en-us_topic_0152099099_li204675203221">Check the port.<p id="dcs-faq-0730010__en-us_topic_0152099099_p1440165418233"><a name="dcs-faq-0730010__en-us_topic_0152099099_li204675203221"></a><a name="en-us_topic_0152099099_li204675203221"></a>Port 6379 is the default port used in intra-VPC access to a DCS Redis instance.</p>
|
|
</li><li id="dcs-faq-0730010__en-us_topic_0152099099_li1017384662415">Check if the maximum bandwidth has been reached.<p id="dcs-faq-0730010__en-us_topic_0152099099_p1797526102510"><a name="dcs-faq-0730010__en-us_topic_0152099099_li1017384662415"></a><a name="en-us_topic_0152099099_li1017384662415"></a>If the bandwidth reaches the maximum bandwidth for the corresponding instance specifications, Redis connections may time out.</p>
|
|
</li><li id="dcs-faq-0730010__en-us_topic_0152099099_li1846772016228">For a DCS Redis 3.0 instance, check the inbound access rules of the security group.<p id="dcs-faq-0730010__en-us_topic_0152099099_p14645112182815"><a name="dcs-faq-0730010__en-us_topic_0152099099_li1846772016228"></a><a name="en-us_topic_0152099099_li1846772016228"></a>Intra-VPC access: If the Redis client and the Redis instance are bound with different security groups, allow inbound access over port 6379 for the security group of the instance.</p>
|
|
<p id="dcs-faq-0730010__p14803202620398">For details, see <a href="en-us_topic_0090662012.html">Security Group Configurations</a>.</p>
|
|
</li><li id="dcs-faq-0730010__li2046822714264">For a DCS Redis 4.0 or 5.0 instance, check the whitelist configuration.<p id="dcs-faq-0730010__p86935385270"><a name="dcs-faq-0730010__li2046822714264"></a><a name="li2046822714264"></a>If the instance has a whitelist, ensure that the client IP address is included in the whitelist. Otherwise, the connection will fail.</p>
|
|
<p id="dcs-faq-0730010__p1429974202718">For details, see <a href="dcs-ug-190812001.html">Managing IP Address Whitelist</a>.</p>
|
|
<p id="dcs-faq-0730010__p13299216102715">If the client IP address has changed, add the new IP address to the whitelist.</p>
|
|
</li><li id="dcs-faq-0730010__en-us_topic_0152099099_li10464192019419">Check the configuration parameter <strong id="dcs-faq-0730010__b13215165255914">notify-keyspace-events</strong>.<p id="dcs-faq-0730010__en-us_topic_0152099099_p66120341344">Set <strong id="dcs-faq-0730010__b1961115532594">notify-keyspace-events</strong> to <strong id="dcs-faq-0730010__b1761113531598">Egx</strong>.</p>
|
|
</li></ul>
|
|
<p id="dcs-faq-0730010__en-us_topic_0152099099_p1253519119149"><strong id="dcs-faq-0730010__b93118556595">Further checks:</strong></p>
|
|
<ul id="dcs-faq-0730010__en-us_topic_0152099099_ul164841037163114"><li id="dcs-faq-0730010__en-us_topic_0152099099_li17484143710315">Jedis connection pool error</li><li id="dcs-faq-0730010__en-us_topic_0152099099_li2049319151671">Error "Read timed out" or "Could not get a resource from the pool"<p id="dcs-faq-0730010__en-us_topic_0152099099_p34261161283"><a name="dcs-faq-0730010__en-us_topic_0152099099_li2049319151671"></a><a name="en-us_topic_0152099099_li2049319151671"></a>Check if the <strong id="dcs-faq-0730010__b1691313590595">KEYS</strong> command has been used. This command consumes a lot of resources and can easily block Redis. Instead, use the <strong id="dcs-faq-0730010__b15168419013">SCAN</strong> command and avoid executing the command frequently.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dcs-faq-0326020.html">Client and Network Connection</a></div>
|
|
</div>
|
|
</div>
|
|
|