Coder Social home page Coder Social logo

Comments (7)

mcmiv413 avatar mcmiv413 commented on July 20, 2024 1

Wondering if there is any traction on this, we tried to implement a Prometheus exporter check and ran into this same issue, had to farm off the exporter to check to an unrelated stand alone server.

from signalfx-agent.

keitwb avatar keitwb commented on July 20, 2024

@daviddyball I actually implemented this feature last year in a hackathon we had and we have gotten several requests similar to yours in the last few months. Unfortunately my implementation is sitting in a feature branch (https://github.com/signalfx/signalfx-agent/tree/clustering) and needs a bit of fixing up and testing/debugging to make production-ready. It is basically just an extension and abstraction of what the kubernetes-cluster monitor does to ensure that it runs on a single agent instance within a K8s cluster.

The way it is implemented (in the branch) is that the agent depends on some external service to do the election process. In K8s, it uses the K8s API server and ConfigMaps to obtain "leases". I made a simple Memcached implementation in my branch. Would you be able to make use of one of those two implementations or would some other service be more convenient for you? It is pretty simple to extend it to use anything that supports basic atomic operations and can be accessed over the network by the agent.

We are looking into "productionalizing" this soon and will post any updates here.

from signalfx-agent.

daviddyball avatar daviddyball commented on July 20, 2024

@keitwb Cool to see it's been thought of already. Most of our services that require leadership election just use K8s ConfigMaps for doing that, so I can't see why it wouldn't work here also. Glad it's on the radar... having 500 connections to our RDS instance just for monitoring wasn't feasible 😂

from signalfx-agent.

keitwb avatar keitwb commented on July 20, 2024

@mcmiv413 unfortunately not -- it was deprioritized given how complex it is to make work (there are a lot of edge cases to work out). I had something working but it was nasty and I wasn't very confident putting it out. I now believe that this problem is really better solved at a level above the agent, as that allows the agent to remain relatively simple.

from signalfx-agent.

daviddyball avatar daviddyball commented on July 20, 2024

@keitwb Do you have a recommendation for how it should be done?

from signalfx-agent.

keitwb avatar keitwb commented on July 20, 2024

@daviddyball By running a separate standalone agent instance with the appropriate hardcoded config. If you are in K8s you can use a Deployment with size of 1 with its own ConfigMap. It's a bit more overhead to setup but once you get it running it should be simple to maintain.

from signalfx-agent.

mcmiv413 avatar mcmiv413 commented on July 20, 2024

I'd argue that doing what is suggested is a poor game plan, any time where you rely on something to only be ever running as a single instance even in kubernetes is just bad practice in my opinion. I do hope that this gets revisited and implemented in an appropriate manner.

from signalfx-agent.

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.