Comments (3)
could it be related to a json hash serializing in a different order?
from chef-logstash.
I had a similar problem with my logstash cookbook - every run would restart logstash on my servers. Turned out the search for ElasticSearch nodes was returning them in a random order. So when I grabbed the first one from the list it was often not the one the config pointed to currently. And as a result, it would re-write the config file and restart Logstash.
Is it possible the same thing is happening here with your Kibana config? To fix my issue I just put a sort in after I got the list to ensure I was consistently getting the same server if the IPs were the same.
es_results = search(:node, "roles:#{node['logstash']['elasticsearch_role']} AND chef_environment:#{node.chef_environment}")
es_results.sort! { |a,b| a.name.downcase <=> b.name.downcase }
es_server_ip = es_results[0]['ec2']['public_hostname']
It doesn't do any load balancing, all servers will get the same ES node. But it was a simple fix to stop the restarts (especially with logstash jar startup time). Eventually I'll probably front my ES cluster with an a load balancer and that should fix it for good.
from chef-logstash.
closing as we've pulled out kibana.
from chef-logstash.
Related Issues (20)
- Unable to install logstash 2.3.2 getting plugin install errors HOT 1
- Problem in Amazon OpsWorks with Ubuntu 16.04 HOT 1
- Support JAVA_STACK variable
- Logstash 2.3.4, 2.3.3 service fails HOT 9
- LWRP "version" property is being ignored HOT 1
- Recipe fails with No resource or method named `logstash_instance' error
- Deprecated? HOT 2
- Version 0.13.0 fails on Chef 12 due to version declaration HOT 3
- failing on linux_user
- plugin guard not working HOT 3
- config not working HOT 1
- Switch to strings for hash keys instead of symbols
- tarball plugin install error minitar HOT 1
- Restart Server only on config change
- logrotate config has invalid path of just "*.log"
- specify init choice for service? HOT 4
- "agent" is not a valid parameter to Logstash anymore HOT 2
- Boolean properties are overriden by default values when set to false HOT 15
- chef/mixin/language incompatible with Chef 14 HOT 3
- logstash_instance fails when installing from source
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 chef-logstash.