Page MenuHomePhabricator

Provide a "--local" flag to "bin/conduit call" to force in-process execution
ClosedPublic

Authored by epriestley on Apr 14 2020, 7:51 PM.
Tags
None
Referenced Files
F14401167: D21114.id50288.diff
Sun, Dec 22, 9:27 PM
Unknown Object (File)
Fri, Dec 20, 9:03 PM
Unknown Object (File)
Tue, Dec 17, 1:46 PM
Unknown Object (File)
Thu, Dec 12, 3:32 AM
Unknown Object (File)
Fri, Dec 6, 4:07 AM
Unknown Object (File)
Mon, Dec 2, 10:56 AM
Unknown Object (File)
Fri, Nov 29, 12:40 PM
Unknown Object (File)
Thu, Nov 28, 1:15 AM
Subscribers
None

Details

Summary

See PHI1692. Currently, it's hard to get a local profile or "--trace" of some Diffusion API methods, since they always proxy via HTTP -- even if the local node can serve the request.

This always-proxy behavior is intentional (so we always go down the same code path, to limit surprises) but inconvenient when debugging. Allow an operator to connect to a node which can serve a request and issue a --local call to force in-process execution.

This makes it straightforward to "--trace" or "--xprofile" the call.

Test Plan

Ran bin/conduit call ... with and without --local using a Diffusion method on a clustered repository. Without --local, saw proxy via HTTP. With --local, saw in-process execution.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Apr 14 2020, 8:24 PM
This revision was automatically updated to reflect the committed changes.