NEWUse coupon code SMX20 to get 20% OFF your first billing cycle on any game server or VPS!Explore Store

VPS HOSTING

VPS Hosting for Selenium Grid

Run Selenium Grid 4 on VPS servers: standalone, hub and node, and distributed modes, Docker images, sessions per node and sizing, shared memory, dynamic grid, securing the grid, video and logs, CI integration, stability tips and monitoring.

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.

ServoMix 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
SMX vPro XS (AMD EPYC)28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹420/moWebsites, small APIs, bots, staging and VPN serversOrder
SMX vPro S (AMD EPYC)416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹560/moWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
SMX vPro M (AMD EPYC)832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹840/moProduction databases, high-traffic sites, multi-container appsOrder
SMX vPro L (AMD EPYC)1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹1,120/moLarge 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
SMX vCore XS (Intel Xeon)28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹270/moBusiness websites, small apps, scheduled jobs and botsOrder
SMX vCore S (Intel Xeon)416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
SMX vCore M (Intel Xeon)832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
SMX vCore L (Intel Xeon)1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,248/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the ServoMix 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.

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.

Was this article helpful?

Your feedback helps us continuously improve ServoMix guides.

Share this article

Know someone who may find this guide useful?

Run Selenium Grid on VPS Servers for Parallel Browser Tests | ServoMix