SlideShare a Scribd company logo
CloudHub and Mule
Anypoint Runtime Manager allows you to deploy
your Mule applications through the:
• Anypoint Runtime Manager’s Cloud console to CloudHub, or the
• Anypoint Runtime Manager’s Cloud console to another server
running an instance of Mule runtime (on-prem or on the cloud)
• On-premises edition of the Anypoint Runtime Manager to another
server that runs a Mule runtime
Although the basics of building a Mule application
are the same, the different deployment modalities
offer distinct management features. The key
reason is that each modality uses a different Mule
Agent when communicating with servers.
• When deploying to CloudHub, the old Mule Agent is used. This legacy
agent was originally created for Mule Management Console (MMC).
• When deploying to a server that you manage, whether through the cloud
console or the on-premises Runtime Manager console, the new Mule
Agent is used.
• Building applications for CloudHub or an on-premises server is easy.
However, there are some differences as you move from an on-prem
deployment to CloudHub. CloudHub provides more out-of-the-box
functionality, such as load balancing, but has some limitations which
you may need to adapt your application to. This document illustrates
the differences between both deployment environments, covers a
few best practices when developing an application for CloudHub.
Management Features
• CloudHub is a complete Platform as a Service that covers all of your server needs
out of the box, including logging, analytics, alerts, scheduling, etc. Hosting your
apps on your own servers allows for greater flexibility and tighter security (in case
you deploy to your own secured on-premises environment) but requires that you
sort out several considerations by your own means.
• When deploying to your own servers, you have the flexibility to group them into
Server Groups or Clusters and configure various parameters to handle them.
• The available modalities offer different management features as each
communicates to deployment servers via different versions of the Mule Agent.
• When deploying to a CloudHub worker, the old agent is used. (this
is the same agent used by MMC)
• When deploying to a server you manage – regardless of if you do
this through a cloud or on-premise console – the new Mule Agent is
used.
• Although the long term plan is to converge the features of these
deployment mechanisms so that they all offer the whole set of
capabilities, currently they differ as follows:
Ports and Hosts
• CloudHub provides infrastructure for DNS and load balancing for your
applications. This means you must configure your applications in a specific
way to utilize this information. CloudHub provides two hosts for you:
• myapplication.cloudhub.io - Routes information to the CloudHub load
balancer
• mule-worker-myapplication.cloudhub.io - Routes information directly to
your CloudHub application, bypassing the load balancer. If you have
multiple workers, then this DNS round-robins between them.
Disk Persistence
• CloudHub does not guarantee that writing to disk survives hardware
failures. Instead, you must use an external storage mechanism to
store information. For small amounts of data, you can use the Object
Store. For applications that have large data storage requirements, we
recommend use of a cloud service such as Amazon S3. For temporary
storage, the File connector is still available and can be used with the
/tmp directory.
High Availability
• Mule runtime offers high availability capabilities through creating Clusters
and Server Groups. Clustered Mule instances have distributed shared
memory. This shared memory is used to provide persistent VM queues,
transactions, and cluster-wide data storage.
• CloudHub provides high availability through CloudHub Fabric. CloudHub
Fabric provides a combination of load balancing, persistent message
queues, and horizontal scaleout. In addition, the platform also actively
monitors services and workers for problems. For example, in the case of
hardware failure, CloudHub auto-migrates the application to a different
worker using CloudHub zero downtime updates, minimizing down time.
Logging
• While on-premise applications can use custom log4j properties files,
CloudHub provides a logging service for allowing logs to be searched,
downloaded, or log levels to be customized. See Developing a
CloudHub application for more details.
Object Store
• CloudHub provides an implementation of the user object store. This
makes its usage a lot simpler, as you can simply reference the already
configured CloudHub object store. It places limits on the usage of this
to avoid abuse. These are detailed on the Object Store page.
Shared Resource Support
• When deploying on-premises, it’s possible to create 'Domain' mule projects that don’t
hold any flows, but do hold a set of global configuration elements to share among other
apps deployed to the same server. Read more. This is not currently supported for
deploying through the Runtime Manager, both for deployments to CloudHub and for
deployments to other servers in the cloud and on-premises.
• Since each application deployed to CloudHub runs on a separate virtual server, there is
no need to use domains.
• Currently, you can’t deploy domains through the Runtime Manager console, even to local
servers where they could be needed in some scenarios. In those cases, you can still
deploy your domains manually directly on your local server through the command line.
JDK Versions
• The version of JDK that CloudHub implements for all apps built with
Mule runtime 3.5.1 or greater is JDK 1.7. Mule runtime 3.7.0 also
supports JDK 1.8.
• Apps built with runtime 3.5.0 or older are deployed with JDK 1.6.
Managing Properties in CloudHub vs. On-Premises
Mule Runtimes
• Just like with on-premises Mule runtime deployments, applications
that you deploy to CloudHub can still bundle their own property
placeholder or secure property placeholder files inside the deployable
archive file. CloudHub then loads these properties into the
application when the application starts.
On Mule ESB
• With an on-premises Mule runtime, there are several ways you can override property values bundled inside the application.
• You can configure an external location to add property placeholder or secure property placeholder files to override properties.
• You can set Java system environment variables at deployment time to override properties.
• To use the second option, with an on-premises server you could deploy your application with the following command:
• mule -M-Dsecret.key=toSecretPassword -M-Denv=prod -M-Ddb.password=secretPassword -app myApp.zip
• In this case all the values typed into the command would only be stored in memory, they are never stored in any file.
On CloudHub
• With CloudHub, these techniques to override properties work differently.
• The first approach mentioned above (configure a properties file in an external
location) is difficult to translate to CloudHub: when an application is deployed
into CloudHub it is harder to write override properties files into the file system.
• The second approach mentioned above (set Java system environment variables at
deployment time) is much easier to translate to CloudHub: the Properties tab on
the Runtime Manager does allow you to specify Java system environment
variables which will function in the same way as adding environment variables
when you deploy to an on-premises server.
• If you have any property names set in a 'mule-app.properties' file inside your
application or in bundled property placeholder files, then when your application
is deployed, any entries in the CloudHub Properties tab with the same name will
override the matching value bundled with the application.
• It is possible to change the behavior of the application to not allow
CloudHub properties to override properties bundled with the deployable
archive. You do this by changing options in the Property Placeholder
element in the Mule application. See Spring documentation on Property
Placeholder options for more information on non-default property
placeholder options.
• Note that you can flag application properties as secure so that their values
are not visible to users at runtime or passed between the server and the
console. See Secure Application Properties for more information.
Scheduling
• CloudHub lets you define Schedules thrugh the Runtime Manager UI
that run your flows automatically.
• Outside CloudHub, you can achieve the same by including the Poll
Scheduler element in the flows of your application.
Alerts and Notifications
• Both CloudHub and On-premise deployments include the possibility
of setting up Alerts and Notifications for when certain events occur.
Other Components
• There are also a few components which CloudHub has limited support for
currently:
• Distributed locks: currently, CloudHub cannot coordinate invocations of
FTP and File endpoints across multiple workers.
• Idempotent routers works with in memory stores and according to the
limitations of the CloudHub Object Store if you configure it to use it. If
those options do not fit your needs, you can use another Object Store.

More Related Content

PPTX
Database component in mule
PPTX
Mule Cloudhub Connector
PPT
Maven introduction in Mule
PPTX
Until successful component in mule demo
PPTX
Mule Requester Usage Demo
PPTX
Mule dataweave
PPTX
Connecting to external_application
PPT
Mule and web services
Database component in mule
Mule Cloudhub Connector
Maven introduction in Mule
Until successful component in mule demo
Mule Requester Usage Demo
Mule dataweave
Connecting to external_application
Mule and web services

What's hot (20)

PPT
Mule ESB
PPT
Mule esb introduction
PPT
Anypoint data gateway
PPTX
Mule architecture
PPT
Mule 3.4 features
PPT
Introduction to es bs mule
PPTX
Database component in mule demo
PPTX
Mule quartz hari_gatadi
PPTX
Mule message structure
PPTX
PPTX
Send email attachment using smtp in mule esb
PPTX
MuleSoft CloudHub FAQ
PDF
Mule ESB Fundamentals
PPT
Mule anypoint connector dev kit
PDF
A Workhorse Named Mule
PPTX
Mule soa
PPTX
Mulesoft Consuming Web Service - Web Service Consumer
PPT
Anypoint data gateway
PPT
Overview of Mule
PPT
Mule any pointstudio
Mule ESB
Mule esb introduction
Anypoint data gateway
Mule architecture
Mule 3.4 features
Introduction to es bs mule
Database component in mule demo
Mule quartz hari_gatadi
Mule message structure
Send email attachment using smtp in mule esb
MuleSoft CloudHub FAQ
Mule ESB Fundamentals
Mule anypoint connector dev kit
A Workhorse Named Mule
Mule soa
Mulesoft Consuming Web Service - Web Service Consumer
Anypoint data gateway
Overview of Mule
Mule any pointstudio
Ad

Similar to Cloud hub and mule (20)

PPTX
Cloudhub and Mule
PPTX
CloudPresentation.pptx
PPTX
Cloud hub architecture
PDF
Introduction To Anypoint CloudHub With Mulesoft
PPTX
Introductiontocloudhubwithmulesoft by nagarjunareddy
PPTX
Cloud hub architecture
PPTX
Cloudhub fabric
PPTX
Deploying to cloud hub
PPTX
Mulesoft Meetup Roma - CloudHub 2.0: a fully managed, containerized integrati...
PPTX
Mule soft indore meetup 2
PPTX
On prem to cloud hub migration (updated)
PPT
Mule cloudhub
PPTX
Cloud migration
PPT
Cloudhub application
PPT
Mule cloudhub application
PPT
Cloud hub application
PPTX
Cloud hub scalability and availability
PDF
CloudSim Simulator for implementation of cloud environment
PPTX
Azure from scratch part 3 By Girish Kalamati
PDF
Miracle mulesoft tech_cloud_hub
Cloudhub and Mule
CloudPresentation.pptx
Cloud hub architecture
Introduction To Anypoint CloudHub With Mulesoft
Introductiontocloudhubwithmulesoft by nagarjunareddy
Cloud hub architecture
Cloudhub fabric
Deploying to cloud hub
Mulesoft Meetup Roma - CloudHub 2.0: a fully managed, containerized integrati...
Mule soft indore meetup 2
On prem to cloud hub migration (updated)
Mule cloudhub
Cloud migration
Cloudhub application
Mule cloudhub application
Cloud hub application
Cloud hub scalability and availability
CloudSim Simulator for implementation of cloud environment
Azure from scratch part 3 By Girish Kalamati
Miracle mulesoft tech_cloud_hub
Ad

More from Son Nguyen (20)

PPTX
Your new maven friend – the mule maven
PPTX
Soa governance for the modern business
PPTX
Quality sdk for your apis in minutes!
PPTX
Maven tools & archetypes
PPTX
Let api change your relationship with your doctor
PPTX
Increase revenue and reinvigorate your business with api
PPTX
How to – wrap soap web service around a database
PPTX
How to – rest api proxy to soap webservice
PPTX
Anypoint runtime manager v1
PPTX
A good api strategy can help turn your
PPTX
10 steps to design and build the perfect
PPTX
What is the difference between using private flow
PPTX
Troubleshooting mule
PPTX
Running mule as worker role on azure
PPTX
Real time data processing with anypoint connector for kafka
PPTX
Performance tuning in mule
PPTX
Mule intelli j tips
PPTX
Introducing the anypoint connector for redis
PPTX
How to – data integrity checks in batch processing
PPTX
How soa paved the way for cloud
Your new maven friend – the mule maven
Soa governance for the modern business
Quality sdk for your apis in minutes!
Maven tools & archetypes
Let api change your relationship with your doctor
Increase revenue and reinvigorate your business with api
How to – wrap soap web service around a database
How to – rest api proxy to soap webservice
Anypoint runtime manager v1
A good api strategy can help turn your
10 steps to design and build the perfect
What is the difference between using private flow
Troubleshooting mule
Running mule as worker role on azure
Real time data processing with anypoint connector for kafka
Performance tuning in mule
Mule intelli j tips
Introducing the anypoint connector for redis
How to – data integrity checks in batch processing
How soa paved the way for cloud

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Machine learning based COVID-19 study performance prediction
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Monthly Chronicles - July 2025
Advanced methodologies resolving dimensionality complications for autism neur...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Encapsulation theory and applications.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The Rise and Fall of 3GPP – Time for a Sabbatical?
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing

Cloud hub and mule

  • 2. Anypoint Runtime Manager allows you to deploy your Mule applications through the: • Anypoint Runtime Manager’s Cloud console to CloudHub, or the • Anypoint Runtime Manager’s Cloud console to another server running an instance of Mule runtime (on-prem or on the cloud) • On-premises edition of the Anypoint Runtime Manager to another server that runs a Mule runtime
  • 3. Although the basics of building a Mule application are the same, the different deployment modalities offer distinct management features. The key reason is that each modality uses a different Mule Agent when communicating with servers. • When deploying to CloudHub, the old Mule Agent is used. This legacy agent was originally created for Mule Management Console (MMC). • When deploying to a server that you manage, whether through the cloud console or the on-premises Runtime Manager console, the new Mule Agent is used.
  • 4. • Building applications for CloudHub or an on-premises server is easy. However, there are some differences as you move from an on-prem deployment to CloudHub. CloudHub provides more out-of-the-box functionality, such as load balancing, but has some limitations which you may need to adapt your application to. This document illustrates the differences between both deployment environments, covers a few best practices when developing an application for CloudHub.
  • 5. Management Features • CloudHub is a complete Platform as a Service that covers all of your server needs out of the box, including logging, analytics, alerts, scheduling, etc. Hosting your apps on your own servers allows for greater flexibility and tighter security (in case you deploy to your own secured on-premises environment) but requires that you sort out several considerations by your own means. • When deploying to your own servers, you have the flexibility to group them into Server Groups or Clusters and configure various parameters to handle them. • The available modalities offer different management features as each communicates to deployment servers via different versions of the Mule Agent.
  • 6. • When deploying to a CloudHub worker, the old agent is used. (this is the same agent used by MMC) • When deploying to a server you manage – regardless of if you do this through a cloud or on-premise console – the new Mule Agent is used.
  • 7. • Although the long term plan is to converge the features of these deployment mechanisms so that they all offer the whole set of capabilities, currently they differ as follows:
  • 8. Ports and Hosts • CloudHub provides infrastructure for DNS and load balancing for your applications. This means you must configure your applications in a specific way to utilize this information. CloudHub provides two hosts for you: • myapplication.cloudhub.io - Routes information to the CloudHub load balancer • mule-worker-myapplication.cloudhub.io - Routes information directly to your CloudHub application, bypassing the load balancer. If you have multiple workers, then this DNS round-robins between them.
  • 9. Disk Persistence • CloudHub does not guarantee that writing to disk survives hardware failures. Instead, you must use an external storage mechanism to store information. For small amounts of data, you can use the Object Store. For applications that have large data storage requirements, we recommend use of a cloud service such as Amazon S3. For temporary storage, the File connector is still available and can be used with the /tmp directory.
  • 10. High Availability • Mule runtime offers high availability capabilities through creating Clusters and Server Groups. Clustered Mule instances have distributed shared memory. This shared memory is used to provide persistent VM queues, transactions, and cluster-wide data storage. • CloudHub provides high availability through CloudHub Fabric. CloudHub Fabric provides a combination of load balancing, persistent message queues, and horizontal scaleout. In addition, the platform also actively monitors services and workers for problems. For example, in the case of hardware failure, CloudHub auto-migrates the application to a different worker using CloudHub zero downtime updates, minimizing down time.
  • 11. Logging • While on-premise applications can use custom log4j properties files, CloudHub provides a logging service for allowing logs to be searched, downloaded, or log levels to be customized. See Developing a CloudHub application for more details.
  • 12. Object Store • CloudHub provides an implementation of the user object store. This makes its usage a lot simpler, as you can simply reference the already configured CloudHub object store. It places limits on the usage of this to avoid abuse. These are detailed on the Object Store page.
  • 13. Shared Resource Support • When deploying on-premises, it’s possible to create 'Domain' mule projects that don’t hold any flows, but do hold a set of global configuration elements to share among other apps deployed to the same server. Read more. This is not currently supported for deploying through the Runtime Manager, both for deployments to CloudHub and for deployments to other servers in the cloud and on-premises. • Since each application deployed to CloudHub runs on a separate virtual server, there is no need to use domains. • Currently, you can’t deploy domains through the Runtime Manager console, even to local servers where they could be needed in some scenarios. In those cases, you can still deploy your domains manually directly on your local server through the command line.
  • 14. JDK Versions • The version of JDK that CloudHub implements for all apps built with Mule runtime 3.5.1 or greater is JDK 1.7. Mule runtime 3.7.0 also supports JDK 1.8. • Apps built with runtime 3.5.0 or older are deployed with JDK 1.6.
  • 15. Managing Properties in CloudHub vs. On-Premises Mule Runtimes • Just like with on-premises Mule runtime deployments, applications that you deploy to CloudHub can still bundle their own property placeholder or secure property placeholder files inside the deployable archive file. CloudHub then loads these properties into the application when the application starts.
  • 16. On Mule ESB • With an on-premises Mule runtime, there are several ways you can override property values bundled inside the application. • You can configure an external location to add property placeholder or secure property placeholder files to override properties. • You can set Java system environment variables at deployment time to override properties. • To use the second option, with an on-premises server you could deploy your application with the following command: • mule -M-Dsecret.key=toSecretPassword -M-Denv=prod -M-Ddb.password=secretPassword -app myApp.zip • In this case all the values typed into the command would only be stored in memory, they are never stored in any file.
  • 17. On CloudHub • With CloudHub, these techniques to override properties work differently. • The first approach mentioned above (configure a properties file in an external location) is difficult to translate to CloudHub: when an application is deployed into CloudHub it is harder to write override properties files into the file system. • The second approach mentioned above (set Java system environment variables at deployment time) is much easier to translate to CloudHub: the Properties tab on the Runtime Manager does allow you to specify Java system environment variables which will function in the same way as adding environment variables when you deploy to an on-premises server. • If you have any property names set in a 'mule-app.properties' file inside your application or in bundled property placeholder files, then when your application is deployed, any entries in the CloudHub Properties tab with the same name will override the matching value bundled with the application.
  • 18. • It is possible to change the behavior of the application to not allow CloudHub properties to override properties bundled with the deployable archive. You do this by changing options in the Property Placeholder element in the Mule application. See Spring documentation on Property Placeholder options for more information on non-default property placeholder options. • Note that you can flag application properties as secure so that their values are not visible to users at runtime or passed between the server and the console. See Secure Application Properties for more information.
  • 19. Scheduling • CloudHub lets you define Schedules thrugh the Runtime Manager UI that run your flows automatically. • Outside CloudHub, you can achieve the same by including the Poll Scheduler element in the flows of your application.
  • 20. Alerts and Notifications • Both CloudHub and On-premise deployments include the possibility of setting up Alerts and Notifications for when certain events occur.
  • 21. Other Components • There are also a few components which CloudHub has limited support for currently: • Distributed locks: currently, CloudHub cannot coordinate invocations of FTP and File endpoints across multiple workers. • Idempotent routers works with in memory stores and according to the limitations of the CloudHub Object Store if you configure it to use it. If those options do not fit your needs, you can use another Object Store.