Tomcat and MySQL in Windows Azure

Post on 13-May-2015

669 views 0 download

Tags:

Transcript of Tomcat and MySQL in Windows Azure

//Windows Azure

Tomcat & MySQL running in Windows Azure PaaS

Guada Casuso – Technical Evangelist@guadacasuso

Traditional Architecture

Windows Azure

build

PaaS Cloud servicesBuild infinitely scalable apps and servicesSupport rich multi-tier architecturesAutomated application management

The Benefits of PaaS

Paas is cheaperReason: There’s less admin and management work to doBenefit: Organizations spend less supporting applications

PaaS is fasterReason: There’s less work for developers to doBenefit: Applications can go from idea to availability more quickly

PaaS is lower riskReason: The platform does more, leaving fewer opportunities for errorBenefit: Creating and running applications gets more reliable

Windows Azure Architecture - PaaS

Cloud serviceDevelopment

ServicePackage

ServicePackage

Familiar IDE

Familiar Server

Better Management

Familiar Language

Prerequisites•A Java Developer Kit (JDK), v 1.6 or later.http://www.oracle.com/technetwork/es/java/javase/downloads/index.html

•Eclipse IDE for Java EE Developers, Helios SR2 or later. This can be downloaded from http://www.eclipse.org/downloads/.

•A distribution of a Java-based web server or application server, such as Apache Tomcathttp://tomcat.apache.org

•A Windows Azure subscription, which can be acquired from http://www.microsoft.com/windowsazure/offers/.

•The Windows Azure Plugin for Eclipse with Java (by Microsoft Open Technologies) – July 2013 Preview. For more information, see Installing the Windows Azure Plugin for Eclipse with Java (by Microsoft Open Technologies).

Cloud serviceDevelopmentEnvironment

Get IDE Integration

ServicePackage

Server Rack 1 Server Rack 2

Virtual machine

Virtual machine

Provision Role InstancesDeploy App CodeConfigure Network

Virtual machine

Virtual machine

Deployment Cycle

Package your Java Project for Windows Azure

You will get a newProject. Lets configure The worker role!

Worker RolePropertiesScalability

Worker RoleProperties Cache

Worker RoleProperties Load Balancing

Worker RoleProperties Package Config

Worker RoleProperties Deploy

Network Load Balancer

Windows Azure Datacenter

Developer

Windows Azure Datacenter

Production Staging

Network Load Balancer

Cache

Worker Roles

300MB 300MB 300MB 300MB

1.2GB Distributed Cache

distributed cache

24GB Distributed Cache

12GB CacheWorker Role

12GB CacheWorker Role

2

MySQL Database

ClearDB MySQL Database

Monitoring

Windows Azure Management Portal

You can monitor the health and availability of your applications using the health metrics dashboard and set up alert rules to be notified when your service availability is degraded. You can also define an event of interest, be notified in real-time when the event occurs, and perform actions based on the events. Windows Azure allows you to configure your application to automatically scale up or down to match the current demands while minimizing costs with auto scale rules.

Start now!

http://msdn.microsoft.com/en-us/library/windowsazure/hh690943.aspx

//Windows Azure

Tomcat & MySQL running in Windows Azure PaaS

Guada Casuso – Technical Evangelist@guadacasuso

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.