INFLUXDB Installation and Configuration

Source: Internet
Author: User
Tags influxdb opentsdb

This is my previous INFLUXDB installation and configuration notes, recorded here, it is also convenient for me to check later.

Environment: centos6.5_x64

Influxdb version: 1.1.0

First, install 1, binary installation

Here is an example of centos6.5 installation:

wget  Https://dl.influxdata.com/influxdb/releases/influxdb-1.1.0.x86_64.rpmyum Localinstall influxdb-1.1.0.x86_64.rpm

Other environments can refer to INFLUXDB official documentation:

https://www.influxdata.com/downloads/#influxdb

After installation, the following files are available under/usr/bin:

Influxd          influxdb Server influx           influxdb command line client influx_inspect   View tool influx_stress    Stress test Tool INFLUX_TSM       Database conversion tool (convert database from B1 or BZ1 format to TSM1 format)

Below/var/lib/influxdb/will have the following folder:

            data stores the final storage, files with. TSM End Meta            store database metadata Wal             stores pre-written log files
2. Source code compilation and installation
Go get github.com/influxdata/influxdbcd $GOPATH/src/github.com/influxdata/go get./...go install./...

For details, refer to here: https://anomaly.io/compile-influxdb/

Second, start 1, start by service mode
Service Influxdb Start
2. Start by non-service mode
Influxd

If you need to specify a configuration file, you can use the--config option to help you see it.

Third, the configuration

Configuration file path:/etc/influxdb/influxdb.conf

You can generate a default profile from the following command:

Influxd Config > default.conf
Reporting-disabled

This option is used to escalate the usage information of Influxdb to Influxdata company, the default value is False

corresponding source files:

Influxdb-1.1.0/cmd/influxd/run/config.go

reportingdisabled configuration items in config

Bind-address

Backup recovery is used with a default value of 8088

corresponding source files:

Influxdb-1.1.0/cmd/influxd/run/config.go

Bindaddress configuration items in config

[Meta]

Meta-related configurations

corresponding source files:

Influxdb-1.1.0/services/meta/config.go
Dir

Meta data storage directory, default value:/var/lib/influxdb/meta

Retention-autocreate

Used to control the default storage policy, the Autogen storage policy is automatically generated when the database is created, and the default value: True

Logging-enabled

Whether to turn on meta log, default value: True

[Data]

TSM1 engine Configuration

corresponding source files:

Influxdb-1.1.0/tsdb/config.go
Dir

Final data (TSM file) storage directory, default value:/var/lib/influxdb/data

Wal-dir

Pre-write log storage directory, default value:/var/lib/influxdb/wal

Query-log-enabled

Whether to turn on the TSM engine query log, default value: True

Cache-max-memory-size

Used to limit the maximum value of Shard, which is greater than the value when writing is rejected, the default value:

Defaultcachemaxmemorysize = 1024x768 * 1024x768 * 1024x768//1GB
Cache-snapshot-memory-size

Used to set the snapshot size, which is greater than the value when data is flushed to the TSM file, the default value:

defaultcachesnapshotmemorysize = * 1024x768 * 1024x768//25MB
Cache-snapshot-write-cold-duration

TSM1 engine Snapshot Write disk delay, default value:

Defaultcachesnapshotwritecoldduration = time. Duration (Ten * time. Minute)
Compact-full-write-cold-duration

The maximum time that a TSM file can be stored before it is compressed, the default value:

Defaultcompactfullwritecoldduration = time. Duration (4 * time. Hour)
Max-series-per-database

Limit the number of levels for the database, which is 0 when the throttle is canceled, the default value:

Defaultmaxseriesperdatabase = 1000000

Measurement, tag set, retention policy the same data set is calculated as a serie, the series algorithm example is as follows:

Suppose Monitor1 This measurement has two tags:id and the number of name IDs for 10,name is 100, then the series cardinality is 10 * 100 = 1000

Max-values-per-tag

One tag maximum value, 0 cancellation limit, default value:

Defaultmaxvaluespertag = 100000
Trace-logging-enabled

Whether to turn on trace logging, default value: False

[Coordinator]

Configuration options for query management

corresponding source files:

Influxdb-1.1.0/coordinator/config.go
Write-timeout

Write operation time-out, default value: 10s

Max-concurrent-queries

Maximum number of concurrent queries, 0 unrestricted, default value: 0

Query-timeout

Query operation time-out, 0 unrestricted, default value: 0s

Log-queries-after

Slow query time-out, 0 unrestricted, default value: 0s

Max-select-point = 0

Maximum number of points (points) that can be processed by the SELECT statement, 0 unrestricted, default: 0

max-select-series = 0

Maximum number of series (series) that can be handled by the SELECT statement, 0 unrestricted, default: 0

Max-select-buckets = 0

The maximum "GROUP by Time ()" period that can be handled by the SELECT statement, 0 unrestricted, default value: 0

[Retention]

Retention policies for old data

corresponding source files:

Influxdb-1.1.0/services/retention/config.go
Enabled

Whether the module is enabled, the default value: True

Check-interval

Check time interval, default value: "30m0s"

[Shard-precreation]

Partition Pre-creation

corresponding source files:

Influxdb-1.1.0/services/precreator/config.go
Enabled

Whether the module is enabled, the default value: True

Check-interval

Check time interval, default value: "10m0s"

Advance-period

Maximum advance time for pre-created partitions, default value: "30m0s"

[Admin]

Simple Web Management page provided by INFLUXDB

corresponding source files:

Influxdb-1.1.0/services/admin/config.go
Enabled

If the module is enabled, the default value: False

Bind-address

Binding address, Default value: ": 8083"

Https-enabled

Whether to turn on HTTPS, default value: False

Https-certificate

HTTPS certificate path, default value: "/etc/ssl/influxdb.pem"

[Monitor]

This section controls Influxdb's own monitoring system. By default, Influxdb writes this data to the _internal database and is created automatically if the library does not exist. _internal Library The default retention policy is 7 days, if you want to use one of your own retention policies, you need to create them yourself.

corresponding source files:

Influxdb-1.1.0/monitor/config.go
Store-enabled

Whether the module is enabled, the default value: True

Store-database

Default database: "_internal"

Store-interval

Statistic interval, default value: "10s"

[Subscriber]

Control the configuration of Kapacitor acceptance data

corresponding source files:

Influxdb-1.1.0/services/subscriber/config.go
Enabled

Whether the module is enabled, the default value: True

Http-timeout

HTTP timeout, default value: "30s"

Insecure-skip-verify

Whether to allow unsafe certificates is useful when testing a certificate that you have issued. Default value: False

Ca-certs

Set CA certificate, no default value

Write-concurrency

Set the number of concurrent, default value: 40

Write-buffer-size

Set buffer size, default value: 1000

[HTTP]

HTTP interface configuration for INFLUXDB

corresponding source files:

Influxdb-1.1.0/services/httpd/config.go
Enabled

Whether the module is enabled, the default value: True

Bind-address

Binding address, Default value: ": 8086"

Auth-enabled

Whether to turn on authentication, default value: False

Log-enabled

Whether log is turned on, default value: True

Write-tracing

Whether to turn on write log, if set to true, each write operation will log, default value: False

Pprof-enabled

Whether to turn on Pprof, default value: True

Https-enabled

Whether to turn on HTTPS, default value: False

Https-certificate

Set the HTTPS certificate path, default: "/etc/ssl/influxdb.pem"

Https-private-key

Set HTTPS private key, no default value

Max-row-limit

The configuration query returns the maximum number of rows, the default value: 10000

Max-connection-limit

Configure the maximum number of connections, 0 unrestricted, default value: 0

Shared-secret

Shared key for JWT signing, no default value

Realm

Configure JWT Realm, default: "InfluxDB"

Unix-socket-enabled

Whether to use Unix-socket, default value: False

Bind-socket

Unix-socket path, default value: "/var/run/influxdb.sock"

[[Graphite]]

Graphite related configurations

Specific reference: HTTPS://GITHUB.COM/INFLUXDATA/INFLUXDB/BLOB/MASTER/SERVICES/GRAPHITE/README.MD

corresponding source files:

Influxdb-1.1.0/services/graphite/config.go
Enabled

If the module is enabled, the default value: False

Bind-address

Binding address, Default value: ": 2003"

Database

Database name, default value: "Graphite"

Retention-policy

Storage Policy, no default value

Protocol

Protocol, default value: "TCP"

Batch-size

Batch size, default value: 5000

Batch-pending

Configure the number of batch waits in memory, default value: 10

Batch-timeout

Timeout, default value: "1s"

Consistency-level

Consistency level, default value: "One"

Separator

Connector between multiple measurement, default value: "."

Udp-read-buffer = 0

UDP reads the size of buffer, 0 indicates the value provided by the operating system, and an error occurs if the operating system's default configuration is exceeded. Default value for this configuration: 0

[[COLLECTD]]

Specific reference: HTTPS://GITHUB.COM/INFLUXDATA/INFLUXDB/TREE/MASTER/SERVICES/COLLECTD

corresponding source files:

Influxdb-1.1.0/services/collectd/config.go
Enabled

If the module is enabled, the default value: False

Bind-address

Binding address, Default value: ": 25826"

Database

Database name, default value: "COLLECTD"

Retention-policy = ""

Storage Policy, no default value

Batch-size

Default value: 5000

Batch-pending

Default value: 10

Batch-timeout

Default value: "10s"

Read-buffer

UDP reads the size of buffer, 0 indicates the value provided by the operating system, and an error occurs if the operating system's default configuration is exceeded. Default value: 0

Typesdb

Path, default value: "/usr/share/collectd/types.db"

[[Opentsdb]]

OPENTSDB Configuration

corresponding source files:

Influxdb-1.1.0/services/opentsdb/config.go
Enabled

If the module is enabled, the default value: False

Bind-address

Binding address, Default value: ": 4242"

Database

Default database: "Opentsdb"

Retention-policy

Storage Policy, no default value

Consistency-level

Consistency level, default value: "One"

Tls-enabled = False

Whether TLS is turned on, default value: False

Certificate

Certificate path, Default value: "/etc/ssl/influxdb.pem"

Batch-size

Default value: 1000

Batch-pending

Default value: 5

Batch-timeout

Timeout, default value: "1s"

Log-point-errors

Whether logs are logged when an error occurs, the default value: True

[[UDP]]

UDP configuration, specific reference:

Https://github.com/influxdata/influxdb/blob/master/services/udp/README.md

corresponding source files:

Influxdb-1.1.0/services/udp/config.go
Enabled

If the module is enabled, the default value: False

Bind-address

Binding address, Default value: ": 8089"

Database

Database name, default value: "UDP"

Retention-policy

Storage Policy, no default value

Batch-size

Default value: 5000

Batch-pending

Default value: 10

Read-buffer

UDP reads the size of buffer, 0 indicates the value provided by the operating system, and an error occurs if the operating system's default configuration is exceeded. Default value for this configuration: 0

Batch-timeout

Timeout, default value: "1s"

Precision

Time precision, no default value

[Continuous_queries]

CQS configuration

corresponding source files:

Influxdb-1.1.0/services/continuous_querier/config.go
Log-enabled

Whether log is turned on, default value: True

Enabled whether the CQS is turned on, default value: True

Run-interval

Time interval, default value: "1s"

This article GitHub address:

https://github.com/mike-zhang/mikeBlogEssays/blob/master/2017/20170206_influxdb installation and configuration. MD

Welcome to Supplement

INFLUXDB Installation and Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.