Elastic Load Balance
Elastic Load Balance
- What's New
- Function Overview
-
Service Overview
- What Is ELB?
- Product Advantages
- How ELB Works
- Application Scenarios
- Differences Between Dedicated and Shared Load Balancers
- Load Balancing on a Public or Private Network
- Network Traffic Paths
- Specifications of Dedicated Load Balancers
- Quotas and Constraints
- Billing (Dedicated Load Balancers)
- Permissions
- Product Concepts
- How ELB Works with Other Services
- Change History
- Getting Started
-
User Guide
-
Load Balancer
- Overview
- Preparations for Creating a Load Balancer
- Creating a Dedicated Load Balancer
- Creating a Shared Load Balancer
- Modifying the Bandwidth
- Changing the Specifications of a Dedicated Load Balancer
- Changing an IP Address
- Binding an IP Address to or Unbinding an IP Address from a Load Balancer
- Adding to or Removing from an IPv6 Shared Bandwidth
- Enabling or Disabling a Load Balancer
- Exporting the Load Balancer List
- Deleting a Load Balancer
- Listener
- Advanced Features of HTTP/HTTPS Listeners
- Backend Server Group
- Backend Server (Dedicated Load Balancers)
- Backend Server (Shared Load Balancers)
- Certificate
- Access Control
- TLS Security Policy
- Tag
- Access Logging
- Monitoring
- Auditing
- Permissions Management
- Quotas
- Appendix
- Change History
-
Load Balancer
- Best Practices
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- APIs (V3)
- Examples
- Permissions and Supported Actions
- Appendix
- SDK Reference
-
FAQs
- Popular Questions
-
ELB Use
- Service Abnormality
-
ELB Functionality
- Can ELB Be Used Separately?
- Does ELB Support Persistent Connections?
- Does ELB Support FTP on Backend Servers?
- Can ELB Block DDoS Attacks and Secure Web Code?
- Is an EIP Assigned Exclusively to a Load Balancer?
- How Many Load Balancers and Listeners Can I Have?
- What Types of APIs Does ELB Provide? What Are Permissions of ELB?
- Can I Adjust the Number of Backend Servers When a Load Balancer is Running?
- Can Backend Servers Run Different OSs?
- Can I Configure Different Backend Ports for a Load Balancer?
- Are There Any Restrictions on the Frequency of Access from an IP Address?
- Can ELB Be Used Across Accounts or VPCs?
- Can Backend Servers Access the Ports of a Load Balancer?
- Can I Bind a Public IP Address Purchased from a Third-Party Cloud Provider to My Load Balancer?
- Can Both the Listener and Backend Server Group Use HTTPS?
- Can I Change the VPC and Subnet for My Load Balancer?
- Does ELB Support IPv6 Networks?
- Load Balancing Performance
-
Load Balancers
- What Is Quota?
- How Does ELB Distribute Traffic?
- How Can I Access a Load Balancer Across VPCs?
- How Can I Configure Load Balancing for Containerized Applications?
- Why Can't I Delete My Load Balancer?
- Do I Need to Configure Bandwidth for My Load Balancers?
- Can I Bind Multiple EIPs to a Load Balancer?
- Why Multiple IP Addresses Are Required When I Create or Enable a Load Balancer?
- Why Are Requests from the Same IP Address Routed to Different Backend Servers When the Load Balancing Algorithm Is Source IP Hash?
- Can Backend Servers Access the Internet Using the EIP of the Load Balancer?
- Will Traffic Routing Be Interrupted If the Load Balancing Algorithm Is Changed?
- What Is the Difference Between the Bandwidth Included in Each Specification of a Dedicated Load Balancer and the Bandwidth of an EIP?
- How Do I Combine ELB and WAF?
-
Listeners
- What Are the Relationships Between Load Balancing Algorithms and Sticky Session Types?
- Can I Bind Multiple Certificates to a Listener?
- Do HTTP and HTTP Listeners Support the X-Forwarded-Host Header?
- Will ELB Stop Distributing Traffic Immediately After a Listener Is Deleted?
- Does ELB Have Restrictions on the File Upload Speed and Size?
- Can Multiple Load Balancers Route Requests to One Backend Server?
- How Is WebSocket Used?
- What Are the Three Timeouts of a Listener and What Are the Default Durations?
- Why Can't I Select the Target Backend Server Group When Adding or Modifying a Listener?
- Why Cannot I Add a Listener to a Dedicated Load Balancer?
-
Backend Servers
- Why Is the Interval at Which Backend Servers Receive Health Check Packets Different from What I Have Configured?
- Can Backend Servers Access the Internet After They Are Associated with a Load Balancer?
- Can ELB Distribute Traffic Across Servers That Are Not Provided by Huawei Cloud?
- Can ELB Route Traffic Across Regions?
- Does Each Backend Server Need an EIP to Receive Requests from a Public Network Load Balancer?
- How Do I Check the Network Conditions of a Backend Server?
- How Can I Check the Network Configuration of a Backend Server?
- How Do I Check the Status of a Backend Server?
- How Long Is the Timeout Duration of Connections Between a Load Balancer and Backend Servers?
- When Is a Backend Server Considered Healthy?
- How Do I Check Whether a Backend Server Can Be Accessed Through an EIP?
- Why Is the Number of Active Connections Monitored by Cloud Eye Different from the Number of Connections Established with the Backend Servers?
- Why Can I Access Backend Servers After a Whitelist Is Configured?
- When Will Modified Weights Take Effect?
- How Much Time Is Required for a Load Balancer to Disconnect from Backend Servers After The Servers Are Removed?
- Why Must the Subnet Where the Load Balancer Resides Have at Least 16 Available IP Addresses for Enabling IP as a Backend?
-
Health Checks
- How Do I Troubleshoot an Unhealthy Backend Server?
- Why Is the Interval at Which Backend Servers Receive Health Check Packets Different from the Configured Interval?
- How Does ELB Perform UDP Health Checks? What Are the Precautions for UDP Health Checks?
- Why Does ELB Frequently Send Requests to Backend Servers During Health Checks?
- When Does a Health Check Start?
- Do Maximum Retries Include Health Checks That Consider Backend Servers Unhealthy?
- What Do I Do If a Lot of Access Logs Are Generated During Health Checks?
- What Status Codes Will Be Returned If Backend Servers Are Identified as Healthy?
- Obtaining Source IP Addresses
-
HTTP/HTTPS Listeners
- Which Protocol Should I Select for the Backend Server Group When Adding an HTTPS Listener?
- Why Is There a Security Warning After a Certificate Is Configured?
- Why Is a Forwarding Policy in the Faulty State?
- Why Can't I Add a Forwarding Policy to a Listener?
- Why Cannot I Select an Existing Backend Server Group When Adding a Forwarding Policy?
- Sticky Sessions
- Certificates
- Monitoring
- Billing
- Videos
On this page
Show all
Help Center/
Elastic Load Balance/
API Reference/
Examples/
Creating a Dedicated Load Balancer and Binding a New EIP to It
Creating a Dedicated Load Balancer and Binding a New EIP to It
Updated on 2022-09-24 GMT+08:00
Scenarios
Call APIs to create a dedicated load balancer and bind a new EIP to it.
Prerequisites
You have created a VPC and a subnet.
Procedure
- Query the subnet you have created.
- Send GET https://{vpc_endpoint}/v1/{project_id}/subnets. project_id indicates the project ID.
- Add X-Auth-Token to the request header.
- Check the response.
- The request is successful if the following response is displayed:
{ "subnets": [ { "id": "0535759e-8104-49d9-902c-a05185a94bdf", // Subnet ID "name": "subnet-001", // Subnet name "description": "", "cidr": "172.16.66.0/24", //IPv4 address range "dnsList": [ "100.125.4.6" ], "status": "ACTIVE", "vpc_id": "44789a9f-3e80-451a-ac03-0818f99b6cdd", // VPC ID "ipv6_enable": true, "gateway_ip_v6": "2001:db8:a583:37c::1", "cidr_v6": "2001:db8:a583:37c::/64", "gateway_ip": "172.16.66.1", "dhcp_enable": true, "primary_dns": "100.125.4.6", "availability_zone": "eu-de-01", //AZ of the subnet "neutron_network_id": "0535759e-8104-49d9-902c-a05185a94bdf", // Network ID "neutron_subnet_id": "1492f0ba-cfce-4e2c-86f7-561d757dfeee", // IPv4 subnet ID "neutron_subnet_id_v6": "3c052475-b50b-49b9-abb1-558bad45e592", "extra_dhcp_opts": [ { "opt_value": "8760h", "opt_name": "addresstime" } ] } ] }
- If the request is abnormal, locate the fault by referring to Error Codes.
- The request is successful if the following response is displayed:
- Create a dedicated load balancer and bind a new EIP to it.
- Send POST https://{elb_endpoint}/v3/{project_id}/elb/loadbalancers. project_id indicates the project ID.
- Add X-Auth-Token to the request header.
- Ensure that the following parameters, including publicip, are passed in the request body:
{ "loadbalancer": { "vpc_id": "e5a892ff-3c33-44ef-ada5-b713eb1f7a8b", "availability_zone_list": [ "br-iaas-odin1a" ], "admin_state_up": true, "vip_subnet_cidr_id": "1800b6b8-a69f-4719-813d-24d62aaf32bd", "name": "elb-ipv4", "publicip": { "network_type": "5_bgp", "bandwidth": { "size": 2, "share_type": "PER", "charge_mode": "bandwidth", "name": "elb_eip_bandwidth" } } } }
- Check the response.
- The request is successful if the following response is displayed:
{ "request_id": "21177eb184c52c5a4540c78dc7fdaee4", "loadbalancer": { "id": "a2556f92-3310-4173-a6d1-0b2d0bb68478", "project_id": "060576782980d5762f9ec014dd2f1148", "name": "elb-ipv4", "description": "", "vip_port_id": "fff961a9-4514-4469-84d4-a2bc4fbdfbeb", "vip_address": "192.168.0.162", "admin_state_up": true, "provisioning_status": "ACTIVE", "operating_status": "ONLINE", "listeners": [], "pools": [], "tags": [], "provider": "vlb", "created_at": "2021-02-23T08:50:19Z", "updated_at": "2021-02-23T08:50:19Z", "vpc_id": "e5a892ff-3c33-44ef-ada5-b713eb1f7a8b", "enterprise_project_id": "0", "availability_zone_list": [ "br-iaas-odin1a" ], "ipv6_vip_address": null, "ipv6_vip_virsubnet_id": null, "ipv6_vip_port_id": null, "ipv6_bandwidth": null, "publicips": [ { "publicip_id": "12cba100-764e-476c-bf3f-8aba98782cf5", "publicip_address": "10.246.173.188", "ip_version": 4 } ], "elb_virsubnet_ids": [ "4df3e391-5ebf-4300-b614-cf5a4e793666" ], "elb_virsubnet_type": "dualstack", "ip_target_enable": false, "frozen_scene": null, "eips": [ { "eip_id": "12cba100-764e-476c-bf3f-8aba98782cf5", "eip_address": "10.246.173.188", "ip_version": 4 } ], "guaranteed": true, "billing_info": null, "l4_flavor_id": null, "l4_scale_flavor_id": null, "l7_flavor_id": null, "l7_scale_flavor_id": null, "vip_subnet_cidr_id": "1800b6b8-a69f-4719-813d-24d62aaf32bd" } }
- If the request is abnormal, locate the fault by referring to Error Codes.
- The request is successful if the following response is displayed:
Parent topic: Examples
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.