Giter Club home page Giter Club logo

Comments (7)

dgrnbrg avatar dgrnbrg commented on August 31, 2024

Here's where the masters are processed:

(let [clients (map (fn [satellite]
(tcp-client satellite))
(:satellites settings))

That's the only place in the code where we ever look at the :satellites key from the settings. We could instead have the

recompute the satellites; for example, maybe we could check if :satellites is a collection or a function, and if it's a function, then we could create new clients on the fly if the function's return value changed. Of course, we'd want to memoize the client creation, but I think that storing the most recent 5 clients would be sufficient.

from satellite.

memelet avatar memelet commented on August 31, 2024

Does the slave take a SIGHUP to reload its config? If so consul-template could keep the list of satellites up to date. (Or maybe simply restarting slaves does not cause much havac on the servers?)

from satellite.

dgrnbrg avatar dgrnbrg commented on August 31, 2024

The satellite slaves are meant to be fully restarted--as long as they come back w/in 60 seconds or so, there shouldn't be any problems (I can't recall the exact timeout off the top of my head).

from satellite.

memelet avatar memelet commented on August 31, 2024

Ok, for me this works great:

(def settings
  {:satellites [{{range service "satellite-master"}}{:host "{{.Address}}:{{.Port}}"}
                {{end}}]
  ...

I have the master and slave both running as docker containers, so I just have consul-template restart the slave when it updates the config.

from satellite.

dgrnbrg avatar dgrnbrg commented on August 31, 2024

Would you be interested in contributing your docker containers & consul
templates to Satellite? We'd love to have them!

On Thu, Nov 26, 2015 at 4:01 AM Barry Kaplan [email protected]
wrote:

Ok, for me this works great:

(def settings
{:satellites [{{range service "satellite-master"}}{:host "{{.Address}}:{{.Port}}"}
{{end}}]
...

I have the master and slave both running as docker containers, so I just
have consul-template restart the slave when it updates the config.


Reply to this email directly or view it on GitHub
#42 (comment).

from satellite.

memelet avatar memelet commented on August 31, 2024

Of course. Once everything is stable I'll clean it up and extract any local environment dependencies that may have creeped in. I also deploy with ansible. While that is not so general just yet, it could be made so.

from satellite.

dgrnbrg avatar dgrnbrg commented on August 31, 2024

We love ansible!

On Fri, Nov 27, 2015 at 11:05 PM Barry Kaplan [email protected]
wrote:

Of course. Once everything is stable I'll clean it up and extract any
local environment dependencies that may have creeped in. I also deploy with
ansible. While that is not so general just yet, it could be made so.


Reply to this email directly or view it on GitHub
#42 (comment).

from satellite.

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.