Giter VIP home page Giter VIP logo

Comments (3)

ChrisLundquist avatar ChrisLundquist commented on May 25, 2024

could it be related to a json hash serializing in a different order?

from chef-logstash.

jonathanq avatar jonathanq commented on May 25, 2024

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.

lusis avatar lusis commented on May 25, 2024

closing as we've pulled out kibana.

from chef-logstash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.