1. Virtual Workers

Virtual Workers

Where Virtual Workers run, how to pick a cluster in a task, and how to manage, share and revoke the clusters your organization uses.

A Virtual Worker is a container with a real Chrome browser, a Linux command line and a file area. Your templates control it with tasks: they navigate and fill in web pages, run commands, move files to and from Stubber, and publish a web server running on the worker as a site. You can watch a worker's screen live, through the VNC panel on the stub.

See Virtual Worker for the concept, and Virtual Worker Send Commands for every command a worker accepts.

Clusters

Workers run in a cluster: a Kubernetes cluster that Stubber starts workers in, one per stub by default. Each cluster has a name, and a task chooses one with runtime.cluster.name:

loading...

Leave runtime.cluster.name out to use the default cluster, stubber_k8s, which Stubber runs for every organization.

Use a cluster of your own when the worker has to:

  • reach systems that are only available on your network, such as an internal portal or a legacy application;
  • browse from your network's IP address, for sites that only allow known addresses;
  • keep its data on your infrastructure.

The simplest way to get one is the Virtual Worker Appliance: a virtual machine image you start on your own infrastructure and connect to Stubber with a code.

Managing clusters

Your clusters are listed in Manage under Cloud > Virtual Workers ( open). Each row shows the cluster's name, its status, who can use it and when it was last seen.

The ⋯ menu on a cluster your organization owns has:

  • Share: lets other organizations run workers on it. Pick from the other organizations you belong to, or add one by its organization UUID. Your own organization always keeps access.
  • Rename: changes the name tasks use. Templates that name the old cluster stop finding it, so update them as well.
  • Revoke: disconnects the cluster from Stubber for good, and removes it from the list. An appliance that is revoked stops and waits to be reset.

Clusters shared with your organization, and the default cluster (marked ★ Default), are listed too. You can use them, but only their owner can change them.

Worker sites

A web server running on a worker can be published at a public HTTPS address with Virtual Worker Site Register, on any cluster, including appliances. Choose a name no other site uses. On appliance clusters, a name already registered on another cluster is refused.

Worker resources

Each worker gets 128 MB of memory and a small share of a CPU guaranteed, and may use up to 1 GB and one CPU. Change this per task with runtime.cluster.worker.worker_spec, as described in Virtual Worker Send Commands. On your own cluster, plan its size from how many workers run at the same time.

Workers stop after 30 minutes without a task. Use Virtual Worker Warmup to start one ahead of time, and Virtual Worker List Workers to see which are running.