Comments (9)
./configs/influxdb-meta.conf/
and ./configs/influxdb.conf/
should be different from each other.
And the hostname like 38b2aebcf853
and 279134311c56
is an unfixed string. It is highly recommended to use a fixed hostname by setting container_name
. After resetting the cluster and all nodes execute the command like
influxd-ctl -bind influxdb-meta-01:8091 add-meta influxdb-meta-01:8091
influxd-ctl -bind influxdb-meta-01:8091 add-meta influxdb-meta-02:8091
influxd-ctl -bind influxdb-meta-01:8091 add-meta influxdb-meta-03:8091
influxd-ctl -bind influxdb-meta-01:8091 add-data influxdb-data-01:8088
influxd-ctl -bind influxdb-meta-01:8091 add-data influxdb-data-02:8088
Please refer to Manage Clusters to learn about the option -bind
from influxdb-cluster.
I used the command that your provide, same problem.
After running docker-compose down and docker-compose up, I attempted to use add-meta and add-data in meta01, and here are the logs.
add-meta
add-meta: operation exited with error: dangled meta node at "influxdb-meta-01:8091" already has state present, cannot add another meta node
add-data
add-data: operation exited with error: data node failed to contact valid meta server in list []
in data node
ts=2023-10-23T02:40:31.897305Z lvl=info msg="Failure getting snapshot" log_id=0l2agxeG000 service=metaclient server=48d8f5099c17:8091 error="Get \"http://48d8f5099c17:8091?index=0\": dial tcp: lookup 48d8f5099c17 on 127.0.0.11:53: server misbehaving"
What additional information can I provide to help resolve this issue?
from influxdb-cluster.
In logs from data node, you can see the error message server=48d8f5099c17:8091 error="Get \"http://48d8f5099c17:8091?index=0\": dial tcp: lookup 48d8f5099c17 on 127.0.0.11:53: server misbehaving"
. It means your hostname is configured wrong.
You need to configure hostname
to the fixed value I mentioned earlier in influxdb-meta.conf
and influxdb.conf
from influxdb-cluster.
Also, please check out the installation documentation in detail
from influxdb-cluster.
My influxdb-meta.conf and influxdb.conf were configured as follows at the top:
hostname="influxdb-****-0*
After running docker-compose down and docker-compose up, I encountered the same error, But ping the hostname is access.
from influxdb-cluster.
Could you provide all files including docker-compose.yml
, influxdb-meta.conf
and influxdb.conf
?
from influxdb-cluster.
Sure!
- docker-compose.yml
version: "3.5"
services:
influxdb-meta-01:
image: chengshiwen/influxdb:1.8.10-c1.1.2-meta
container_name: influxdb-meta-01
restart: unless-stopped
networks:
- influxdb-cluster
volumes:
- ./influxdb-meta-01/etc/influxdb/:/etc/influxdb/
- ./influxdb-meta-01/var/lib/influxdb/:/var/lib/influxdb
influxdb-meta-02:
image: chengshiwen/influxdb:1.8.10-c1.1.2-meta
container_name: influxdb-meta-02
restart: unless-stopped
networks:
- influxdb-cluster
volumes:
- ./influxdb-meta-02/etc/influxdb/:/etc/influxdb/
- ./influxdb-meta-02/var/lib/influxdb/:/var/lib/influxdb
influxdb-meta-03:
image: chengshiwen/influxdb:1.8.10-c1.1.2-meta
container_name: influxdb-meta-03
restart: unless-stopped
networks:
- influxdb-cluster
volumes:
- ./influxdb-meta-03/etc/influxdb/:/etc/influxdb/
- ./influxdb-meta-03/var/lib/influxdb/:/var/lib/influxdb
influxdb-data-01:
image: chengshiwen/influxdb:1.8.10-c1.1.2-data
container_name: influxdb-data-01
ports:
- 8186:8086
restart: unless-stopped
networks:
- influxdb-cluster
volumes:
- ./influxdb-data-01/etc/influxdb/:/etc/influxdb/
- ./influxdb-data-01/var/lib/influxdb:/var/lib/influxdb
influxdb-data-02:
image: chengshiwen/influxdb:1.8.10-c1.1.2-data
container_name: influxdb-data-02
ports:
- 8286:8086
restart: unless-stopped
networks:
- influxdb-cluster
volumes:
- ./influxdb-data-02/etc/influxdb/:/etc/influxdb/
- ./influxdb-data-02/var/lib/influxdb:/var/lib/influxdb
chronograf:
image: chronograf
container_name: chronograf
ports:
- 8888:8888
restart: unless-stopped
networks:
- influxdb-cluster
volumes:
- ./chronograf/var/lib/chronograf:/var/lib/chronograf
kapacitor:
image: kapacitor
container_name: kapacitor
ports:
- 9092:9092
restart: unless-stopped
networks:
- influxdb-cluster
volumes:
- ./kapacitor/etc/kapacitor:/etc/kapacitor
- ./kapacitor/var/lib/kapacitor:/var/lib/kapacitor
- ./kapacitor/tmp:/tmp
networks:
influxdb-cluster:
- influxdb-meta.conf
hostname="influxdb-meta-01"
[meta]
dir = "/var/lib/influxdb/meta"
- influxdb.conf
hostname="influxdb-data-01"
[http]
flux-enabled = true
[meta]
dir = "/var/lib/influxdb/meta"
[data]
dir = "/var/lib/influxdb/data"
engine = "tsm1"
wal-dir = "/var/lib/influxdb/wal"
[hinted-handoff]
dir = "/var/lib/influxdb/hh"
from influxdb-cluster.
@sam30606 You forgot to configure hostname
like hostname: influxdb-meta-01
, and you can refer to docker-compose.yml
influxdb-meta-01:
image: chengshiwen/influxdb:1.8.10-c1.1.2-meta
container_name: influxdb-meta-01
hostname: influxdb-meta-01
restart: unless-stopped
networks:
- influxdb-cluster
from influxdb-cluster.
Oh, my mistake! Thank you for your patience in answering. :)
from influxdb-cluster.
Related Issues (20)
- The Influxd is crashed when the hinted handoff queue is blocked HOT 3
- How to modify Desired Replicas?and need Cluster config docs readme in China HOT 2
- All nodes in the cluster are crashed when multiple writing stress testing and 16 million total points written per second HOT 4
- Unexpected write: status 500 , body: {"error":"timeout"}, when 16 million total points written per second HOT 5
- Different results with same query when 16 million total points written per second HOT 4
- I can not pull the Image with portainer - i get "Failure - no such image" - is there a typo? HOT 2
- dangled meta node HOT 21
- when will v1.8.10-c1.2.0 be release ? HOT 1
- consistency-level can not be configured HOT 2
- How to restore influx data HOT 2
- InfluxDB Cluster PVC[meta and data], Can be created in AWS EFS / NFS storage framework !! HOT 3
- Highly available setup of influxdb cluster HOT 2
- Roadmap for Version 1.10 HOT 5
- InfluxDBIOException: java.net.SocketTimeoutException: timeout HOT 2
- How can I automate the process of adding the data and meta nodes? HOT 3
- 8个datanode 同样sql多次查询结果不一致 HOT 5
- next version support backup&restore cmd HOT 1
- [occurs error] use `influx import` line protocol data file HOT 4
- timeout: influxd-ctl copy-shard occurs error HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from influxdb-cluster.