General Concepts
- Reverseproxy vs load balancer
- Load balancer: balances load across multiple servers
- Reverseproxy : load balancer ++; It has more features than a load balancer
- Load balancer
- Caching
- SSL termination
- Compression
- Global server load balancing (GSLB) : Global server loading balancing (GSLB) refers to web traffic management and application delivery over multiple data centers and/or public or private clouds in various geographical areas. Application load at each location is typically managed by “local” load balancers, and client requests are generally sent to closer servers to ensure minimal latency and maximum performance.
F5 Big-IP Concepts
- Node: A node is a logical object on the BIG-IP LTMsystem that identifies the IP address of a physical resource on the network.
- Pool: A pool is a logical set of devices, such as web servers, that you group together to receive and process traffic.
- Pool Member
- A pool member is a logical object that represents a physical node on the network. Once you have assigned a pool to a virtual server, the BIG-IP system directs traffic coming into the virtual server to a member of that pool.
- An individual pool member can belong to one or multiple pools, depending on how you want to manage your network traffic.
- The difference between a node and a pool member is that a node is designated by the device’s IP address only (10.10.10.10), while designation of a pool member includes an IP address and a service (such as 10.10.10.10:80).
- F5 Virtual server
- A virtual server is a proxy of the actual server (physical, virtual, or container). Combined with a virtual IP address, this is the application endpoint that is presented to the outside world
- A virtual server is a traffic-management object on the BIG-IP system that is represented by a virtual IP address and a service, such as 192.168.20.10:80 Image credit: https://cmdref.net/hardware/bigip/index.html
- Virtual Server Types
- Standard : Load balancer that directs client traffic to a load balancing pool and is the most basic type of virtual server.
- Forwarding Layer 2
- Forwarding IP
- Performance HTTP
- Performance Layer4
- Stateless
- Reject
- DHCP
- Internal
- Destination address
- When creating a virtual server, you must specify a destination address. You can specify either a host address or a network address.
- Host address: With a host address, a virtual server can listen for client connections that are destined for the host address and then direct them to a server in a server pool
- Network address: With a network address (specifically, an address whose host bit is set to 0), a virtual server can direct client connections that are destined for an entire range of IP addresses, rather than for a single destination IP address
- Load balancing methods
- Static methods
- Round Robin
- Ratio load balancing
- Dynamic methods
- Least connections
- Fastest load balancing
- Priority Group Activation: Priority Group Activation load balancing allows pool members to be used only if preferred pool members are unavailable
- Failback Host
- Static methods
- Monitors: The BIG-IP system uses monitors to check whether or not pool members are eligible to service application traffic
- BIG-IP systems include native support for a wide number of protocols and proprietary applications and services, including TCP, UDP, HTTP, HTTPS, SIP, LDAP, SOAP, MSSQL, MySQL, and others.
Reference: https://support.f5.com/csp/article/K02024845
Create Virtual Server Workflow
- Get Big-IQ device reference
- Url: /mgmt/shared/resolver/device-groups/cm-bigip-allBigIpDevices/devices/?$filter=hostname eq bigIPDevice’
- selfLink property of the device is the deviceReference we would be using in step2
- Create a node
- Create a pool
- Add member to pool
- Create a virtual server
- Attach a pool to the server
- Attach profiles to virtual server
Reference: https://clouddocs.f5.com/products/big-iq/mgmt-api/v7.0.0/HowToSamples/bigiq_public_api_wf/t_create_simple_application.html