stressseed

package
v1.5.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stressseed fills a store with a deterministic, large resource graph for UI and stress measurement. Dev tooling only: never imported by the control plane.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Apps          int
	Databases     int
	Nodes         int
	Deploys       int
	EnvsPerApp    int
	DomainsPerApp int
	Seed          uint64
	// Anchor is the "now" that every timestamp is computed from; zero means the current time.
	Anchor time.Time
	// NodeIDs places apps round-robin on these existing nodes; empty leaves them on the local node.
	NodeIDs []string
}

Config sizes the graph. The same Seed and Anchor always produce the same rows.

type Manifest

type Manifest struct {
	Apps      []string
	Databases []string
	Nodes     []string
	Deploys   int
	Digest    string
}

Manifest names what a seed produced. Digest is a hash of every inserted row.

func Seed

func Seed(ctx context.Context, db *store.DB, cfg Config) (Manifest, error)

Seed inserts the graph in one transaction. It refuses a store that already holds the seeded app names.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL