...
- APIs and Business logic - Alena Prokharchyk
- Backend - to be assigned
Use case
There are 2 tiers in the VPC - Web tier A and Application tier B. Traffic to Web tier is balanced on the VPC VR on the public side. Admin wants traffic coming from LB to App tier to be balanced as well. Load balancing on the APP tier will be covered by the Internal LB feature.
...
General flow
- Create App tier using network offering with Service=Lb, Provider=InteralLBVm
- Acquire guest IP address - Ip1 - from the App tier.
- Create Internal Load Balancer LB1 for Ip1, loadBalancerPort 80, instancePort 80. The new internal LB VM starts up on App tier with the Ip1.
- Add vm1 to the LB1. The rule for Ip1/VM1/ports 80:80 is configured inside the HA proxy
- Add vm2 to the LB1. The rule for IP1/VM2/80:80 is configured inside the HA Proxy
- Create Internal Load Balancer LB2 for IP1, loadBalancerPort port 81, instancePort 81. No need to start a new Internal LB vm as it's been already started for IP1.
- If you want to manage access from tier A to tier B, setup Network ACLs
...
- Introduce new Network Element - InternalLBVm. Make it extend LoadBalancingServiceProvider interface.
- Introduce InternalLBNetworkApplianceManager
- Allow to use network offering having LB/InternalLBVm to be used only when create network inside VPC
...
Backend changes
...
For the backend engineer to complete. We might need a separate template/set of scripts for this kind of vm, or we might use the existing VR template.
...
Web Services API
...
No changes to existing Apis
...
DB changes
...
Add one more default Network offering having LB Service with Internal LB provider. Insert this offering as a part of the upgrade as well.
...
Question: should we allow destroying the vm with DestroySystemVM command?
Limitations
- Internal and Public Lb are mutually exclusive on a tier. If the tier has LB on the public side, then it can't have the Internal LB
- Supported just on VPC networks
UI
TBD