Tomcat and MySQL in Windows Azure

27
//Windows Azure Tomcat & MySQL running in Windows Azure PaaS Guada Casuso – Technical Evangelist @guadacasuso

Transcript of Tomcat and MySQL in Windows Azure

Page 1: Tomcat and MySQL in Windows Azure

//Windows Azure

Tomcat & MySQL running in Windows Azure PaaS

Guada Casuso – Technical Evangelist@guadacasuso

Page 2: Tomcat and MySQL in Windows Azure

Traditional Architecture

Page 3: Tomcat and MySQL in Windows Azure

Windows Azure

build

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

Page 4: Tomcat and MySQL in Windows Azure

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

Page 5: Tomcat and MySQL in Windows Azure

Windows Azure Architecture - PaaS

Page 6: Tomcat and MySQL in Windows Azure

Cloud serviceDevelopment

Page 7: Tomcat and MySQL in Windows Azure

ServicePackage

ServicePackage

Familiar IDE

Familiar Server

Better Management

Familiar Language

Page 8: Tomcat and MySQL in Windows Azure

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

Page 9: Tomcat and MySQL in Windows Azure

ServicePackage

Server Rack 1 Server Rack 2

Virtual machine

Virtual machine

Provision Role InstancesDeploy App CodeConfigure Network

Virtual machine

Virtual machine

Deployment Cycle

Page 10: Tomcat and MySQL in Windows Azure

Package your Java Project for Windows Azure

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

Page 11: Tomcat and MySQL in Windows Azure

Worker RolePropertiesScalability

Page 12: Tomcat and MySQL in Windows Azure

Worker RoleProperties Cache

Page 13: Tomcat and MySQL in Windows Azure

Worker RoleProperties Load Balancing

Page 14: Tomcat and MySQL in Windows Azure

Worker RoleProperties Package Config

Page 15: Tomcat and MySQL in Windows Azure

Worker RoleProperties Deploy

Page 16: Tomcat and MySQL in Windows Azure

Network Load Balancer

Windows Azure Datacenter

Page 17: Tomcat and MySQL in Windows Azure

Developer

Windows Azure Datacenter

Production Staging

Network Load Balancer

Page 18: Tomcat and MySQL in Windows Azure

Cache

Page 19: Tomcat and MySQL in Windows Azure

Worker Roles

300MB 300MB 300MB 300MB

1.2GB Distributed Cache

distributed cache

Page 20: Tomcat and MySQL in Windows Azure

24GB Distributed Cache

12GB CacheWorker Role

12GB CacheWorker Role

2

Page 21: Tomcat and MySQL in Windows Azure

MySQL Database

Page 22: Tomcat and MySQL in Windows Azure

ClearDB MySQL Database

Page 23: Tomcat and MySQL in Windows Azure

Monitoring

Page 24: Tomcat and MySQL in Windows Azure

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.

Page 25: Tomcat and MySQL in Windows Azure

Start now!

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

Page 26: Tomcat and MySQL in Windows Azure

//Windows Azure

Tomcat & MySQL running in Windows Azure PaaS

Guada Casuso – Technical Evangelist@guadacasuso

Page 27: Tomcat and MySQL in Windows Azure

© 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.