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
F18824373: D21114.id.diff
Thu, Oct 23, 3:23 PM
F18817920: D21114.diff
Tue, Oct 21, 7:28 PM
F18807143: D21114.diff
Sat, Oct 18, 11:26 PM
F18773139: D21114.id50285.diff
Thu, Oct 9, 7:31 AM
F18760811: D21114.id50288.diff
Mon, Oct 6, 10:34 AM
F18632191: D21114.diff
Sep 16 2025, 5:24 PM
F18367308: D21114.diff
Aug 27 2025, 11:28 PM
F18363893: D21114.id50288.diff
Aug 27 2025, 5:42 PM
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.