OverviewThis page describes the integration between GigaSpaces XAP, the Citrix NetScaler load balancer and the Citrix XenServer Virtual Machine manager. Purpose of IntegrationThe integration effort focuses on the Load Balancer functionality of the NetScaler appliance. The end result is a system that monitors the performance metrics of a web application that is running a GigaSpaces cluster. The web application's performance metrics are monitored and compared against predefined thresholds. When Performance metrics exceed the thresholds a new web server VM is started (or terminated) automatically. The web server VM is started, deployed and added to the load balancer pool automatically. This is achieved by integrating together the XenServer APIs, GigaSpaces XAP admin APIs and NetScaler load balancer APIs. An unexpected failure of a web server VM is also detected, which triggers a new web server VM. Within two minutes the new VM starts processing web requests. Citrix NetScalerCitrix NetScaler is a Web application delivery appliance that makes applications run five times better. Available as a separate hardware network device or as a virtualized appliance, NetScaler optimizes application availability through advanced L4-7 load balancing and traffic management, accelerates performance, increases security with an integrated application firewall and substantially lowers costs by increasing Web server efficiency. Citrix XenServerCitrix XenServer is a complete, managed server virtualization platform built on the powerful Xen hypervisor. Xen technology is widely acknowledged as the fastest and most secure virtualization software in the industry. XenServer is designed for efficient management of Windows® and Linux® virtual servers and delivers cost-effective server consolidation and business continuity. ArchitectureWeb SLA MonitorThe web SLA Monitor is a GigaSpaces Processing Unit (PU) that periodically monitors the average web request rate per web server. This information is provided by the embedded Jetty web server and is aggregated and exposed via the GigaSpaces Admin API
Load Balancer AgentThe Load Balancer agent monitors the GigaSpaces cluster for changes in membership.
Load GeneratorThe load generator is a GigaSpaces PU that generates HTTP requests which are send to the NetScaler load balancer. The load changes when the user increases or decreases the number of active load generator instances. When the load crosses the threshold it triggers the web scaling agent scale-out/scale-in rule. How to Use the GigaSpaces/Citrix integration packageThis section describes how to build, configure and run the integration package. Downloadpetclinic_xap_netscaler_xenserver.zip - includes binaries and source code. InfrastructureInfrastructure deployment instructions can be found at the GigaSpaces blog: You can find out petclinic mysql configuration and permissions in src/petclinic/spring_petclinic_tweaks.txt After extracting the zip file, edit tools/deploy.groovy and modify the ip addresses ports and passwords of the mysql server, xenserver, netscaler load balancer and the virtual petclinic loadbalancer. For a more complete understanding of the Citrix products used in this integration, please read the respective product documentation. RunStart the GigaSpaces agent and the GigaSpaces Management UI Deploy the application See it in actionEach of the web application instances is available so you can access each one directly to see the 'pet-clinic' application in action, or via the load balancer. |
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |