No description
Find a file
Will Jordan 209a5024ce
lib/tenantmetrics: improves CounterMap performance with large numbers of tenants
Previously, map for storing tenant metrics was re-created to each newly ingested tenant. It has significant performance impact for systems with large number of tenants. 

 This commit addresses this issue by changing algorithm of creating tenant metric records at map. Instead of map re-creation, it uses `sync.Map` primitive. 


Benchmark results:

```
goos: linux
goarch: amd64
pkg: github.com/VictoriaMetrics/VictoriaMetrics/lib/tenantmetrics
cpu: AMD Ryzen 9 5900X 12-Core Processor            
                                            │ lib/tenantmetrics/orig.bench │     lib/tenantmetrics/new.bench     │
                                            │            sec/op            │    sec/op     vs base               │
CounterMapGrowth/n=100,nProcs=GOMAXPROCS-24                  1943.2µ ±  5%   248.0µ ± 11%  -87.24% (p=0.001 n=7)
CounterMapGrowth/n=100-24                                    434.63µ ±  5%   98.82µ ± 16%  -77.26% (p=0.001 n=7)
CounterMapGrowth/n=1000-24                                   32.719m ± 20%   1.425m ±  5%  -95.65% (p=0.001 n=7)
CounterMapGrowth/n=10000-24                                 3653.60m ±  5%   18.00m ±  2%  -99.51% (p=0.001 n=7)
geomean                                                       17.83m         890.4µ        -95.00%
```

Related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7482

---
Co-authored-by: Artem Fetishev <rtm@victoriametrics.com>
2024-11-20 18:36:06 +01:00
.github apptest: typical cluster configuration for business logic tests 2024-11-20 16:33:19 +01:00
app vmalert: revert the default value of -remoteWrite.maxQueueSize from… (#7570) 2024-11-20 16:32:46 +01:00
apptest apptest: typical cluster configuration for business logic tests 2024-11-20 16:33:19 +01:00
cspell docs: fixes misspelled typos 2024-09-13 13:19:03 +02:00
dashboards dashboards: rename datapoints to logs for vlogs dashboard 2024-11-14 18:21:20 +01:00
deployment docs/vmanomaly: add self-monitoring section (#7558) 2024-11-20 16:32:45 +01:00
docs lib/tenantmetrics: improves CounterMap performance with large numbers of tenants 2024-11-20 18:36:06 +01:00
lib lib/tenantmetrics: improves CounterMap performance with large numbers of tenants 2024-11-20 18:36:06 +01:00
package/release simplify release process (#3012) 2022-08-31 02:28:45 +03:00
vendor tests: integration tests for vmsingle (#7434) 2024-11-07 13:25:01 +01:00
.dockerignore added packer build for DigitalOcean Droplets (#1917) 2021-12-21 12:10:08 +02:00
.gitignore testing: allow disabling fsync to make tests run faster (#6871) 2024-08-30 11:18:21 +02:00
.golangci.yml .golangci.yml: properly specify functions to exclude for return values check after the upgrade to v1.59.1 at 239a7b6e6f 2024-06-11 17:05:17 +02:00
.wwhrd.yml add MPL-2.0 to approved licenses 2024-08-29 10:37:02 +02:00
CODE_OF_CONDUCT.md A good change for MD files (#2353) 2022-03-22 14:01:04 +02:00
CONTRIBUTING.md Move CONTRIBUTING.md to docs/ 2024-04-20 23:12:53 +02:00
go.mod tests: integration tests for vmsingle (#7434) 2024-11-07 13:25:01 +01:00
go.sum tests: integration tests for vmsingle (#7434) 2024-11-07 13:25:01 +01:00
LICENSE LICENSE: update the current year from 2023 to 2024 2024-01-17 01:48:12 +02:00
Makefile apptest: typical cluster configuration for business logic tests 2024-11-20 16:33:19 +01:00
README.md docs: consistently update twitter.com to x.com 2024-10-30 13:13:05 +01:00
SECURITY.md add new LTS release v1.102.x 2024-08-02 11:15:25 +02:00
VM_logo.zip docs: update logos files and usage rules (#6980) 2024-09-24 16:58:16 +02:00

VictoriaMetrics

Latest Release Docker Pulls Slack GitHub license Go Report Build Status codecov

VictoriaMetrics logo

VictoriaMetrics is a fast, cost-saving, and scalable solution for monitoring and managing time series data. It delivers high performance and reliability, making it an ideal choice for businesses of all sizes.

Here are some resources and information about VictoriaMetrics:

Yes, we open-source both the single-node VictoriaMetrics and the cluster version.

Prominent features

VictoriaMetrics is optimized for timeseries data, even when old time series are constantly replaced by new ones at a high rate, it offers a lot of features:

Enterprise version

In addition, the Enterprise version includes extra features:

  • Anomaly detection: Automation and simplification of your alerting rules, covering complex anomalies found in metrics data.
  • Backup automation: Automates regular backup procedures.
  • Multiple retentions: Reducing storage costs by specifying different retentions for different datasets.
  • Downsampling: Reducing storage costs and increasing performance for queries over historical data.
  • Stable releases with long-term support lines (LTS).
  • Comprehensive support: First-class consulting, feature requests and technical support provided by the core VictoriaMetrics dev team.
  • Many other features, which you can read about on the Enterprise page.

Contact us if you need enterprise support for VictoriaMetrics. Or you can request a free trial license here, downloaded Enterprise binaries are available at Github Releases.

We strictly apply security measures in everything we do. VictoriaMetrics has achieved security certifications for Database Software Development and Software-Based Monitoring Services. See Security page for more details.

Benchmarks

Some good benchmarks VictoriaMetrics achieved:

Community and contributions

Feel free asking any questions regarding VictoriaMetrics:

If you like VictoriaMetrics and want to contribute, then please read these docs.

The provided ZIP file contains three folders with different logo orientations. Each folder includes the following file types:

  • JPEG: Preview files
  • PNG: Preview files with transparent background
  • AI: Adobe Illustrator files

VictoriaMetrics Logo Usage Guidelines

Font

  • Font Used: Lato Black
  • Download here: Lato Font

Color Palette

Logo Usage Rules

  • Only use the Lato Black font as specified.
  • Maintain sufficient clear space around the logo for visibility.
  • Do not modify the spacing, alignment, or positioning of design elements.
  • You may resize the logo as needed, but ensure all proportions remain intact.

Thank you for your cooperation!