Skip to content

NeusoftSecurity/ADSG-LBaaS-Driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

#Overview

ADSG supports Load Balancer as a Service (LBaaS) on OpenStack (Havana version or later). ADSG LBaaS driver is implemented based on OpenStack haproxy’s driver and thus it can provide basic load balancing service for OpenStack server instances. This guide employs three typical load balancing scenarios of ADSG. It describe how to integrate ADSG LBaaS driver as an OpenStack component, and how to configure ADSG load balancer on OpenStack to provide loading balancing as a service for clients. For information about how to install and configure ADSG, see Neusoft NetEye Application Delivery and Security Gateway Quick Start Guide.

#Load Balancing Scenarios

Both physical and virtual ADSG devices can be deployed in OpenStack environment. Typical deployment scenarios include:
2.1. VLAN Mode. Physical ADSG is deployed in OpenStack private cloud environment, and provide load balancing service for back-end servers through Layer 2 VLAN.
github

2.2. DSNAT Mode. Virtual ADSG is launched in an internal network of OpenStack, and provide load balancing service for back-end servers through Neutron router.
github

2.3. Proxy Mode. Physical ADSG is deployed in the external network of OpenStack.
github

#Install ADSG LBaaS Driver

  1. Download the NEUSOFT_ADSG driver and install it on to “..neutron/neutron/services/loadbalancer/drivers/NEUSOFT_ADSG” directory.
  2. Modify the configuration file “/etc/neutron/neutron.conf”.
    Comment out the original haproxy settings.
    Add information about ADSG:
    service_provider = LOADBALANCER:Neusoft_ADSG:neutron.services.loadbalancer.drivers.Neusoft_ADSG.adsg.AdsgDriver:default
  3. Enter service neutron-server restart to restart Neutron services.
  4. Configure ADSG LBaaS driver. Create a directory “mkdir -p /etc/neutron/services/loadbalancer/Neusoft_ADSG” and a configuration file config.py, and set as follows:
    devices = {
    "adsg1": {
    "username":"admin"
    "host": "10.1.3.119"
    "port": 10000
    "protocol": "https"
    "password": "neteye"
    "localip": "172.16.0.10,172.16.1.10"
    "use_float": False
    "method": "hash"
    }
    }
    This table describes the detailed information of parameters above:

username : Northbound interface name.
password : Northbound interface password.
host : Northbound interface IP address, used to communicate with the node where the OpenStack LBaaS driver is installed.
port : Number of the protocol used by the northbound interface.
protocol : Protocol used by the northbound interface.
localip : The IP address of one ADSG interface, used to communicate with back-end servers. It must be in the same IP segment as the pool subnet, otherwise, you cannot create a VIP. Multiple IPs are supported and they are separated by commas without spaces. The IP is configured for Layer 4 load balancing only and you can supply a null value for it when using Layer 7 load balancing.
use_float : Includes True and False.
• True—indicates that floating IPs must be set for back-end servers on OpenStack, so that the servers can access external networks.
• False—indicates that there is no need to assign floating IPs to back-endservers. You are recommended to set use_float to False in VLAN mode.
method : If there are multiple ADSG devices, the algorithm can help tenants to choose the optimal ADSG device.

About

openstack lbaas driver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages