Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

IPC: support sending config and dependent files #48

Closed
indutny opened this issue Sep 17, 2014 · 3 comments
Closed

IPC: support sending config and dependent files #48

indutny opened this issue Sep 17, 2014 · 3 comments

Comments

@indutny
Copy link
Owner

indutny commented Sep 17, 2014

n/t

@odeke-em
Copy link
Contributor

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)

@indutny
Copy link
Owner Author

indutny commented May 31, 2015

I think it is done now.

@indutny indutny closed this as completed May 31, 2015
@odeke-em
Copy link
Contributor

👍 good stuff.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants