This is the initial commit for the Victoriametrics resource. This is a basic version which supports creating a single-node Victoriametrics instance backed by a VM, creating and managing appropriate certs and authentication configuration. This version: - Installs victoriametrics and vmauth binaries on the VM - Configures the systemd services for these two services - Sets up the certificates and http basic authentication credentials This implementation only supports a single-node version for simplicity, as current read/write benchmarks show VictoriaMetrics can support upto 4k write targets (PG instnaces, for eg.) and around 2k concurrent read users on a single standard-8 VM. In the future, we can add support for cluster mode, migrations, backup etc as needed. Here is an example command to create a VictoriaMetrics resource: st = Prog::VictoriaMetrics::VictoriaMetricsResourceNexus.assemble( Config.victoria_metrics_service_project_id, "victoriametrics-test", Location::HETZNER_FSN1_ID, "vmuser", "standard-8", 20)
15 lines
547 B
Ruby
Executable File
15 lines
547 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
require_relative "../../common/lib/util"
|
|
|
|
unless (ver = ARGV.shift)
|
|
fail "No version provided"
|
|
end
|
|
|
|
r "wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/#{ver}/victoria-metrics-linux-amd64-#{ver}.tar.gz -O victoria-metrics.tar.gz"
|
|
r "tar xvf victoria-metrics.tar.gz -C /usr/local/bin/"
|
|
|
|
r "wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/#{ver}/vmutils-linux-amd64-#{ver}.tar.gz -O vmutils.tar.gz"
|
|
r "tar xvf vmutils.tar.gz -C /usr/local/bin/"
|