1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
| ./vmstorage-prod
# 处理大型合并时所用的最大cpu核数 -bigMergeConcurrency int The maximum number of CPU cores to use for big merges. Default value is used if set to 0
# 如果时序数据之间的时间差比该配置小,则剔除。当多个Prometheus同时写入一个VictoriaMetric时,这对减少开销很有帮助。当设置为0时,不生效。 -dedup.minScrapeInterval duration Remove superflouos samples from time series if they are located closer to each other than this duration. This may be useful for reducing overhead when multiple identically configured Prometheus instances write data to the same VictoriaMetrics. Deduplication is disabled if the -dedup.minScrapeInterval is 0
# 是否拒绝已配置的-retentionPeriod(数据保留时长)之外的查询。 设置后,/api/v1/query_range对于-retentionPeriod以外的'from'值的查询,将返回'503 Service Unavailable'错误。 当多个具有不同数据保留时长的数据源隐藏在query-tee后面时,该项可能很有用 -denyQueriesOutsideRetention Whether to deny queries outside of the configured -retentionPeriod. When set, then /api/v1/query_range would return '503 Service Unavailable' error for queries with 'from' value outside -retentionPeriod. This may be useful when multiple data sources with distinct retentions are hidden behind query-tee
# 是否监听和使用ipv6,默认只使用ipv4 -enableTCP6 Whether to enable IPv6 for listening and dialing. By default only IPv4 TCP is used
# 是否读取命令行以外的环境变量的参数,命令行参数的等级高于环境变量参数。若未设置时,只读取命令行参数。 -envflag.enable Whether to enable reading flags from environment variables additionally to command line. Command line flag values have priority over values from environment vars. Flags are read only from command line if this flag isn't set
# 环境变量的前缀,如果设置了-envflag.enable -envflag.prefix string Prefix for environment variables if -envflag.enable is set
# 没有新数据插入之后,在完成每月分区的最终合并之前的延迟。完成最终合并后,通常会降低查询速度和磁盘空间使用率。最终合并的延迟过短可能会导致磁盘IO使用率和CPU使用率增加(默认为30秒) -finalMergeDelay duration The delay before starting final merge for per-month partition after no new data is ingested into it. Query speed and disk space usage is usually reduced after the final merge is complete. Too low delay for final merge may result in increased disk IO usage and CPU usage (default 30s)
# 授权字符串,必须以查询字符串的形式传递给/internal/force_flush 接口 -forceFlushAuthKey string authKey, which must be passed in query string to /internal/force_flush pages
# 授权字符串,必须以查询字符串的形式传递给/internal/force_merge 接口 -forceMergeAuthKey string authKey, which must be passed in query string to /internal/force_merge pages
# 是否使用pread()代替mmap()读取数据文件。默认情况下,mmap()用于64位架构,而pread()用于32位架构,因为它们无法读取内存中大于2^32字节的数据文件。mmap()通常比pread()更快地读取小数据块。 -fs.disableMmap Whether to use pread() instead of mmap() for reading data files. By default mmap() is used for 64-bit arches and pread() is used for 32-bit arches, since they cannot read data files bigger than 2^32 bytes in memory. mmap() is usually faster for reading small data chunks than pread()
# 外部http请求在超过该值后,将被关闭。这可能有助于在负载均衡器后面的服务集群之间分配传入负载。请注意,实际超时可能会增加多达10%,以防止出现惊群效应(默认为2m0s) -http.connTimeout duration Incoming http connections are closed after the configured timeout. This may help spreading incoming load among a cluster of services behind load balancer. Note that the real timeout may be bigger by up to 10% as a protection from Thundering herd problem (default 2m0s)
#禁用HTTP响应压缩以节省CPU资源。默认情况下启用压缩以节省网络带宽 -http.disableResponseCompression Disable compression of HTTP responses for saving CPU resources. By default compression is enabled to save network bandwidth
# 空闲http请求超时时间 -http.idleConnTimeout duration Timeout for incoming idle http connections (default 1m0s)
# HTTP server正常关闭的最大持续时间。高负载服务器可能需要增加值才能正常关闭(默认为7秒) -http.maxGracefulShutdownDuration duration The maximum duration for graceful shutdown of HTTP server. Highly loaded server may require increased value for graceful shutdown (default 7s)
# http url代理前缀。此项在nginx等代理时有用 -http.pathPrefix string An optional prefix to add to all the paths handled by http server. For example, if '-http.pathPrefix=/foo/bar' is set, then all the http requests will be handled on '/foo/bar
|