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

Fast datapath weave status #1525

Merged
merged 4 commits into from
Oct 14, 2015
Merged

Conversation

awh
Copy link
Contributor

@awh awh commented Oct 13, 2015

This is a replacement for #1513 that is targeted against master.

Fixes #1505.

@dpw
Copy link
Contributor

dpw commented Oct 13, 2015

@awh
Copy link
Contributor Author

awh commented Oct 13, 2015

I'd suggest renaming this method to make it clearer it yields a name for display to the user. E.g. DisplayName.

Done.

@dpw
Copy link
Contributor

dpw commented Oct 13, 2015

The only further comment I have is to note that this doesn't put the overlay type into the gossipped connection information as shown in weave report. But even if that's worth doing, it can be a separate issue.

So squash the fixup, and I'm happy to merge.

@awh awh force-pushed the issues/1505-fast-datapath-weave-status branch from 15beaa7 to ed4ed5f Compare October 13, 2015 16:05
@awh
Copy link
Contributor Author

awh commented Oct 13, 2015

this doesn't put the overlay type into the gossipped connection information as shown in weave report. But even if that's worth doing, it can be a separate issue.

I did consider that, but came to the same conclusion. Fixup squashed.

@dpw
Copy link
Contributor

dpw commented Oct 13, 2015

I was wondering whether the number of flows to be shown in weave report might be a problem. It could grow relatively large (easily hundreds, possibly thousands, tens of thousands might start to run into other limits). But if we allow the JSON describing a flow to be a generous 1000 bytes, it doesn't sound problematic. And in such cases, there might well also be hundreds or thousands of entries in the peer connections lists, so this is unlikely to present any new issues.

(I'm disappointed to find that the golang JSON encoder always encodes to an internal buffer, you cannot give it a Writer. Even stranger, MarshalIndent works by generating unindented JSON, then parsing it in order to indent it.)

@dpw dpw merged commit ed4ed5f into master Oct 14, 2015
dpw added a commit that referenced this pull request Oct 14, 2015
@awh awh deleted the issues/1505-fast-datapath-weave-status branch October 14, 2015 12:52
@awh
Copy link
Contributor Author

awh commented Oct 14, 2015

I'm disappointed

Disappointed, but not surprised I'll wager 😄

MarshalIndent works by generating unindented JSON, then parsing it in order to indent it.

I don't even.

@rade rade modified the milestone: 1.2.0 Oct 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants