当前位置:网站首页>Incluxdb series (III) detailed explanation of incluxdb configuration file
Incluxdb series (III) detailed explanation of incluxdb configuration file
2022-07-27 19:36:00 【Lin Musen^~^】
Global configuration
reporting-disabled = false # This option is used to report influxdb The use of information to InfluxData company , The default value is false
bind-address = ":8088" # Use... For backup and recovery , The default value is 8088
1、meta Related configuration
[meta]
dir = "/var/lib/influxdb/meta" # meta Data storage directory
retention-autocreate = true # Used to control the default storage policy , Database creation , It will generate automatically autogen Storage strategy , The default value is :true
logging-enabled = true # Open or not meta journal , The default value is :true
2、data Related configuration
[data]
# The directory where the TSM storage engine stores TSM files.
dir = "/var/lib/influxdb/data"
# The directory where the TSM storage engine stores WAL files.
wal-dir = "/var/lib/influxdb/wal"
# The amount of time that a write will wait before fsyncing. A duration
# greater than 0 can be used to batch up multiple fsync calls. This is useful for slower
# disks or when WAL write contention is seen. A value of 0s fsyncs every write to the WAL.
# Values in the range of 0-100ms are recommended for non-SSD disks.
# wal-fsync-delay = "0s"
# The type of shard index to use for new shards. The default is an in-memory index that is
# recreated at startup. A value of "tsi1" will use a disk based index that supports higher
# cardinality datasets.
# index-version = "inmem"
# Trace logging provides more verbose output around the tsm engine. Turning
# this on can provide more useful output for debugging tsm engine issues.
# trace-logging-enabled = false
# Whether queries should be logged before execution. Very useful for troubleshooting, but will
# log any sensitive data contained within a query.
# query-log-enabled = true
# Validates incoming writes to ensure keys only have valid unicode characters.
# This setting will incur a small overhead because every key must be checked.
# validate-keys = false
# Settings for the TSM engine
# CacheMaxMemorySize is the maximum size a shard's cache can
# reach before it starts rejecting writes.
# Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
# Values without a size suffix are in bytes.
# cache-max-memory-size = "1g"
# CacheSnapshotMemorySize is the size at which the engine will
# snapshot the cache and write it to a TSM file, freeing up memory
# Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
# Values without a size suffix are in bytes.
# cache-snapshot-memory-size = "25m"
# CacheSnapshotWriteColdDuration is the length of time at
# which the engine will snapshot the cache and write it to
# a new TSM file if the shard hasn't received writes or deletes
# cache-snapshot-write-cold-duration = "10m"
# CompactFullWriteColdDuration is the duration at which the engine
# will compact all TSM files in a shard if it hasn't received a
# write or delete
# compact-full-write-cold-duration = "4h"
# The maximum number of concurrent full and level compactions that can run at one time. A
# value of 0 results in 50% of runtime.GOMAXPROCS(0) used at runtime. Any number greater
# than 0 limits compactions to that value. This setting does not apply
# to cache snapshotting.
# max-concurrent-compactions = 0
# CompactThroughput is the rate limit in bytes per second that we
# will allow TSM compactions to write to disk. Note that short bursts are allowed
# to happen at a possibly larger value, set by CompactThroughputBurst
# compact-throughput = "48m"
# CompactThroughputBurst is the rate limit in bytes per second that we
# will allow TSM compactions to write to disk.
# compact-throughput-burst = "48m"
# If true, then the mmap advise value MADV_WILLNEED will be provided to the kernel with respect to
# TSM files. This setting has been found to be problematic on some kernels, and defaults to off.
# It might help users who have slow disks in some cases.
# tsm-use-madv-willneed = false
# Settings for the inmem index
# The maximum series allowed per database before writes are dropped. This limit can prevent
# high cardinality issues at the database level. This limit can be disabled by setting it to
# 0.
# max-series-per-database = 1000000
# The maximum number of tag values per tag that are allowed before writes are dropped. This limit
# can prevent high cardinality tag values from being written to a measurement. This limit can be
# disabled by setting it to 0.
# max-values-per-tag = 100000
# Settings for the tsi1 index
# The threshold, in bytes, when an index write-ahead log file will compact
# into an index file. Lower sizes will cause log files to be compacted more
# quickly and result in lower heap usage at the expense of write throughput.
# Higher sizes will be compacted less frequently, store more series in-memory,
# and provide higher write throughput.
# Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k).
# Values without a size suffix are in bytes.
# max-index-log-file-size = "1m"
# The size of the internal cache used in the TSI index to store previously
# calculated series results. Cached results will be returned quickly from the cache rather
# than needing to be recalculated when a subsequent query with a matching tag key/value
# predicate is executed. Setting this value to 0 will disable the cache, which may
# lead to query performance issues.
# This value should only be increased if it is known that the set of regularly used
# tag key/value predicates across all measurements for a database is larger than 100. An
# increase in cache size may lead to an increase in heap usage.
series-id-set-cache-size = 100
3、coordinator Query management configuration options
[coordinator]
write-timeout = "10s" # Write timeout , The default value is : 10s
max-concurrent-queries = 0 # Maximum number of concurrent queries ,0 unlimited , The default value is : 0
query-timeout = "0s # Query operation timeout ,0 unlimited , The default value is :0s
log-queries-after = "0s" # Slow query timeout ,0 unlimited , The default value is :0s
max-select-point = 0 # SELECT The maximum number of points that a statement can handle (points),0 unlimited , The default value is :0
max-select-series = 0 # SELECT The maximum number of stages that a statement can handle (series),0 unlimited , The default value is :0
max-select-buckets = 0 # SELECT The maximum that the statement can handle "GROUP BY time()" Time period of ,0 unlimited , The default value is :0
4、retention Retention policy for old data
[retention]
enabled = true # Whether to enable the module , The default value is : true
check-interval = "30m" # Check interval , The default value is :"30m"
5、shard-precreation Partition pre creation
[shard-precreation]
enabled = true # Whether to enable the module , The default value is : true
check-interval = "10m" # Check interval , The default value is :"10m"
advance-period = "30m" # Maximum lead time for pre creation of partitions , The default value is :"30m"
6、monitor control InfluxDB Own monitoring system . By default ,InfluxDB Write these data into _internal database , If this library does not exist, it will be created automatically . _internal Library default retention Strategy is 7 God , If you want to use your own retention Strategy , To create yourself needs .
[monitor]
store-enabled = true # Whether to enable the module , The default value is :true
store-database = "_internal" # Default database :"_internal"
store-interval = "10s # Statistical interval , The default value is :"10s"
7、admin web Manage Pages
[admin]
enabled = true # Whether to enable the module , The default value is : false
bind-address = ":8083" # Binding address , The default value is :":8083"
https-enabled = false # Open or not https , The default value is :false
https-certificate = "/etc/ssl/influxdb.pem" # https The certificate path , The default value is :"/etc/ssl/influxdb.pem"
8、http API
[http]
enabled = true # Whether to enable the module , The default value is :true
bind-address = ":8086" # Binding address , The default value is :":8086"
auth-enabled = false # Whether to turn on authentication , The default value is :false
realm = "InfluxDB" # To configure JWT realm, The default value is : "InfluxDB"
log-enabled = true # Whether to open the log , The default value is :true
write-tracing = false # Whether to enable write operation log , If set to true, Every write operation will be logged , The default value is :false
pprof-enabled = true # Open or not pprof, The default value is :true
https-enabled = false # Open or not https, The default value is :false
https-certificate = "/etc/ssl/influxdb.pem" # Set up https The certificate path , The default value is :"/etc/ssl/influxdb.pem"
https-private-key = "" # Set up https Private key , No default
shared-secret = "" # be used for JWT Signed shared key , No default
max-row-limit = 0 # The maximum number of rows returned by the configuration query ,0 unlimited , The default value is :0
max-connection-limit = 0 # Configure maximum connections ,0 unlimited , The default value is :0
unix-socket-enabled = false # Whether to use unix-socket, The default value is :false
bind-socket = "/var/run/influxdb.sock" # unix-socket route , The default value is :"/var/run/influxdb.sock"
9、subscriber control Kapacitor Accept data configuration
[subscriber]
enabled = true # Whether to enable the module , The default value is :true
http-timeout = "30s" # http Timeout time , The default value is :"30s"
insecure-skip-verify = false # Whether to allow unsafe certificates
ca-certs = "" # Set up CA certificate
write-concurrency = 40 # Set the number of concurrent , The default value is :40
write-buffer-size = 1000 # Set up buffer size , The default value is :1000
10、graphite Related configuration
[[graphite]]
enabled = false # Whether to enable the module , The default value is :false
database = "graphite" # Database name , The default value is :"graphite"
retention-policy = "" # Storage strategy , No default
bind-address = ":2003" # Binding address , The default value is :":2003"
protocol = "tcp" # agreement , The default value is :"tcp"
consistency-level = "one" # Consistency level , The default value is :"one
batch-size = 5000 # Batch size, The default value is :5000
batch-pending = 10 # Configure waiting in memory batch Count , The default value is :10
batch-timeout = "1s" # Timeout time , The default value is :"1s"
udp-read-buffer = 0 # udp Read buffer Size ,0 Indicates that the value provided by the operating system is used , If you exceed the default configuration of the operating system, an error occurs . The default value for this configuration is :0
separator = "." # Multiple measurement Connector between , The default value is : "."
11、collectd
[[collectd]]
enabled = false # Whether to enable the module , The default value is :false
bind-address = ":25826" # Binding address , The default value is : ":25826"
database = "collectd" # Database name , The default value is :"collectd"
retention-policy = "" # Storage strategy , No default
typesdb = "/usr/local/share/collectd" # route , The default value is :"/usr/share/collectd/types.db"
auth-file = "/etc/collectd/auth_file"
batch-size = 5000
batch-pending = 10
batch-timeout = "10s"
read-buffer = 0 # udp Read buffer Size ,0 Indicates that the value provided by the operating system is used , If you exceed the default configuration of the operating system, an error occurs . The default value is :0
12、opentsdb
[[opentsdb]]
enabled = false # Whether to enable the module , The default value is :false
bind-address = ":4242" # Binding address , The default value is :":4242"
database = "opentsdb" # Default database :"opentsdb"
retention-policy = "" # Storage strategy , No default
consistency-level = "one" # Consistency level , The default value is :"one"
tls-enabled = false # Open or not tls, The default value is :false
certificate= "/etc/ssl/influxdb.pem" # The certificate path , The default value is :"/etc/ssl/influxdb.pem"
log-point-errors = true # Whether to log when an error occurs , The default value is :true
batch-size = 1000
batch-pending = 5
batch-timeout = "1s"
13、udp
[[udp]]
enabled = false # Whether to enable the module , The default value is :false
bind-address = ":8089" # Binding address , The default value is :":8089"
database = "udp" # Database name , The default value is :"udp"
retention-policy = "" # Storage strategy , No default
batch-size = 5000
batch-pending = 10
batch-timeout = "1s"
read-buffer = 0 # udp Read buffer Size ,0 Indicates that the value provided by the operating system is used , If you exceed the default configuration of the operating system, an error occurs . The default value for this configuration is :0
14、continuous_queries
[continuous_queries]
enabled = true # enabled Open or not CQs, The default value is :true
log-enabled = true # Whether to open the log , The default value is :true
run-interval = "1s" # The time interval , The default value is :"1s"
边栏推荐
猜你喜欢

Basic network faults and troubleshooting

c语言:15、结构体

C语言案例:密码设置及登录> 明解getchar与scanf

Low code implementation exploration (45) business parameters

Programming jump

一种比读写锁更快的锁,还不赶紧认识一下

电商商城小程序项目完整源码(微信小程序)

c语言:7、c语言多源码文件使用方法

新系统安装MySQL+SQLyog

Complete source code of E-commerce mall applet project (wechat applet)
随机推荐
Kettle references external scripts to complete phone number cleaning, de duplication and indentation
C language: 6. Simple use and precautions of pointer
Kettle consolidated record data reduction
SQL field type conversion
C language: 15. Structure
Big guys, Oracle CDC, local operation, always encounter this an exception occurred in
我想咨询下,我们的maxcompute spark程序需要访问redis,开发环境和生产环境redi
Subscription and use of Alibaba cloud video on demand service
成本高、落地难、见效慢,开源安全怎么办?
嵌入式C语言结构体
redis底层数据结构详解
Golang sets the domestic image, vscode configures the golang development environment, and vscode debugs the golang code
Tab control of MFC advanced control (CTabCtrl)
每日一题(02):倒置字符串
c语言:10、输入流,输出流,错误流
Kettle8.2 installation and common problems
c语言:7、c语言多源码文件使用方法
Cumulative output data of kettle Excel
[Luogu p3175] bitwise OR (min max inclusive) (high-dimensional prefix and / FWT)
Under the heat wave of Web3.0, the ecological shock of Mensa struck