Search This Blog

Showing posts with label vFabric Application Director. Show all posts
Showing posts with label vFabric Application Director. Show all posts

Friday, 8 June 2012

Modelling SQLFire with a Locator VM in vFabric Application Director

I recently setup a SQLFire distributed system by modelling a blueprint from vFabric Application Director. In this simple setup I created a service for a locator as well as a SQLFire member. The screen shots below show what this looked like.

New Catalog Items

1. Create the locator service as follows

1.1. Define it as follows


1.2. Set properties as follows


1.3. Add INSTALL script as shown below
  
#!/bin/sh
# Import global conf
. $global_conf

set -e

#To support ubuntu java bins
export PATH=$PATH:/usr/java/jre-vmware/bin

mkdir -p $install_path
java -Dsqlfire.installer.directory="$install_path" -jar `basename "$SQLFire102_Installer"`
 
cd $install_path/*SQLFire*

mkdir locator
./bin/sqlf locator start -peer-discovery-address=$locator_ip -peer-discovery-port=$locator_port -client-bind-address=$locator_ip -client-port=$client_port -dir=locator

2. Create a SQLFire server service

2.1. Define it as follows




2.2. Set properties as follows


2.3 Add install script as shown below
  
#!/bin/sh
# Import global conf
. $global_conf

set -e

#To support ubuntu java bins
export PATH=$PATH:/usr/java/jre-vmware/bin

mkdir -p $install_path
java -Dsqlfire.installer.directory="$install_path" -jar `basename "$SQLFire102_Installer"`
 
cd $install_path/*SQLFire*

mkdir server1
./bin/sqlf server start -dir=server1 -client-port=$client_port -client-bind-address=$server_ip -locators=$locator_ip[$locator_port]

Blueprint using the Catalog Items above

The catalog items are simply added to the templates as needed. From the image below we have one locator VM and a cluster of SQLFire server node VM's as well. This enables us to create as many SQLFire member nodes as needed.


From the screen shot below it shows how we determine the locator IP address as well as the SQLFire server node IP address at runtime as we need that to be injected in for us before the lifecycle INSTALL phase is started.


Thursday, 26 April 2012

vFabric Application Director

VMware vFabric Application Director is a cloud-enabled application provisioning solution that simplifies how to create and standardize application deployment topologies across cloud services. It is designed for Application Provisioning in hybrid clouds, using an open and extensible architecture.

The screen shots below show a 3 tier application topology (blueprint) modeled in Application Director as follows. It is a 3 tier application using an Apache front end load balancer with 2 tc Server middle tier VM's and a single MYSQL server back end DB tier.

Application Blueprint Page


Deployment Summary Page



Deployment Details Page



Deployment Execution Plan



VM Console Page



Registered Cloud Provider Dialog



More Information

http://www.vmware.com/products/application-platform/vfabric-appdirector/overview.html