Skip to content

Core: bypass write to pipe for local transactions#672

Open
toshic wants to merge 3 commits into
reverbrain:masterfrom
toshic:local_copy
Open

Core: bypass write to pipe for local transactions#672
toshic wants to merge 3 commits into
reverbrain:masterfrom
toshic:local_copy

Conversation

@toshic

@toshic toshic commented Nov 24, 2015

Copy link
Copy Markdown
Member

Reworked dnet_io_req_queue function to pass io_req struct directly
to the proper IO pool, eliminating write/read through pipe in net pool.

Reworked dnet_io_req_queue function to pass io_req struct directly
to the proper IO pool, eliminating write/read through pipe in net pool.
Comment thread library/net.c Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If orig doesn't have header, why does it set r->header here?

@bioothod

Copy link
Copy Markdown
Member

Why is this needed? Do you have so many local requests which come from one queue to another?
What are these commands, and why do they need this special handling?

@toshic

toshic commented Nov 27, 2015

Copy link
Copy Markdown
Member Author

We want to run traffic-intensive wokers with SRW, and use Cocaine localnode service (it will be in separate PR later) to access data. We do not want to start elliptics client in each worker because our cluster is pretty large, and we can't update it (elliptics client inside worker's code) in case of Elliptics cluster major version upgrade.

To isolate work with dnet_io_req data pointers request fixup was moved to
dnet_io_req_copy function from dnet_io_req_queue.
@shaitan

shaitan commented Dec 11, 2015

Copy link
Copy Markdown
Member

@toshic It is ready to be merged, isn't it?

@toshic

toshic commented Dec 11, 2015

Copy link
Copy Markdown
Member Author

I shink so.

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.

4 participants