Thanks you Jason. This info is really helpful, however the problem is how to find bottlenecks and tune them. As per documentation i knew there is issue with mutliple series and cardinality, but not much info is available, what tools or commands to use to find bottlenecks and fix them
The command you give me is really helpful to find the series cardinality and identify which input plug-in is causing more. since i have one week retention policy , i have multiple shards
ls -l /var/lib/influxdb/data/hosting/one_week/
total 32
drwxr-xr-x. 2 root root 4096 May 18 07:38 222
drwxr-xr-x. 2 root root 4096 May 19 04:59 230
drwxr-xr-x. 2 root root 4096 May 20 04:13 238
drwxr-xr-x. 2 root root 4096 May 21 04:13 246
drwxr-xr-x. 2 root root 4096 May 22 04:13 254
drwxr-xr-x. 2 root root 4096 May 23 05:24 262
drwxr-xr-x. 2 root root 4096 May 24 00:10 270
drwxr-xr-x. 2 root root 4096 May 24 03:12 279
I ran the commands against few shards and below is output
influx_inspect report -detailed /var/lib/influxdb/data/hosting/one_week/222/
File Series Load Time
000000772-000000004.tsm 741128 289.931213ms
000000772-000000005.tsm 182434 57.268557ms
Statistics
Series:
Total (est): 923184
Measurements (est):
cpu: 19660 (2%)
disk: 6141 (0%)
docker: 1156 (0%)
docker_container_mem: 196687 (21%)
kubernetes_node: 36 (0%)
kubernetes_pod_container: 143 (0%)
kubernetes_pod_volume: 21 (0%)
docker_container_blkio: 318879 (34%)
mem: 1050 (0%)
procstat: 19349 (2%)
swap: 630 (0%)
kubernetes_system_container: 44 (0%)
net: 27939 (3%)
processes: 944 (0%)
system: 735 (0%)
diskio: 39392 (4%)
docker_container_cpu: 291305 (31%)
docker_data: 315 (0%)
docker_metadata: 315 (0%)
kernel: 419 (0%)
kubernetes_pod_network: 48 (0%)
netstat: 1362 (0%)
Fields (est):
kubernetes_pod_volume: 3
kubernetes_system_container: 11
mem: 10
processes: 9
kubernetes_node: 18
kubernetes_pod_container: 13
docker_container_mem: 35
net: 115
procstat: 53
system: 7
cpu: 10
docker: 13
docker_container_cpu: 9
docker_metadata: 3
netstat: 13
swap: 6
diskio: 110
docker_container_blkio: 11
kernel: 4
kubernetes_pod_network: 4
disk: 7
docker_data: 3
Tags (est):
unit: 1
Vendor: 2
release: 13
version: 13
com.redhat.dev-mode.port: 1
io.kubernetes.container.name: 532
io.kubernetes.container.restartCount: 1242
com.redhat.dev-mode: 1
com.docker.compose.version: 1
process_name: 542
container_image: 375
io.kubernetes.container.terminationMessagePath: 1
volume_name: 3
io.openshift.s2i.scripts-url: 2
exe: 2
datacenter: 3
authoritative-source-url: 1
com.redhat.component: 12
container_name: 5952
distribution-scope: 1
vendor: 2
io.openshift.expose-services: 3
Name: 11
Version: 11
container_version: 539
io.kubernetes.pod.terminationGracePeriod: 4
io.kubernetes.pod.uid: 2217
cpu: 183
com.redhat.build-host: 11
io.k8s.description: 14
namespace: 5
fstype: 2
engine_host: 388
node_name: 2
interface: 1890
com.docker.compose.service: 4
name: 457
Architecture: 1
PostgresVersion: 2
license: 1
com.docker.compose.container-number: 1
hostname: 457
device: 536
architecture: 1
vcs-ref: 18
com.docker.compose.oneoff: 1
Build_Host: 2
io.kubernetes.pod.namespace: 273
com.redhat.deployments-dir: 1
io.openshift.tags: 13
build-date: 35
io.kubernetes.container.ports: 152
com.docker.compose.config-hash: 4
cluster: 3
description: 2
summary: 2
io.openshift.builder-version: 1
com.docker.compose.project: 1
pod_name: 12
path: 7
Authoritative_Registry: 1
vcs-type: 1
BZComponent: 11
Component: 1
Release: 12
io.kubernetes.container.hash: 1230
io.k8s.display-name: 15
io.kubernetes.pod.name: 2033
Completed in 20.936049294s
=================
influx_inspect report -detailed /var/lib/influxdb/data/hosting/one_week/230/
File Series Load Time
000000653-000000005.tsm 847282 345.675756ms
000000653-000000006.tsm 267516 95.470656ms
Statistics
Series:
Total (est): 1097999
Measurements (est):
kubernetes_pod_volume: 21 (0%)
netstat: 1388 (0%)
swap: 642 (0%)
disk: 7279 (0%)
docker_container_cpu: 355845 (32%)
docker_container_mem: 238933 (21%)
kernel: 427 (0%)
mem: 1070 (0%)
diskio: 41045 (3%)
kubernetes_pod_container: 143 (0%)
kubernetes_pod_network: 48 (0%)
net: 28707 (2%)
kubernetes_node: 36 (0%)
kubernetes_system_container: 44 (0%)
processes: 1035 (0%)
cpu: 21049 (1%)
docker: 1178 (0%)
docker_container_blkio: 397246 (36%)
docker_data: 321 (0%)
docker_metadata: 321 (0%)
procstat: 5284 (0%)
system: 749 (0%)
Fields (est):
docker_container_cpu: 9
docker_metadata: 3
kubernetes_pod_container: 13
kubernetes_pod_volume: 3
netstat: 13
system: 7
cpu: 10
docker: 13
diskio: 114
kubernetes_system_container: 11
kernel: 4
kubernetes_node: 18
kubernetes_pod_network: 4
mem: 10
net: 115
swap: 6
docker_container_mem: 35
docker_data: 3
processes: 10
procstat: 55
disk: 7
docker_container_blkio: 11
Tags (est):
io.kubernetes.container.hash: 1261
io.kubernetes.container.name: 550
vcs-ref: 17
io.openshift.s2i.scripts-url: 2
node_name: 2
path: 7
engine_host: 385
Authoritative_Registry: 1
pod_name: 12
volume_name: 3
io.k8s.description: 13
release: 13
description: 2
Release: 12
vcs-type: 1
io.openshift.tags: 12
com.docker.compose.oneoff: 1
hostname: 462
io.kubernetes.pod.namespace: 271
summary: 2
exe: 2
unit: 1
license: 1
interface: 1960
authoritative-source-url: 1
com.redhat.deployments-dir: 1
container_version: 599
com.docker.compose.version: 1
name: 469
architecture: 1
com.redhat.component: 11
com.redhat.build-host: 11
io.kubernetes.container.terminationMessagePath: 1
io.kubernetes.pod.uid: 2504
com.docker.compose.service: 4
device: 656
BZComponent: 10
Component: 1
PostgresVersion: 2
cluster: 3
version: 14
com.redhat.dev-mode.port: 1
io.kubernetes.pod.name: 2205
io.kubernetes.pod.terminationGracePeriod: 4
com.docker.compose.config-hash: 4
datacenter: 3
build-date: 34
com.redhat.dev-mode: 1
cpu: 185
distribution-scope: 1
com.docker.compose.container-number: 1
container_image: 389
io.kubernetes.container.restartCount: 1337
namespace: 5
io.openshift.expose-services: 3
fstype: 2
Name: 10
io.kubernetes.container.ports: 281
io.k8s.display-name: 14
vendor: 2
process_name: 9
Build_Host: 2
Vendor: 2
Version: 12
com.docker.compose.project: 1
Architecture: 1
container_name: 6200
io.openshift.builder-version: 1
Completed in 24.581871901s
=============================
influx_inspect report -detailed /var/lib/influxdb/data/hosting/one_week/238/
File Series Load Time
000000776-000000005.tsm 1095559 296.404829ms
000000776-000000006.tsm 469821 130.299482ms
Statistics
Series:
Total (est): 1561417
Measurements (est):
kubernetes_pod_container: 143 (0%)
kubernetes_pod_volume: 21 (0%)
kubernetes_system_container: 44 (0%)
net: 30566 (1%)
netstat: 1388 (0%)
processes: 1070 (0%)
docker: 1178 (0%)
docker_container_blkio: 557549 (35%)
docker_container_cpu: 537433 (34%)
kernel: 427 (0%)
procstat: 7877 (0%)
swap: 642 (0%)
disk: 7672 (0%)
docker_container_mem: 340009 (21%)
docker_metadata: 321 (0%)
kubernetes_node: 36 (0%)
kubernetes_pod_network: 48 (0%)
mem: 1070 (0%)
system: 749 (0%)
cpu: 21049 (1%)
diskio: 42384 (2%)
docker_data: 321 (0%)
Fields (est):
netstat: 13
procstat: 63
docker_container_blkio: 11
kernel: 4
kubernetes_node: 18
kubernetes_pod_container: 13
kubernetes_system_container: 11
docker: 13
docker_data: 3
kubernetes_pod_network: 4
net: 117
cpu: 10
disk: 7
docker_container_cpu: 9
docker_container_mem: 35
mem: 10
system: 7
diskio: 118
docker_metadata: 3
kubernetes_pod_volume: 3
processes: 10
swap: 6
Tags (est):
fstype: 2
path: 7
Vendor: 2
io.kubernetes.container.name: 540
hostname: 564
com.redhat.build-host: 11
com.redhat.component: 11
com.redhat.dev-mode.port: 1
io.openshift.tags: 12
BZComponent: 10
engine_host: 494
Version: 10
io.kubernetes.container.hash: 1170
io.kubernetes.pod.uid: 1967
io.openshift.expose-services: 3
cpu: 208
Component: 1
build-date: 34
distribution-scope: 1
com.redhat.dev-mode: 1
license: 1
Architecture: 1
unit: 1
Name: 10
io.k8s.display-name: 14
version: 12
com.docker.compose.oneoff: 1
com.docker.compose.project: 1
datacenter: 3
io.kubernetes.pod.terminationGracePeriod: 4
com.docker.compose.container-number: 1
com.docker.compose.version: 1
exe: 2
process_name: 12
io.kubernetes.pod.name: 1829
com.docker.compose.config-hash: 4
vcs-ref: 17
io.kubernetes.container.terminationMessagePath: 1
io.openshift.s2i.scripts-url: 2
volume_name: 3
name: 446
Release: 12
container_image: 440
io.openshift.builder-version: 1
Authoritative_Registry: 1
io.k8s.description: 13
release: 13
summary: 2
node_name: 2
namespace: 5
device: 698
container_name: 7144
container_version: 691
vendor: 2
PostgresVersion: 2
architecture: 1
vcs-type: 1
com.docker.compose.service: 4
cluster: 3
io.kubernetes.pod.namespace: 268
interface: 2196
io.kubernetes.container.ports: 166
io.kubernetes.container.restartCount: 465
com.redhat.deployments-dir: 1
description: 2
pod_name: 12
Build_Host: 2
authoritative-source-url: 1
Completed in 19.121463128s
===================
We have a very bigh Kubernets based Docker platform and each node running multiple containers. The amount of new pods creation and deletion is also very high. I think that is the reason very high cardinality from docker plugin. How to fix or reduce the cardinality form docker input plug-in ?
your help is highly appreciated to fix as am facing very uncertanity with InfluxDB and my metrics solution is frequently doing down and not reliable although i gave 30 GB memory to InfluxDB container.
my current series is
SELECT numSeries FROM “_internal”…“database” GROUP BY “database” ORDER BY desc LIMIT 1
name: database
tags: database=network
time numSeries
1495595820000000000 0
name: database
tags: database=hosting
time numSeries
1495595820000000000 1252706
name: database
tags: database=heapster
time numSeries
1495595820000000000 185176
name: database
tags: database=ech
time numSeries
1495595820000000000 0
name: database
tags: database=ceph
time numSeries
1495595820000000000 342
name: database
tags: database=capi
time numSeries
1495595820000000000 1854
name: database
tags: database=cae
time numSeries
1495595820000000000 305
name: database
tags: database=aci
time numSeries
1495595820000000000 0
name: database
tags: database=_internal
time numSeries
1495595820000000000 1486