forked from docs/doc-exports
Reviewed-by: Szirovicza Gergő <a94652429@noreply.gitea.eco.tsi-dev.otc-service.com> Reviewed-by: Sarda, Priya <prsarda@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: fanqinying <fanqinying@huawei.com> Co-committed-by: fanqinying <fanqinying@huawei.com>
28 lines
6.2 KiB
HTML
28 lines
6.2 KiB
HTML
<a name="vpc_Concepts_0012"></a><a name="vpc_Concepts_0012"></a>
|
|
|
|
<h1 class="topictitle1">Virtual IP Address</h1>
|
|
<div id="body1498184454066"><p id="vpc_Concepts_0012__p19486675102435">You can use either IP address to enable layer 2 and layer 3 communications in a VPC, access a different VPC using peering connections, and access cloud servers through EIPs, Direct Connect connections, and VPN connections.</p>
|
|
<p id="vpc_Concepts_0012__p2022875611243">You can bind a virtual IP address to ECSs deployed in the active/standby pair, and then bind an EIP to the virtual IP address. Virtual IP addresses can work together with Keepalived to ensure high availability and disaster recovery. If the active ECS is faulty, the standby ECS automatically takes over services from the active one.</p>
|
|
<div class="section" id="vpc_Concepts_0012__section766193134213"><h4 class="sectiontitle">Networking</h4><p id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_p12708750081">Virtual IP addresses are used for high availability and can work together with Keepalived to make active/standby ECS switchover possible. This way if one ECS goes down for some reason, the other one can take over and services continue uninterrupted. This following describes two typical networking modes.</p>
|
|
<ul id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_ul15649827651"><li id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li196495271751"><strong id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_b842352706111611">Networking mode 1</strong>: HA<p id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_p146499271755">To improve service availability and eliminate single points of failure, you can deploy ECSs in the active/standby pair or deploy one active ECS and multiple standby ECSs. And then, you can bind the same virtual IP address to these ECSs. If the active ECS becomes faulty, a standby ECS takes over services from the active ECS and services continue uninterrupted.</p>
|
|
<div class="fignone" id="vpc_Concepts_0012__en-us_topic_0206027322_fig127741244152518"><span class="figcap"><b>Figure 1 </b>Networking diagram of the HA mode</span><br><span><img id="vpc_Concepts_0012__en-us_topic_0206027322_image777544415258" src="en-us_image_0209608153.png"></span></div>
|
|
<ul id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_ul121215010101"><li id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li192651755693">As shown in the above figure, bind a virtual IP address to two ECSs in the same subnet.</li><li id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li936613521895">Configure Keepalived for the two ECSs to work in the active/standby pair. Follow industry standards for configuring Keepalived. The details are not included here.</li></ul>
|
|
</li><li id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li762416146110"><strong id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_b1846766796115322">Networking mode 2</strong>: HA load balancing cluster<p id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_p11649182719517">If you want to build a high-availability load balancing cluster, use Keepalived and configure LVS nodes as direct routers.</p>
|
|
<div class="fignone" id="vpc_Concepts_0012__en-us_topic_0206027322_fig10769151182615"><span class="figcap"><b>Figure 2 </b>HA load balancing cluster</span><br><span><img id="vpc_Concepts_0012__en-us_topic_0206027322_image19770181115260" src="en-us_image_0209608154.png"></span></div>
|
|
<div class="p" id="vpc_Concepts_0012__en-us_topic_0206027322_p7383137142419"><ul id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_ul99511251121418"><li id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li159512512142">Bind a single virtual IP address to two ECSs.</li><li id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li41711393151">Configure the two ECSs as LVS nodes working as direct routers and use Keepalived to configure the nodes in the active/standby pair. The two ECSs will evenly forward requests to different backend servers.</li><li id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li35441546171514">Configure two more ECSs as backend servers.</li><li id="vpc_Concepts_0012__en-us_topic_0206027322_li1656461354">Disable the source/destination check for the two backend servers.</li></ul>
|
|
</div>
|
|
<p id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_p106496270514">Follow industry standards for configuring Keepalived. The details are not included here.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="vpc_Concepts_0012__section43011914174217"><h4 class="sectiontitle">Application Scenarios</h4><ul id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_ul15904204002112"><li id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li132751510142217">Accessing the virtual IP address through an <span id="vpc_Concepts_0012__en-us_topic_0206027322_text161541149195414"></span><span id="vpc_Concepts_0012__en-us_topic_0206027322_text14154104935414">EIP</span><p id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_p5797171092219">If your application has high availability requirements and needs to provide services through the Internet, it is recommended that you bind an EIP to a virtual IP address.</p>
|
|
</li><li id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li20976160192217">Using a VPN, Direct Connect, or VPC peering connection to access a virtual IP address<p id="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_p1984112782114"><a name="vpc_Concepts_0012__en-us_topic_0206027322_en-us_topic_0095139658_li20976160192217"></a><a name="en-us_topic_0206027322_en-us_topic_0095139658_li20976160192217"></a>To ensure high availability and access to the Internet, use a VPN for security and Direct Connect for a stable connection. A VPC peering connection is needed so that two VPCs in the same region can communicate with each other.</p>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="vpc_Concepts_0001.html">Basic Concepts</a></div>
|
|
</div>
|
|
</div>
|
|
|