Skip to content

Conversation

@gnufied
Copy link
Contributor

@gnufied gnufied commented Mar 24, 2014

This branch does not implement any new features in Invoker But:

a. replaces Slop with Thor.
b. Implements JSON IPC for exchanging messages between processes and hence making it much more extensible.

gnufied added 8 commits March 23, 2014 21:04
So far invoker use hastily put together gets/puts for
exchanging messages between processes. Lets replace
that with proper JSON based protocol.
I really like Thor's way of command line option
parsing and hence replacing it.
Implement separate command classes for handling
incoming JSON messages to Server and sending responses.
This will give us much better flexibility in
extending invoker.
I figured Yajl does blocking read in blocks of 8092 bytes
and hence it will always block unless other end writes JSON
and closes the socket.

Lets implement proper JSON protocol for it.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These I moved because we only need these things in forked process, that runs DNS server and load balancer. This greatly helped with loading time of Invoker.

@ami7ava
Copy link
Contributor

ami7ava commented Mar 24, 2014

Got the following error while running invoker setup

invoker/lib/invoker/power/setup.rb:57:in `drop_to_normal_user': uninitialized constant Invoker::Power::Setup::EventMachine (NameError)

I think lib/invoker/power/setup.rb needs to require eventmachine.

@gnufied
Copy link
Contributor Author

gnufied commented Mar 24, 2014

Good catch @abasak . yeah that will require fixing!

gnufied pushed a commit that referenced this pull request Mar 25, 2014
@gnufied gnufied merged commit f7dae91 into master Mar 25, 2014
@gnufied gnufied deleted the implement-json-ipc branch March 25, 2014 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants