{{define "workers.html"}} {{template "head"}} Workers - Maps Scraper {{template "navbar" .}}
{{if .Success}}
{{.Success}}
{{end}} {{if .Error}}
{{.Error}}
{{end}}

Cloud Provider Tokens

Configure API tokens for the cloud providers you want to use for worker provisioning.

{{if .AnyConfigured}}

Provision Worker

Number of worker containers to run on this host
{{end}}

Your Workers

{{range .Workers}} {{end}}
Name Provider Region Size Status Health Stats IP Address
{{.Name}} {{.Provider}} {{.Region}} {{.Size}} {{if eq .Status "active"}} Active {{else if eq .Status "provisioning"}} Provisioning {{else if eq .Status "deleting"}} Deleting {{else if eq .Status "failed"}} Failed {{if .ErrorMessage}}
{{.ErrorMessage}}
{{end}} {{else}} {{.Status}} {{end}}
{{if .Health}} {{if .Health.Reachable}} OK {{else}} Down {{end}} {{else}} {{end}} {{if and .Health .Health.Reachable}} {{if .Health.ResultsPerMinute}}Speed: {{printf "%.1f" .Health.ResultsPerMinute}} res/min
{{end}} {{if .Health.ResultsCollected}}Results: {{.Health.ResultsCollected}}
{{end}} {{if .Health.Uptime}}Up: {{.Health.Uptime}}
{{end}} {{if .Health.CheckedAt}}Checked: {{.Health.CheckedAt}}{{end}} {{else}} — {{end}}
{{if .IPAddress}}{{.IPAddress}}{{else}}—{{end}} {{if and (ne .Status "deleting") (ne .Status "deleted")}} {{if and .IPAddress (eq .Status "active")}} {{end}}
{{end}}

No workers yet. Configure a provider and provision one to get started.

SSH Key Pair

{{if .SSHKeyExists}} Generated {{else}} Not Generated {{end}}
{{if .SSHKeyExists}}

The application SSH key pair is used to connect to provisioned workers. Download the private key to connect via SSH.

After downloading, set permissions: chmod 600 gmapspro_id_ed25519 Connect to a worker: ssh -p 2222 -i gmapspro_id_ed25519 root@<worker-ip> {{else}}

No SSH key pair has been generated yet. A key pair will be automatically generated when you provision your first worker.

{{end}}
{{end}}