Development12 min read•Updated November 2026

VPS Hosting for Selenium Grid

Quick answer

Selenium Grid runs WebDriver tests on remote browsers in parallel. On VPS servers, the simplest setup is the official Docker images: a standalone container for small needs, or a hub plus browser nodes (Chrome, Firefox, Edge) for more capacity, with the Grid listening on port 4444. Set sessions per node to roughly the number of vCores, give containers enough shared memory, keep the Grid on a private network or protected with authentication, record videos and logs for failures, and point CI at the Grid's URL. Add nodes to scale parallelism and monitor the session queue.

Browser test suites get slow as they grow. Running tests in parallel across many browsers cuts the wait from an hour to minutes, and Selenium Grid is the standard way to do that for WebDriver-based tests in Java, Python, C#, JavaScript and other languages. Hosting the Grid on your own VPS servers gives predictable cost and full control over browser versions, network access to staging environments and test data.

Grid 4 Architecture

Selenium Grid 4 is made of components: a Router (entry point), a Distributor (assigns sessions to nodes), a Session Map, a New Session Queue, an Event Bus, and Nodes that run browsers. You can run them in three ways:

ModeDescriptionUse
StandaloneAll components and a node in one processSmall teams, one server
Hub and nodeHub runs the central components; nodes register with itMost multi-server setups
DistributedEach component runs separatelyLarge grids needing fine-grained scaling

Running with Docker

The official docker-selenium images package browsers, drivers and the Grid at matching versions. A typical hub-and-node layout uses a selenium/hub container and selenium/node-chrome, node-firefox or node-edge containers, connected through the event bus ports (4442 and 4443) with clients connecting to port 4444. Pin image tags to specific versions so browser upgrades happen when you choose. Give browser containers enough shared memory (the project recommends a larger --shm-size, such as 2 GB, for Chrome) to avoid crashes.

Sessions per Node

Each browser session uses CPU and memory. A practical starting point is about one concurrent session per vCore with 1–2 GB of RAM per session, then adjust using real measurements. Set the node's maximum sessions explicitly rather than relying on defaults. Too many sessions on one node make every test slower and introduce timeouts that look like flaky tests.

Dynamic Grid

With the Docker node mode ("dynamic grid"), the Grid starts a fresh browser container for each session and removes it afterwards. Every test gets a clean browser, and you can offer several browser versions. It needs access to the Docker daemon, which is root-equivalent, so isolate that server and keep it private.

Securing the Grid

  • An open Grid lets anyone run browsers on your servers, which can be abused to reach internal networks. Never expose port 4444 to the internet without protection.
  • Keep nodes and the hub on a private network; let CI reach the Grid over VPN or private networking.
  • If remote access is needed, enable the Grid's basic authentication options and put it behind HTTPS with Nginx, plus an IP allow list.
  • Do not use production credentials in tests; use dedicated test accounts.

Connecting CI

Tests create a RemoteWebDriver (or the equivalent in your language) pointing at http://grid-host:4444 with the desired browser options. Run tests in parallel with your test framework's settings, matched to the Grid's total session capacity. Session requests above capacity wait in the queue; set a sensible queue timeout so CI fails clearly rather than hanging. See our Jenkins guide and CI/CD infrastructure guide.

Video, Logs and Debugging

docker-selenium supports recording video of sessions, which is invaluable for understanding failures in headless runs. Save screenshots and browser console logs on failure, keep videos only for failed tests to save disk, and clean old recordings automatically. The Grid UI at /ui shows nodes, sessions and the queue, and can show live sessions through VNC where enabled.

Making Tests Stable

  • Use explicit waits for conditions, never fixed sleeps.
  • Prefer stable locators such as IDs, data attributes or accessible names.
  • Make tests independent, with their own data, so they can run in any order and in parallel.
  • Set page load and script timeouts to fail fast on hung pages.
  • Restart nodes or use dynamic grid to avoid state building up in long-running browsers.

Selenium Grid or Playwright?

If you are starting a new test suite, Playwright offers built-in parallelism and auto-waiting without a Grid (see our Playwright testing guide). Selenium Grid remains the right choice for existing WebDriver suites, for teams using many languages, and for organisations standardised on the W3C WebDriver protocol. For non-testing automation, see our browser automation guide.

Monitoring

Watch the session queue length and wait time, node availability, CPU and memory per node, and test failure rates by browser. A growing queue means you need more nodes; rising timeouts with no queue often mean nodes are overloaded. The Grid exposes status endpoints and GraphQL queries you can poll from monitoring.

Sizing

SetupSuggested plans
Standalone grid, a few parallel sessions4 vCores / 16 GB
Hub plus two Chrome/Firefox nodes2 vCores / 8 GB hub, 2 × 4 vCores / 16 GB nodes
Large suites with many parallel sessionsHub plus several 8 vCore / 32 GB nodes

The hub itself is light; nodes need the CPU and memory.

Example: A QA Team

A QA team runs a Selenium Grid hub on a 2 vCore / 8 GB VPS and three 8 vCore / 32 GB nodes on a private network, each set to eight Chrome or Firefox sessions. Jenkins runs the regression suite with 24 parallel threads, videos are kept only for failed tests for seven days, and the full suite finishes in 15 minutes instead of two hours.

Common Mistakes

  • Exposing port 4444 to the internet.
  • Too many sessions per node, causing timeouts.
  • Default shared memory, causing Chrome crashes in Docker.
  • Unpinned images that upgrade browsers unexpectedly.
  • Tests sharing data and failing when run in parallel.

In Short

Run Selenium Grid with pinned Docker images, size sessions to vCores and memory, keep the Grid private, record failures, make tests independent and scale by adding nodes.

SkyRainCloud Plans for This Workload

Browsers are the cost: plan roughly one concurrent session per vCore with enough RAM per browser. A 4 vCore / 16 GB node runs about four parallel Chrome sessions comfortably; add nodes for more parallelism.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

What is Selenium Grid?
A system that runs WebDriver tests on remote browsers across one or more machines, enabling parallel testing.
Which port does Selenium Grid use?
Clients connect to port 4444; in hub-and-node mode the event bus uses ports 4442 and 4443.
How do I run Selenium Grid in Docker?
Use the official docker-selenium images: a standalone image or a hub with Chrome, Firefox or Edge nodes.
How many sessions can a node run?
Roughly one per vCore with 1 to 2 GB of RAM each as a starting point; measure and adjust.
Why does Chrome crash in Selenium containers?
Usually small shared memory; increase --shm-size as the docker-selenium project recommends.
Is it safe to expose Selenium Grid publicly?
No. Keep it on a private network, or protect it with authentication, HTTPS and IP restrictions.
What is a dynamic grid?
A mode where the Grid starts a fresh browser container for each session and removes it afterwards.
Can Selenium Grid record videos?
Yes. docker-selenium supports session video recording, useful for debugging failures.
Should I use Selenium Grid or Playwright?
Selenium Grid for existing WebDriver suites and multi-language teams; Playwright for new suites wanting built-in parallelism.
Which plans suit Selenium Grid?
A 2 vCore / 8 GB hub with 4 to 8 vCore nodes sized for the number of parallel sessions.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning