<< Previous | Next >>

Daily Learnings: Thu, Jan 23, 2025

Not all those who wander are lost. — J. R. R. Tolkien

Notes on On-Prem Mulesoft Deployments

I did some learning on Mulesoft deployments that involve wrapping on-premise applications.

Prereqs

Steps for Mule Deployment & Management Pane Configuration

  1. Allocate a “server” using whatever platform or method you’d like
    • Could be a virtual machine in the cloud or even on a bare metal server that you’ve racked and stacked yourself
  2. Install the Mulesoft Runtime Agent
    • This is what’s connecting up to the Mulesoft Management Pane (which is hosted by Mulesoft themselves)
    • Google “Mulesoft standalone runtime” to find the download link
    • Extract the files into a directory on your server
    • Note where the bin directory is (for use later)
  3. Navigate to your organization’s Anypoint Platform cloud UI to allocate a server
    • Anypoint > Runtime Manager > Servers > Add Server
    • Define a unique name for the server
    • Copy the command that the UI provides
  4. On your server, navigate to the Mule Runtime Agent directory and find the bin directory
  5. Run the command in a terminal on the server in this directory
  6. Ensure that the “heartbeat” that is sent up to the CloudHub is received and that your server is “registered”
    • This is always “customer-initiated”, meaning that it’s sent from the customer’s server / data center, never something that Mulesoft attempts to connect directly into
    • I.e., this is just egress traffic
  7. In a terminal on your server, start the Mule process by running mule in the same directory as above
  8. Ensure that the Runtime Manager shows your server(s) status as “Running”
  9. (OPTIONAL) Set up a “cluster” for high-availability deployments
    • This refers to setting up 2 or more servers with the same applications and Mulesoft Runtime Agent installed (likely with load balancing involved), and wrapping those two servers as a “cluster” so the Mulesoft Management Pane sees them as unified

Deploying Applications to Your Server / Cluster

Note: The following steps assume that you’ll be deploying your application to your Mule Runtime via the web UI

  1. Navigate in the web-based Anypoint Management Center to Runtime Manager > Applications > Deploy Application
  2. Name your application
  3. Select your server / cluster from the Deployment Target dropdown menu
  4. Next to Application File, select Upload File from the Choose File dropdown and upload your application’s JAR file
  5. Set up your properties and logging configuration as needed, then click Deploy

Additional Notes

Additional Terminology

Resources

References