SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Cloudhub Dedicated
Load Balancers
Fatih Cihat Turgut, Mulesoft Architect
fcturgut@gmail.com
AGENDA
● Registration & Coffee/ 17:30-18:00
● Welcome & Introduction / 18:00-18:15
● Cloudhub Dedicated Load Balancers / 18:15-19:00
● Trivia & Prizes / 19:00-19:15
● Next Meetup Ideas / 19:15-19:20
● Pizza & Drinks Time & Networking / 19:20 - 20:00
Introductions
●About the organizer: Fatih Turgut
○ Moved to the Netherlands 2 years ago, Living in Amsterdam, married, 1 daughter.
○ 10+ Years in IT, last 6 years with Mulesoft. MCIA, MCPA.
○ Sr. Consultant at Devoteam for the last 2 years. Recent assignments; Intergamma, RTL,
Sodexo, Accell IT
●About the sponsor: Devoteam
○ Devoteam is a leading consulting firm focused on digital strategy, tech platforms, data and
cybersecurity.
○ With 25 years’ experience and more than 10,000 employees across Europe, the Middle East
and Africa, Devoteam promotes responsible tech for people and works to create better change.
Cloudhub Dedicated Load Balancers
What is a Load Balancer?
● Efficiently distributing incoming network traffic across a group of servers or applications.
○ Maximizes speed and capacity utilization and ensures that no server is overworked or
overwhelmed.
Mulesoft Cloudhub
● CloudHub is a cloud-based integration platform as a service (iPaaS) that enables developers to
integrate and orchestrate applications and services. These applications and services are run on
one or more instances of MuleSoft which is known as Workers. CloudHub provides a load
balancing service for all integrations. We can use the default load balancing service (SLB) or
obtain a dedicated load balancer.
Shared Load Balancer
● As the name suggests, a ‘Shared’ Load Balancer is shared between all the CloudHub
customers and it sits outside of the Client’s VPC.
● There is one SLB clustered instance in each CloudHub region that serves all the CloudHub
customers in that AWS region.Therefore, SLB can only be used to balance the calls for the
external-facing APIs, it can’t be used for balancing the load between your internal workers.
Dedicated Load Balancer
● Dedicated Load Balancer (DLB) is an
optional component of the Anypoint
Platform that enables you to route
external and internal HTTP and HTTPS
traffic to multiple Mule applications
deployed in your VPC.
● DLB sits inside of your VPC and while
routing incoming traffic, it will route to
8091 and 8092 ports.
● You will have more control over it, like
scalability, vanity domain, your very own
SSL certificates, and two-way TLS
configuration.
Technical Aspects of DLB
● Every DLB can be associated with only one VPC.
● Each DLB by default runs in a highly available configuration with 2 workers.
● Each worker size is configured as 2 vCores + 3.5 GB Memory. This won't consume the vCores
from CloudHub vCore subscription.
● Scalable horizontally but not vertically.
● Every entitlement includes 2 workers. So for every 2 workers you need 1 DLB licence.
● 1 DLB can be configured with max 8 workers.
● Connect timeout is 4 seconds per worker (4 times it tries for a TCP handshake and waits for 1
second per try). If the attempt fails for one worker, it gets another IP from the internal DNS for
subsequent workers. When there are no more workers left, it responds with a Connect Timeout.
Technical Aspects of DLB
Public and Private Exposure
● Default 2 workers, so 2 Public and 2 Private IPs are assigned.
● Public IP addresses can be set as static
● Private IP addresses can not be assigned static IPs. It randomly gets assigned to two of the
CIDR range of the VPC.
● Private IP addresses naturally can be called only from your internal network. That means only by
the Mule applications that runs on the same VPC or over the VPN tunnel if exists.
● You can limit the IPs that can access to the DLB with Allowlist. Its default is 0.0.0.0/0 , basically
anywhere.
DNS Structure and Mappings
● 2 DNS is associated with your DLB regardless of worker counts. 1 DNS is for public facing and
resolves to your public IPs of DLB, and the other one is for internal facing and resolves to your
internal IPs of DLB.
● Public DNS naming convention is: <lb-name>.<sub-domain-for-anypointdns>.anypointdns.net
● Private DNS naming convention is: internal-<lb-name>.<sub-domain-for-
anypointdns>.anypointdns.net
● We can mask the default DNS of Anypoint Platform with a SSL Certificate and DNS CNAME
Record. DNS A record is not advised even though you use static IPs.
DLB Properties and Options
● Allowlisted CIDRs - Default 0.0.0.0/0
● Timeout in Seconds - Response Timeout Default 300 Seconds
● Connect Timeout - 4 seconds (4 times it tries for a TCP handshake and waits for 1 second per try
per worker)
● Inbound HTTP Mode:
○ Mode Off
○ Mode On
○ Mode Redirect
● Static IP
● Keep URL Encoding - Non-ASCII chars to ASCII; %20 (space) and %23 (#)
● Support TLS 1.0 - Not advised. Last resort.
● Upstream TLS 1.2 - Force the TLS 1.2 from DLB to Mule worker
● Forward Client Certificate*
SSL Certificates
A dedicated load balancer must have at least one certificate associated with it in order to create it.
● Certificates must be pem-encoded.
● The private Key has to be unencrypted.
● All the key attributes and bag attributes must be removed.
● Files must contain the entire certificate chain and that chain has to be ordered sequentially.
If those are sent to you separately you can simply append them to a text editor. The order of
the certificates in the file must be:
○ Certificate for the DLB
○ Certificates for intermediate CAs
○ Certificate for the root CA
Creating the SSL Certificate
● We are going to use OpenSSL
● If you already have Git for Windows, you may simply go to the Git installation directory, find
usrbinopenssl.exe and run it or run the Git Bash and use the “OpenSSL” command.
● A third option would be to add the git OpenSSL path to the environment variables so you
can access OpenSSL from cmd and anywhere.
Create cert&key: openssl req -x509 -newkey rsa:2048 -keyout dlbk.pem -out dlbcert.pem -days 365
Decrypt key: openssl rsa -in dlbk.pem -out undlbk.pem
Creating the DLB
Trivia Time
Next Meetup Ideas
Thank You

Weitere ähnliche Inhalte

Ähnlich wie DLB Meetup Mulesoft.pptx

How Pulsar Enables Netdata to Offer Unlimited Infrastructure Monitoring for F...
How Pulsar Enables Netdata to Offer Unlimited Infrastructure Monitoring for F...How Pulsar Enables Netdata to Offer Unlimited Infrastructure Monitoring for F...
How Pulsar Enables Netdata to Offer Unlimited Infrastructure Monitoring for F...
StreamNative
 

Ähnlich wie DLB Meetup Mulesoft.pptx (20)

Secure and private collaboration - LinuxDays 2015 Kolab and Univention
Secure and private collaboration - LinuxDays 2015 Kolab and UniventionSecure and private collaboration - LinuxDays 2015 Kolab and Univention
Secure and private collaboration - LinuxDays 2015 Kolab and Univention
 
Truemotion Adventures in Containerization
Truemotion Adventures in ContainerizationTruemotion Adventures in Containerization
Truemotion Adventures in Containerization
 
How Pulsar Enables Netdata to Offer Unlimited Infrastructure Monitoring for F...
How Pulsar Enables Netdata to Offer Unlimited Infrastructure Monitoring for F...How Pulsar Enables Netdata to Offer Unlimited Infrastructure Monitoring for F...
How Pulsar Enables Netdata to Offer Unlimited Infrastructure Monitoring for F...
 
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB ArchitectureToronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
 
SPDY and What to Consider for HTTP/2.0
SPDY and What to Consider for HTTP/2.0SPDY and What to Consider for HTTP/2.0
SPDY and What to Consider for HTTP/2.0
 
How Much Can You Connect? | Bhavesh Raheja, Disney + Hotstar
How Much Can You Connect? | Bhavesh Raheja, Disney + HotstarHow Much Can You Connect? | Bhavesh Raheja, Disney + Hotstar
How Much Can You Connect? | Bhavesh Raheja, Disney + Hotstar
 
How Much Can You Connect? | Bhavesh Raheja, Disney + Hotstar
How Much Can You Connect? | Bhavesh Raheja, Disney + HotstarHow Much Can You Connect? | Bhavesh Raheja, Disney + Hotstar
How Much Can You Connect? | Bhavesh Raheja, Disney + Hotstar
 
Locking down your Kubernetes cluster with Linkerd
Locking down your Kubernetes cluster with LinkerdLocking down your Kubernetes cluster with Linkerd
Locking down your Kubernetes cluster with Linkerd
 
RTBkit Meetup - Developer Spotlight, Behind the Scenes of RTBkit and Intro to...
RTBkit Meetup - Developer Spotlight, Behind the Scenes of RTBkit and Intro to...RTBkit Meetup - Developer Spotlight, Behind the Scenes of RTBkit and Intro to...
RTBkit Meetup - Developer Spotlight, Behind the Scenes of RTBkit and Intro to...
 
Services in kubernetes-KnolX .pdf
Services in kubernetes-KnolX .pdfServices in kubernetes-KnolX .pdf
Services in kubernetes-KnolX .pdf
 
Go at uber
Go at uberGo at uber
Go at uber
 
MuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLB
MuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLBMuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLB
MuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLB
 
MuleSoft Meetup Vancouver 5th Virtual Event
MuleSoft Meetup Vancouver 5th Virtual EventMuleSoft Meetup Vancouver 5th Virtual Event
MuleSoft Meetup Vancouver 5th Virtual Event
 
Building a Small DC
Building a Small DCBuilding a Small DC
Building a Small DC
 
OpenFlow @ Google
OpenFlow @ GoogleOpenFlow @ Google
OpenFlow @ Google
 
Running Dataproc At Scale in production - Searce Talk at GDG Delhi
Running Dataproc At Scale in production - Searce Talk at GDG DelhiRunning Dataproc At Scale in production - Searce Talk at GDG Delhi
Running Dataproc At Scale in production - Searce Talk at GDG Delhi
 
Building a Small Datacenter
Building a Small DatacenterBuilding a Small Datacenter
Building a Small Datacenter
 
DORS/CLUC How to setup Kolab and Seafile as your personal secure data bank
DORS/CLUC How to setup Kolab and Seafile as your personal secure data bankDORS/CLUC How to setup Kolab and Seafile as your personal secure data bank
DORS/CLUC How to setup Kolab and Seafile as your personal secure data bank
 
HAProxy as Egress Controller
HAProxy as Egress ControllerHAProxy as Egress Controller
HAProxy as Egress Controller
 
Laskar: High-Velocity GraphQL & Lambda-based Software Development Model
Laskar: High-Velocity GraphQL & Lambda-based Software Development ModelLaskar: High-Velocity GraphQL & Lambda-based Software Development Model
Laskar: High-Velocity GraphQL & Lambda-based Software Development Model
 

Kürzlich hochgeladen

DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DrGurudutt
 

Kürzlich hochgeladen (20)

Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
Fabrication Of Automatic Star Delta Starter Using Relay And GSM Module By Utk...
 
Artificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian ReasoningArtificial Intelligence Bayesian Reasoning
Artificial Intelligence Bayesian Reasoning
 
BURGER ORDERING SYSYTEM PROJECT REPORT..pdf
BURGER ORDERING SYSYTEM PROJECT REPORT..pdfBURGER ORDERING SYSYTEM PROJECT REPORT..pdf
BURGER ORDERING SYSYTEM PROJECT REPORT..pdf
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
Dairy management system project report..pdf
Dairy management system project report..pdfDairy management system project report..pdf
Dairy management system project report..pdf
 
Theory for How to calculation capacitor bank
Theory for How to calculation capacitor bankTheory for How to calculation capacitor bank
Theory for How to calculation capacitor bank
 
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
The battle for RAG, explore the pros and cons of using KnowledgeGraphs and Ve...
 
How to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdfHow to Design and spec harmonic filter.pdf
How to Design and spec harmonic filter.pdf
 
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdfDR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
DR PROF ING GURUDUTT SAHNI WIKIPEDIA.pdf
 
Supermarket billing system project report..pdf
Supermarket billing system project report..pdfSupermarket billing system project report..pdf
Supermarket billing system project report..pdf
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
ChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdfChatGPT Prompt Engineering for project managers.pdf
ChatGPT Prompt Engineering for project managers.pdf
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
Lab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docxLab Manual Arduino UNO Microcontrollar.docx
Lab Manual Arduino UNO Microcontrollar.docx
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
Quiz application system project report..pdf
Quiz application system project report..pdfQuiz application system project report..pdf
Quiz application system project report..pdf
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
ANSI(ST)-III_Manufacturing-I_05052020.pdf
ANSI(ST)-III_Manufacturing-I_05052020.pdfANSI(ST)-III_Manufacturing-I_05052020.pdf
ANSI(ST)-III_Manufacturing-I_05052020.pdf
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 

DLB Meetup Mulesoft.pptx

  • 1. Cloudhub Dedicated Load Balancers Fatih Cihat Turgut, Mulesoft Architect fcturgut@gmail.com
  • 2. AGENDA ● Registration & Coffee/ 17:30-18:00 ● Welcome & Introduction / 18:00-18:15 ● Cloudhub Dedicated Load Balancers / 18:15-19:00 ● Trivia & Prizes / 19:00-19:15 ● Next Meetup Ideas / 19:15-19:20 ● Pizza & Drinks Time & Networking / 19:20 - 20:00
  • 3. Introductions ●About the organizer: Fatih Turgut ○ Moved to the Netherlands 2 years ago, Living in Amsterdam, married, 1 daughter. ○ 10+ Years in IT, last 6 years with Mulesoft. MCIA, MCPA. ○ Sr. Consultant at Devoteam for the last 2 years. Recent assignments; Intergamma, RTL, Sodexo, Accell IT ●About the sponsor: Devoteam ○ Devoteam is a leading consulting firm focused on digital strategy, tech platforms, data and cybersecurity. ○ With 25 years’ experience and more than 10,000 employees across Europe, the Middle East and Africa, Devoteam promotes responsible tech for people and works to create better change.
  • 4. Cloudhub Dedicated Load Balancers What is a Load Balancer? ● Efficiently distributing incoming network traffic across a group of servers or applications. ○ Maximizes speed and capacity utilization and ensures that no server is overworked or overwhelmed.
  • 5. Mulesoft Cloudhub ● CloudHub is a cloud-based integration platform as a service (iPaaS) that enables developers to integrate and orchestrate applications and services. These applications and services are run on one or more instances of MuleSoft which is known as Workers. CloudHub provides a load balancing service for all integrations. We can use the default load balancing service (SLB) or obtain a dedicated load balancer.
  • 6. Shared Load Balancer ● As the name suggests, a ‘Shared’ Load Balancer is shared between all the CloudHub customers and it sits outside of the Client’s VPC. ● There is one SLB clustered instance in each CloudHub region that serves all the CloudHub customers in that AWS region.Therefore, SLB can only be used to balance the calls for the external-facing APIs, it can’t be used for balancing the load between your internal workers.
  • 7. Dedicated Load Balancer ● Dedicated Load Balancer (DLB) is an optional component of the Anypoint Platform that enables you to route external and internal HTTP and HTTPS traffic to multiple Mule applications deployed in your VPC. ● DLB sits inside of your VPC and while routing incoming traffic, it will route to 8091 and 8092 ports. ● You will have more control over it, like scalability, vanity domain, your very own SSL certificates, and two-way TLS configuration.
  • 8. Technical Aspects of DLB ● Every DLB can be associated with only one VPC. ● Each DLB by default runs in a highly available configuration with 2 workers. ● Each worker size is configured as 2 vCores + 3.5 GB Memory. This won't consume the vCores from CloudHub vCore subscription. ● Scalable horizontally but not vertically. ● Every entitlement includes 2 workers. So for every 2 workers you need 1 DLB licence. ● 1 DLB can be configured with max 8 workers. ● Connect timeout is 4 seconds per worker (4 times it tries for a TCP handshake and waits for 1 second per try). If the attempt fails for one worker, it gets another IP from the internal DNS for subsequent workers. When there are no more workers left, it responds with a Connect Timeout.
  • 10. Public and Private Exposure ● Default 2 workers, so 2 Public and 2 Private IPs are assigned. ● Public IP addresses can be set as static ● Private IP addresses can not be assigned static IPs. It randomly gets assigned to two of the CIDR range of the VPC. ● Private IP addresses naturally can be called only from your internal network. That means only by the Mule applications that runs on the same VPC or over the VPN tunnel if exists. ● You can limit the IPs that can access to the DLB with Allowlist. Its default is 0.0.0.0/0 , basically anywhere.
  • 11. DNS Structure and Mappings ● 2 DNS is associated with your DLB regardless of worker counts. 1 DNS is for public facing and resolves to your public IPs of DLB, and the other one is for internal facing and resolves to your internal IPs of DLB. ● Public DNS naming convention is: <lb-name>.<sub-domain-for-anypointdns>.anypointdns.net ● Private DNS naming convention is: internal-<lb-name>.<sub-domain-for- anypointdns>.anypointdns.net ● We can mask the default DNS of Anypoint Platform with a SSL Certificate and DNS CNAME Record. DNS A record is not advised even though you use static IPs.
  • 12. DLB Properties and Options ● Allowlisted CIDRs - Default 0.0.0.0/0 ● Timeout in Seconds - Response Timeout Default 300 Seconds ● Connect Timeout - 4 seconds (4 times it tries for a TCP handshake and waits for 1 second per try per worker) ● Inbound HTTP Mode: ○ Mode Off ○ Mode On ○ Mode Redirect ● Static IP ● Keep URL Encoding - Non-ASCII chars to ASCII; %20 (space) and %23 (#) ● Support TLS 1.0 - Not advised. Last resort. ● Upstream TLS 1.2 - Force the TLS 1.2 from DLB to Mule worker ● Forward Client Certificate*
  • 13. SSL Certificates A dedicated load balancer must have at least one certificate associated with it in order to create it. ● Certificates must be pem-encoded. ● The private Key has to be unencrypted. ● All the key attributes and bag attributes must be removed. ● Files must contain the entire certificate chain and that chain has to be ordered sequentially. If those are sent to you separately you can simply append them to a text editor. The order of the certificates in the file must be: ○ Certificate for the DLB ○ Certificates for intermediate CAs ○ Certificate for the root CA
  • 14. Creating the SSL Certificate ● We are going to use OpenSSL ● If you already have Git for Windows, you may simply go to the Git installation directory, find usrbinopenssl.exe and run it or run the Git Bash and use the “OpenSSL” command. ● A third option would be to add the git OpenSSL path to the environment variables so you can access OpenSSL from cmd and anywhere. Create cert&key: openssl req -x509 -newkey rsa:2048 -keyout dlbk.pem -out dlbcert.pem -days 365 Decrypt key: openssl rsa -in dlbk.pem -out undlbk.pem

Hinweis der Redaktion

  1. A Record is not suggested because if the DLB is upscaled or downscaled we need to update the A record again. We will go into the details of creating a certificate