SlideShare a Scribd company logo
Load Balancer in Mule
and VPC creation
This feature will eventually be built into the
Runtime Manager UI, however currently it’s
only available as a service that can be used via
the Anypoint Command Line Interface.
• Create a VPC
• To create a VPC, log in to your Anypoint
Platform and follow these steps:
• Select the VPCs tab from the navigation bar to
your left.
• Click the Create VPC option:
Load balancer in mule
Load balancer in mule
All VPCs need to be associated to a
CloudHub region.
• A VPC name.
For this tutorial, name your VPC vpc-tutorial.
• The region to which the VPC is bound.
In this case, the VPC is bound to US East
(Virginia).
• The size of your VPC in Classless Inter-Domain
Routing (CIDR) notation.
Set it to 10.111.0.0/24 which grants us 256 IP
addresses from 10.111.0.0 to 10.111.0.255.
The CIDR Blocks chosen for the VPC should
ideally come from a private IP space, and
should not overlap with any other VPC’s CIDR
Blocks or any CIDR Blocks in use in your
corporate network.
• Once the VPC is created, it is not possible to
resize it, nor to edit your selected CIDR block.
Understanding how to size your VPC is crucial
at this point. If you are not sure how to
configure this, make sure to follow our VPC
sizing guide.
• Each load balancer can be associated with one
or more SSL endpoints. Such endpoints are
identified by their certificate names.
• Certificates are an important component of
your dedicated load balancer. When creating a
load balancer, at least one SSL endpoint needs
to be configured, meaning that each load
balancer needs to have at least one certificate
associated to it.
• All inbound traffic is blocked by default. Firewall rules are required
to allow traffic to your worker.
The UI suggests you a list of most used firewall rules. For this
example, add a firewall rule with type 'http.private.port'
from Anywhere.
Note that the port range is automatically set to 8091.
• This means that only connections through the port 8091 are
whitelisted inside the VPC and that your worker will listen to all
interfaces coming through port 8091.
Setting this firewall rule allows a dedicated load balancer to
communicate to your workers using its default configurations.
• Additionally, to properly receive requests from the load balancer, all
applications that are deployed to the VPC must be listening on port
8091.
Load balancer in mule
Create a Load Balancer
• A load balancer can be created using the load-
balancer create command.
• cloudhub load-balancer create vpc-tutorial
lb-tutorial
/Users/myuser/Documents/cert.pem
/Users/myuser/Documents/key.pem --http on
--verificationMode on
• Pass vpc-tutorial as the vpc name in which you
want to create the load balancer.
• In order to keep consistency among tutorials, we
are using components created in the VPC tutorial.
• Name the load balancer lb-tutorial.
• The load balancer’s name must be unique.
• Each load balancer has an internal domain name:
internal-<lb-name>.lb.anypointdns.net where
<lb-name> is the name you set here.
• Pass the path to a .pem file certificate and its key
We are using the self-signed certificate created earlier, along with
its private key: cert.pemand key.pem.
The certificate that you upload to the Load Balancer must be
contained in one pem encoded and unencrypted file.
Your private key file needs to be passphraseless.
• Set the option for the http method to on.
This sets the load balancer to accept all http requests and forwards
it to your default SSL endpoint. In this case, the only ssl endpoint
configured is lb-tutorial-cert
• Set the option for the verificationMode to on
This instructs the SSL endpoint to always verify the certificate
• When the operation succeeds, the CLI displays the details of the
newly created load balancer.
• > cloudhub load-balancer mappings add lb-
tutorial 0 /{app}/ {app} /
• Set lb-tutorial as the target for this new mapping rule
• Set the index priority for this mapping rule to 0
This rule now has the first priority.
• Set the input URL as /{app}/
This rule uses patterns so that every value passed as {app} in the
load balancer’s domain name: lb-
tutorial.lb.anypointdns.net/{app} gets mapped to the URL set as the
output URL.
• Set the output URL to {app}
So that the domain lb-tutorial.lb.anypointdns.net/{app} gets
mapped to {app}.cloudub.io/ using the pattern {app} to match your
application’s name.
• Set the appURI to / to redirect to the initial path of your application.
Update an Existing Load Balancer
• It is possible to edit the Whitelists, Mapping
Rules and SSL Endpoints from the Anypoint
Platform CLI.
• Remove the existing configuration using load-
balancer whitelist remove, load-balancer
mappings remove and load-balancer ssl-
endpoint remove respectively and add the
new configurations.
Update an Existing Load Balancer Using the CloudHub API
• Although it is not possible to update certain load
balancer values through the Anypoint Platform CLI, you
can use the Cloudhub API to programmatically manage
and update your load balancer:
• Log in to the CloudHub services passing your
credentials to
https://anypoint.mulesoft.com/accounts/login.
• Use the
organizations/{orgId}/vpcs/{vpcId}/loadbalancers/{lbId}
endpoint to update your load balancer.

More Related Content

PPTX
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
PDF
VPCs, Metrics Framework, Back pressure : MuleSoft Virtual Muleys Meetups
PPTX
Why Docker
PDF
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
PDF
Debugging with MuleSoft Anypoint Studio
PPT
Monitoring using Prometheus and Grafana
PPTX
Designing Apps for Runtime Fabric: Logging, Monitoring & Object Store Persist...
PDF
Secure Spring Boot Microservices with Keycloak
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
VPCs, Metrics Framework, Back pressure : MuleSoft Virtual Muleys Meetups
Why Docker
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Debugging with MuleSoft Anypoint Studio
Monitoring using Prometheus and Grafana
Designing Apps for Runtime Fabric: Logging, Monitoring & Object Store Persist...
Secure Spring Boot Microservices with Keycloak

What's hot (20)

PDF
“見てわかる” ファイバーチャネルSAN基礎講座(第4弾)~続・間違わない!FC SAN導入のヒントとコツ~
PDF
Spring boot jpa
PDF
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
PPTX
DoD Enterprise DevSecOps Initiative by Mr. Nicolas Chaillan
PDF
Containerising the Mule Runtime with Kubernetes & From Zero to Batch : MuleS...
PPTX
Docker Container Security
PPTX
Rtf v2 ingress muleSoft meetup self managed kubernetes
PDF
FCスイッチISL 追加削除時の考慮点
PDF
docker.pdf
PDF
Pros & cons of svelte
PDF
Spring Boot
PPTX
Prometheus - Intro, CNCF, TSDB,PromQL,Grafana
PPTX
Spring boot Under Da Hood
PPTX
Seccomp Profiles and you: A practical guide.
PDF
Blue Hat IL 2019 - Hardening Secure Boot on Embedded Devices for Hostile Envi...
PPTX
Typescript-7 (1).pptx
PDF
Introduction to Docker at SF Peninsula Software Development Meetup @Guidewire
PPTX
MuleSoft JWT Demystified
PDF
10 things to consider when planning your Mule 4 migration
PDF
“見てわかる” ファイバーチャネルSAN基礎講座(第3弾)~間違わない!FC SAN導入のヒントとコツ~
“見てわかる” ファイバーチャネルSAN基礎講座(第4弾)~続・間違わない!FC SAN導入のヒントとコツ~
Spring boot jpa
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
DoD Enterprise DevSecOps Initiative by Mr. Nicolas Chaillan
Containerising the Mule Runtime with Kubernetes & From Zero to Batch : MuleS...
Docker Container Security
Rtf v2 ingress muleSoft meetup self managed kubernetes
FCスイッチISL 追加削除時の考慮点
docker.pdf
Pros & cons of svelte
Spring Boot
Prometheus - Intro, CNCF, TSDB,PromQL,Grafana
Spring boot Under Da Hood
Seccomp Profiles and you: A practical guide.
Blue Hat IL 2019 - Hardening Secure Boot on Embedded Devices for Hostile Envi...
Typescript-7 (1).pptx
Introduction to Docker at SF Peninsula Software Development Meetup @Guidewire
MuleSoft JWT Demystified
10 things to consider when planning your Mule 4 migration
“見てわかる” ファイバーチャネルSAN基礎講座(第3弾)~間違わない!FC SAN導入のヒントとコツ~
Ad

Viewers also liked (16)

PDF
How to connect redis and mule esb using spring data redis module
PPTX
Using mule with web services
PPTX
CloudHub networking guide
PPTX
The routing message processor scatter gather
PPTX
Create dynamic json using mule
PPTX
Scatter gather flow in mule
PPTX
Mulesoft intergrate for android app
PPTX
mule custom aggregator
PPTX
Muleflowarchitecturepart2
PPTX
Data weave more operations
PPTX
Anypoint enterprise security overview
PPTX
Using spring scheduler mule
PPTX
Runing batch job in mule
PPTX
Rest security in mule
PPTX
Apache flume
PDF
Bitcoin: The Internet of Money
How to connect redis and mule esb using spring data redis module
Using mule with web services
CloudHub networking guide
The routing message processor scatter gather
Create dynamic json using mule
Scatter gather flow in mule
Mulesoft intergrate for android app
mule custom aggregator
Muleflowarchitecturepart2
Data weave more operations
Anypoint enterprise security overview
Using spring scheduler mule
Runing batch job in mule
Rest security in mule
Apache flume
Bitcoin: The Internet of Money
Ad

Similar to Load balancer in mule (20)

PDF
9th docker meetup 2016.07.13
PDF
Configuring Highly Scalable Compile Masters, Vasco Cardoso, AWS
PDF
Latest AWS ANS-C01 Exam Dumps with Explanations
PPTX
MuleSoft Meetup Vancouver 5th Virtual Event
PPTX
Traffic Mirroring Setup Manual AWS using Extrahop
PDF
Load Balancer Device and Configurations.
PDF
Clear Amazon ANS-C01 Exam with Certifiedumps
PDF
[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...
PDF
WSO2 Dep Sync for Artifact Synchronization of Cluster Nodes
PPTX
VMware Certified Professional 5 - Data Center Virtualization Delta Exam
PDF
saa3_wk5.pdf
PPTX
Real-Time Rails: Implementing WebSockets in Rails 5 with Action Cable
PDF
Nashik MuleSoft Virtual Meetup#1 - Shared and Dedicated Load Balancer
PPT
Migrating from Pivotal tc Server on-prem to IBM Liberty in the cloud
PDF
Cohesive Networks Support Docs: VNS3 Configuration for Amazon VPC
PDF
AWS Certified Cloud Practitioner Course S7-S10
PDF
Amazon VPC Best Practices 2016
PDF
AWS VPC best practices 2016 by Bogdan Naydenov
PDF
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
PDF
Meeyup aws-loadbalancing-28032015
9th docker meetup 2016.07.13
Configuring Highly Scalable Compile Masters, Vasco Cardoso, AWS
Latest AWS ANS-C01 Exam Dumps with Explanations
MuleSoft Meetup Vancouver 5th Virtual Event
Traffic Mirroring Setup Manual AWS using Extrahop
Load Balancer Device and Configurations.
Clear Amazon ANS-C01 Exam with Certifiedumps
[WSO2] Deployment Synchronizer for Deployment Artifact Synchronization Betwee...
WSO2 Dep Sync for Artifact Synchronization of Cluster Nodes
VMware Certified Professional 5 - Data Center Virtualization Delta Exam
saa3_wk5.pdf
Real-Time Rails: Implementing WebSockets in Rails 5 with Action Cable
Nashik MuleSoft Virtual Meetup#1 - Shared and Dedicated Load Balancer
Migrating from Pivotal tc Server on-prem to IBM Liberty in the cloud
Cohesive Networks Support Docs: VNS3 Configuration for Amazon VPC
AWS Certified Cloud Practitioner Course S7-S10
Amazon VPC Best Practices 2016
AWS VPC best practices 2016 by Bogdan Naydenov
VMworld 2013: Part 2: How to Build a Self-Healing Data Center with vCenter Or...
Meeyup aws-loadbalancing-28032015

More from Ramakrishna kapa (20)

PPTX
Anypoint connectors
PPTX
Batch processing
PPTX
Msmq connectivity
PPTX
Scopes in mule
PPTX
Basic math operations using dataweave
PPTX
Dataweave types operators
PPTX
Operators in mule dataweave
PPTX
Data weave in mule
PPTX
Servicenow connector
PPTX
Introduction to testing mule
PPTX
Choice flow control
PPTX
Message enricher example
PPTX
Mule exception strategies
PPTX
Anypoint connector basics
PPTX
Mule global elements
PPTX
Mule message structure and varibles scopes
PPTX
How to create an api in mule
PPTX
Log4j is a reliable, fast and flexible
PPTX
PPTX
Vi editor
Anypoint connectors
Batch processing
Msmq connectivity
Scopes in mule
Basic math operations using dataweave
Dataweave types operators
Operators in mule dataweave
Data weave in mule
Servicenow connector
Introduction to testing mule
Choice flow control
Message enricher example
Mule exception strategies
Anypoint connector basics
Mule global elements
Mule message structure and varibles scopes
How to create an api in mule
Log4j is a reliable, fast and flexible
Vi editor

Recently uploaded (20)

DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Advanced IT Governance
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
cuic standard and advanced reporting.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Electronic commerce courselecture one. Pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Big Data Technologies - Introduction.pptx
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Cloud computing and distributed systems.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
The AUB Centre for AI in Media Proposal.docx
Advanced IT Governance
NewMind AI Monthly Chronicles - July 2025
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
GamePlan Trading System Review: Professional Trader's Honest Take
cuic standard and advanced reporting.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Electronic commerce courselecture one. Pdf
NewMind AI Weekly Chronicles - August'25 Week I
Big Data Technologies - Introduction.pptx
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Cloud computing and distributed systems.
MYSQL Presentation for SQL database connectivity
Advanced methodologies resolving dimensionality complications for autism neur...
Understanding_Digital_Forensics_Presentation.pptx

Load balancer in mule

  • 1. Load Balancer in Mule and VPC creation This feature will eventually be built into the Runtime Manager UI, however currently it’s only available as a service that can be used via the Anypoint Command Line Interface.
  • 2. • Create a VPC • To create a VPC, log in to your Anypoint Platform and follow these steps: • Select the VPCs tab from the navigation bar to your left. • Click the Create VPC option:
  • 5. All VPCs need to be associated to a CloudHub region. • A VPC name. For this tutorial, name your VPC vpc-tutorial. • The region to which the VPC is bound. In this case, the VPC is bound to US East (Virginia).
  • 6. • The size of your VPC in Classless Inter-Domain Routing (CIDR) notation. Set it to 10.111.0.0/24 which grants us 256 IP addresses from 10.111.0.0 to 10.111.0.255. The CIDR Blocks chosen for the VPC should ideally come from a private IP space, and should not overlap with any other VPC’s CIDR Blocks or any CIDR Blocks in use in your corporate network.
  • 7. • Once the VPC is created, it is not possible to resize it, nor to edit your selected CIDR block. Understanding how to size your VPC is crucial at this point. If you are not sure how to configure this, make sure to follow our VPC sizing guide.
  • 8. • Each load balancer can be associated with one or more SSL endpoints. Such endpoints are identified by their certificate names. • Certificates are an important component of your dedicated load balancer. When creating a load balancer, at least one SSL endpoint needs to be configured, meaning that each load balancer needs to have at least one certificate associated to it.
  • 9. • All inbound traffic is blocked by default. Firewall rules are required to allow traffic to your worker. The UI suggests you a list of most used firewall rules. For this example, add a firewall rule with type 'http.private.port' from Anywhere. Note that the port range is automatically set to 8091. • This means that only connections through the port 8091 are whitelisted inside the VPC and that your worker will listen to all interfaces coming through port 8091. Setting this firewall rule allows a dedicated load balancer to communicate to your workers using its default configurations. • Additionally, to properly receive requests from the load balancer, all applications that are deployed to the VPC must be listening on port 8091.
  • 11. Create a Load Balancer • A load balancer can be created using the load- balancer create command. • cloudhub load-balancer create vpc-tutorial lb-tutorial /Users/myuser/Documents/cert.pem /Users/myuser/Documents/key.pem --http on --verificationMode on
  • 12. • Pass vpc-tutorial as the vpc name in which you want to create the load balancer. • In order to keep consistency among tutorials, we are using components created in the VPC tutorial. • Name the load balancer lb-tutorial. • The load balancer’s name must be unique. • Each load balancer has an internal domain name: internal-<lb-name>.lb.anypointdns.net where <lb-name> is the name you set here.
  • 13. • Pass the path to a .pem file certificate and its key We are using the self-signed certificate created earlier, along with its private key: cert.pemand key.pem. The certificate that you upload to the Load Balancer must be contained in one pem encoded and unencrypted file. Your private key file needs to be passphraseless. • Set the option for the http method to on. This sets the load balancer to accept all http requests and forwards it to your default SSL endpoint. In this case, the only ssl endpoint configured is lb-tutorial-cert • Set the option for the verificationMode to on This instructs the SSL endpoint to always verify the certificate • When the operation succeeds, the CLI displays the details of the newly created load balancer.
  • 14. • > cloudhub load-balancer mappings add lb- tutorial 0 /{app}/ {app} / • Set lb-tutorial as the target for this new mapping rule • Set the index priority for this mapping rule to 0 This rule now has the first priority. • Set the input URL as /{app}/ This rule uses patterns so that every value passed as {app} in the load balancer’s domain name: lb- tutorial.lb.anypointdns.net/{app} gets mapped to the URL set as the output URL. • Set the output URL to {app} So that the domain lb-tutorial.lb.anypointdns.net/{app} gets mapped to {app}.cloudub.io/ using the pattern {app} to match your application’s name. • Set the appURI to / to redirect to the initial path of your application.
  • 15. Update an Existing Load Balancer • It is possible to edit the Whitelists, Mapping Rules and SSL Endpoints from the Anypoint Platform CLI. • Remove the existing configuration using load- balancer whitelist remove, load-balancer mappings remove and load-balancer ssl- endpoint remove respectively and add the new configurations.
  • 16. Update an Existing Load Balancer Using the CloudHub API • Although it is not possible to update certain load balancer values through the Anypoint Platform CLI, you can use the Cloudhub API to programmatically manage and update your load balancer: • Log in to the CloudHub services passing your credentials to https://anypoint.mulesoft.com/accounts/login. • Use the organizations/{orgId}/vpcs/{vpcId}/loadbalancers/{lbId} endpoint to update your load balancer.