Discover Packages
github.com/rudderlabs/rudder-server
router
internal
partition
package
Version:
v1.11.2
Opens a new window with list of versions in this module.
Published: Jul 19, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type PartitionStats type Stats NewStats() (s) All() (s) Score(partition) (s) Update(partition, duration, total, errors)
Documentation
¶
Stats keeps track of throughput and error rates for each partition
NewStats returns a new, initialised partition stats
All returns a map containing stats for all available partitions
Score returns a score for the given partition. The score is a number between 0 and 100. Scores are calculated
comparatively to other partitions, so that the partition with the highest throughput and the lowest error ratio
will receive the highest score.
Update updates the stats for the given partition in terms of throughput, total requests and errors
Source Files
¶
Click to show internal directories.
Click to hide internal directories.