MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Hudson Master-Slave Setup: Distributed Build Architecture and Agent Launch Methods

This guide explains Hudson’s distributed build model (master-slave), how jobs are scheduled across nodes, and how to launch slave agents reliably. It is most useful for teams maintaining legacy Hudson installations and for engineers translating older Hudson documentation into modern CI node practices.

Originally published on 2010-07-24; fully revised and updated.

Hudson master slave setup

How Hudson master-slave scheduling works

In Hudson, the master handles the web interface, accepts user requests, and coordinates build execution. It can run builds locally or delegate them to slave machines where slave agents are running. Jobs can be pinned to specific nodes or allowed to run on any available node.

  • The master remains the central control plane.
  • Slave nodes execute delegated builds from the master.
  • One machine can host multiple slave agents when needed.
  • Users view all job results from the master, regardless of where builds ran.
flowchart TD
    A[Build triggered on master] --> B[Master checks job rules]
    B --> C{Execution target}
    C --> D[Run on master node]
    C --> E[Run on labeled slave]
    C --> F[Run on any free slave]
    E --> G[Slave agent executes build]
    F --> G
    D --> H[Build result returned]
    G --> H
    H --> I[Result visible in master UI]

Where this model helps most

The original guide highlights multi-OS build coverage as a primary use case: for example, running jobs across Linux, Solaris, and Windows. This setup is also useful when you want to offload heavy jobs from the master or reuse existing desktops as occasional build nodes.

Slave agent launch methods compared

Hudson supports multiple ways to connect and launch slave agents. The best choice depends on network reachability, operating system, and operational control requirements.

Launch methodHow it startsBest forTrade-off
Launch via SSH (Unix)Master initiates SSH to slave and starts agentUnix/Linux nodes with reachable SSHRequires SSH connectivity and credentials
Launch via JNLP (Java Web Start)User starts agent from slave-side browserCases where slave can reach master but reverse access is limitedIf node goes down, master cannot always relaunch automatically
Headless JNLPRun slave.jar with -jnlpUrl on slaveDaemon-style agent startup without GUINeeds process supervision on slave host
Launch by command from masterMaster executes custom script (for example SSH wrapper)Custom environments and nonstandard login flowsMore scripting and maintenance effort
Windows service modeHudson controls a Windows slave as a servicePersistent Windows build hostsService setup and permissions must be managed

Original screenshots referenced in the source article: slave launch modes and slave configuration parameters.

Practical setup examples

Unix slave via SSH

  • In Hudson, go to Manage Hudson and then Manage Nodes.
  • Create a new node and select SSH-based launch.
  • Provide host, user, and credentials (password or key-based auth).
  • If using keys, ensure the public key is present in ~/.ssh/authorized_keys on the slave.
ssh-copy-id hudson@slave-hostCode language: CSS (css)

JNLP / Java Web Start startup

From the slave machine, open the master-provided JAR location and launch the agent through the JNLP flow.

curl -O http://masterserver:port/hudson/jnlpJars/slave.jarCode language: JavaScript (javascript)

Headless JNLP launch

The source article provides this daemon-friendly pattern. Replace slave-name with the node name configured in Hudson.

java -jar slave.jar -jnlpUrl http://yourserver:port/computer/slave-name/slave-agent.jnlpCode language: JavaScript (javascript)

Custom script launch from master

If built-in modes do not fit, Hudson can run a custom command on the master to establish the remote session and start the agent process.

ssh myslave java -jar ~/bin/slave.jarCode language: JavaScript (javascript)

For this mode, standard input and output are expected to remain connected correctly between master and agent startup command.

Common pitfalls in legacy Hudson node setups

  • Network direction mismatch: SSH launch needs master-to-slave access; JNLP depends on slave-to-master reachability.
  • Node naming errors: Incorrect slave-name in JNLP URLs prevents agent registration.
  • Agent resilience gaps: Browser-launched agents may not restart automatically after host reboot.
  • Credential drift: Expired keys or changed passwords break SSH-based startup.
  • Resource contention: Using a user desktop as a slave can impact interactive workload during heavy builds.

The original article also notes Hudson commonly running on port 8080 by default and being manageable without superuser privileges, but these should be validated against your actual installation and service model.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

How to login linux server using ssh?

You log in to a Linux server over SSH by running ssh username@server-ip from an SSH client, then proving who you are with either a password or…

Read More

Wetty – How to Install & Access Wetty (Web-based SSH) on AWS EC2 linux to access using browser

Wetty is a web-based terminal. It runs a small Node.js server that opens an SSH session and streams it to your browser over WebSockets, so you can…

Read More

Complete Tutorial: Use Two GitHub Accounts on One Mac with SSH

This tutorial explains how to configure two GitHub accounts on the same MacBook using separate SSH keys, without repeatedly switching accounts or breaking your existing Git configuration….

Read More

Development Workflows with an FTP and SFTP Client for Mac: From Local Files to Staging

An FTP and SFTP client for Mac is best suited when it displays the project that you are working on in one window and the remote server…

Read More

Linux Commands and Shell Scripting Reference for Linux Admins and DevOps Engineers

A structured Linux command and shell scripting reference for operations and DevOps work, rebuilt from the original link collection. It includes a practical learning workflow, command comparison tables, ready-to-use examples, and curated source links.

Read More

SSH Passwordless Login with ssh-keygen and ssh-copy-id (Step-by-Step)

Learn how to configure SSH key-based authentication so you can log in without typing the remote account password each time. This updated guide covers setup, verification, ssh-agent usage, and safe hardening options.

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Puja kushwaha
Puja kushwaha
26 days ago

A Hudson master-slave setup can help distribute build jobs and reduce the load on the main server. It is important to check network access, Java versions, and agent permissions before connecting worker nodes. Keeping tools and build settings consistent across nodes can prevent hard-to-trace failures. Teams should also monitor agent health and limit access to trusted machines. These steps make distributed builds easier to manage and more reliable.

1
0
Would love your thoughts, please comment.x
()
x