Git Product home page Git Product logo

Comments (3)

odeke-em avatar odeke-em commented on June 24, 2024

Quoting from @indutny:
Bud has a master->workers architecture. Each worker has a pipe shared with master (the pipe is technically a socketpair()). The master sends IPC messages on this pipe, which are usually just a one-byte kBudIPCBalance messages. However this channel may (and should) be used for transferring the config file and the keys too, and this is a blocker for a stdin configuration file.

Here is a relevant header file and some lines of it:

https://github.com/indutny/bud/blob/master/src/ipc.h#L25-L29

So, on a technical note, what needs to be performed (at least this how I see it):

Master sends some files on which the JSON configuration does depend (like keys, certs).
Worker stores them in some hashmap in memory
Master sends the configuration file itself
Worker loads it and, instead of loading files from disc, loads files from that hashmap (see config.c for all details)

from bud.

indutny avatar indutny commented on June 24, 2024

I think it is done now.

from bud.

odeke-em avatar odeke-em commented on June 24, 2024

👍 good stuff.

from bud.

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.