Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregatedSample ¶
type AggregatedSample struct {
Timestamp time.Time
CPUSeconds float64
RSSBytes float64
CPUNum float64
TotalMemory float64
}
AggregatedSample represents one aggregated metrics scrape point.
type AggregatedSeries ¶
type AggregatedSeries struct {
Samples []AggregatedSample
}
AggregatedSeries stores samples collected over a benchmark phase.
type BenchReport ¶
type BenchReport struct {
GeneratedAt time.Time `json:"generated_at"`
Results []RFResult `json:"results"`
Config Config `json:"config"`
}
BenchReport is the top-level JSON report artifact for a benchmark run.
type Config ¶
type Config struct {
ChartRef string
ChartVersion string
ReportDir string
Writers int
Entities int
PointsPerEntity int
QueryWorkers int
QueryIterations int
MetricsPollInterval time.Duration
}
Config captures benchmark configuration from env vars.
func LoadConfig ¶
func LoadConfig() Config
LoadConfig reads benchmark settings from environment variables.
type PromMetrics ¶
type PromMetrics struct {
CPUTotalSeconds float64
RSSBytes float64
CPUNum float64
TotalMemBytes float64
}
PromMetrics contains raw counters and gauges scraped from /metrics endpoints.
type RFResult ¶
type RFResult struct {
ReplicationFactor int `json:"replication_factor"`
Write WriteResult `json:"write"`
Read ReadResult `json:"read"`
Resources ResourceReport `json:"resources"`
}
RFResult stores one replication-factor benchmark result.
type ReadResult ¶
type ReadResult struct {
Samples int `json:"samples"`
MinMs float64 `json:"min_ms"`
MedianMs float64 `json:"median_ms"`
P95Ms float64 `json:"p95_ms"`
P99Ms float64 `json:"p99_ms"`
MaxMs float64 `json:"max_ms"`
}
ReadResult summarizes read latency percentiles.
type ResourcePhase ¶
type ResourcePhase struct {
Liaison ResourceStats `json:"liaison"`
Data ResourceStats `json:"data"`
}
ResourcePhase stores resource summaries for liaison and data roles.
type ResourceReport ¶
type ResourceReport struct {
WritePhase ResourcePhase `json:"write_phase"`
ReadPhase ResourcePhase `json:"read_phase"`
}
ResourceReport contains write/read phase resource usage.
type ResourceStats ¶
type ResourceStats struct {
PeakRSSBytes int64 `json:"peak_rss_bytes"`
PeakRSSPercent float64 `json:"peak_rss_percent"`
MeanCPUPercent float64 `json:"mean_cpu_percent"`
PeakCPUPercent float64 `json:"peak_cpu_percent"`
}
ResourceStats contains CPU and RSS summary metrics.
type ResourceStatsSeries ¶
type ResourceStatsSeries struct {
MeanCPUPercent float64
PeakCPUPercent float64
PeakRSSBytes int64
PeakRSSPercent float64
}
ResourceStatsSeries summarizes CPU and memory usage over a phase.
type WriteResult ¶
type WriteResult struct {
TotalPoints int `json:"total_points"`
DurationSec float64 `json:"duration_sec"`
ThroughputPps float64 `json:"throughput_points_per_sec"`
}
WriteResult describes write phase throughput and duration.