Bryan Boreham
4feb451760
Refactor join-Renderer helper functions as methods
...
New type joinResult is created to hold the nodes and ID mapping.
The implementation move from host.go to render.go.
2017-11-06 22:12:13 +00:00
Bryan Boreham
cbba3c0fd3
Clarify use of 'id' in addToResults
...
Pass 'id' through to the create function and expect that the result Node has that ID.
Extract a function newPseudoNode for common calls.
2017-11-06 22:12:13 +00:00
Bryan Boreham
322aa76e02
Remove functions which are no longer called
2017-11-06 22:12:10 +00:00
Bryan Boreham
cbcb5f19fc
Rewrite ProcessRenderer/MapEndpoint2Process as a single Renderer
...
This is much more efficient as we skip creating then merging all intermediate Nodes
2017-11-06 22:06:29 +00:00
Bryan Boreham
77a8cac65a
Use helper to add result nodes in endpoints2Hosts.Render
...
This means we are no longer generating a Counter for the number of
endpoint sub-nodes, but it seems that data was not used.
2017-11-06 22:05:05 +00:00
Bryan Boreham
e16aaf6c43
Merge nodeToIP, endpoints2Nodes and ipToNode into one Renderer
...
This is much more efficient as we skip creating then merging all intermediate Nodes
2017-11-06 22:05:05 +00:00
Bryan Boreham
b684e3c6fc
Rewrite MapEndpoint2Host as a Renderer
...
This allows us to avoid creating a host of 'IP' type Nodes then
discarding them after matching; instead we match directly and create
just the result we want.
2017-11-06 22:05:05 +00:00
Bryan Boreham
1b3e40ccb5
Refactor: extract pseudoNodeID function
2017-11-06 22:04:59 +00:00
Bryan Boreham
d230846b95
Refactor: extract externalNodeID function
2017-11-06 20:55:57 +00:00
Bryan Boreham
8a11697957
Add BenchmarkTopologyHosts() and BenchmarkTopologyContainers()
...
To time a single topology, for more focused optimisation
2017-11-06 20:48:25 +00:00
Filip Barl
119bbab4fe
Merge pull request #2915 from weaveworks/2875-humanize-durations
...
Humanize reported durations
2017-11-06 14:11:45 +01:00
Matthias Radestock
b3669bee84
Merge pull request #2924 from weaveworks/2923-memoise-less
...
remove unused memoisation
Fixes #2923
2017-11-06 10:35:22 +00:00
Bryan Boreham
c52b5f69e7
Merge pull request #2921 from weaveworks/optimise-dnsnames
...
Avoid object creation when scanning DNS names
2017-11-06 09:59:48 +00:00
Matthias Radestock
7b0a08ae9d
memoise renderer passed to ConnectionJoin
...
We do this here rather than in ConnectionJoin since that way it is
obvious that the renderer isn't memoised already.
2017-11-05 11:05:28 +00:00
Matthias Radestock
5f4f9da4df
memoise a few more shared renderers
2017-11-05 00:21:45 +00:00
Matthias Radestock
b793a9efa8
memoise shared top-level renderers
...
and add a comment indicating non-memoisation of other, not shared
top-level renderers.
This memoisation is effective when the browser requests multiple
topologies for the same report.
2017-11-04 23:05:52 +00:00
Matthias Radestock
0b9bab255c
memoise top-level rendering
...
This deals with browsers requesting the same rendering for the same
timespan when no new reports have been received for that timespan.
2017-11-04 22:24:46 +00:00
Matthias Radestock
2bdab7513e
ditch all memoisation
...
we will re-introduce it more selectively later
2017-11-04 22:21:50 +00:00
Bryan Boreham
6aab6ced5a
Merge pull request #2918 from weaveworks/ecs-crash-less
...
Don't de-reference pointers from AWS without checking
2017-11-04 20:33:49 +00:00
Bryan Boreham
800979a089
Avoid object creation when scanning DNS names
...
Since we do this a lot, scanning the lists in-place saves time.
Also we don't need to sort them since StringSet is implemented as a
sorted set of strings
2017-11-04 17:37:04 +00:00
Bryan Boreham
ca9351553c
Fix ECS stack configuring link
2017-11-03 10:24:43 +00:00
Filip Barl
e233e64279
Improved the duration parsing on frontend.
2017-11-03 10:43:41 +01:00
Filip Barl
f5bfa506d6
Verified the TODO comments and make durations be in seconds.
2017-11-03 10:43:41 +01:00
Filip Barl
320b9e240f
Abstracted the report data types.
2017-11-03 10:43:41 +01:00
Filip Barl
6c0194b832
Show uptime durations in a more human format.
2017-11-03 10:43:41 +01:00
Damien Lespiau
78152d0ac2
Merge pull request #2917 from tklauser/utsname-x-sys
...
Simplify Utsname string conversion
2017-11-02 11:59:18 +00:00
Tobias Klauser
89f3ce2e64
Simplify Utsname string conversion
...
Use Utsname from golang.org/x/sys/unix which contains byte array
instead of int8/uint8 array members. This allows to simplify the string
conversions of these members and the marshal.FromUtsname functions are
no longer needed.
2017-11-02 08:45:54 +01:00
Bryan Boreham
a082c28919
Don't de-reference pointers from AWS without checking
2017-11-01 14:52:50 +00:00
Damien Lespiau
99fad2f1d4
Merge pull request #2916 from cglewis/master
...
MAINTAINER is deprecated, now using LABEL
2017-11-01 09:18:50 +00:00
Tobias Klauser
ac6a629aa2
Update golang.org/x/sys/unix to latest master
2017-11-01 09:54:48 +01:00
cglewis
bbde07d42f
MAINTAINER is deprecated, now using LABEL
2017-10-31 10:32:09 -07:00
Filip Barl
bda967fbcd
Merge pull request #2912 from weaveworks/2887-add-earliest-timestamp-to-time-travel
...
Use firstSeenConnectAt for beginning of availability period in Time Travel
2017-10-30 10:27:53 +01:00
Filip Barl
892b2326d6
Use firstSeenConnectAt for earliestTimestamp in Time Travel.
2017-10-27 15:04:26 +02:00
Damien Lespiau
2f28f78148
Merge pull request #2911 from weaveworks/2905-update-gopacket
...
vendoring: Update gopacket to latest master
2017-10-27 13:52:44 +01:00
Damien Lespiau
6bb6d4dd5a
vendoring: Update gopacket to latest master
...
We'd like to benefit from the memory reduction from:
https://github.com/google/gopacket/pull/377
I just ran:
$ gvt update github.com/google/gopacket
Fixes: https://github.com/weaveworks/scope/issues/2905
2017-10-27 12:32:05 +01:00
Filip Barl
27fea40d09
Merge pull request #2906 from weaveworks/2858-prevent-zooming-nan-errors
...
Try to prevent zooming NaN errors
2017-10-24 16:15:04 +02:00
Filip Barl
93758ab980
Merge pull request #2907 from weaveworks/2898-fix-scroll-height-of-null-error
...
Check whether tableContent ref is present
2017-10-23 18:40:20 +02:00
Filip Barl
1d665a5a23
Check whether tableContent ref is present.
2017-10-23 17:09:56 +02:00
Filip Barl
35c814e912
Make sure only proper numerical values are cached.
2017-10-23 16:39:34 +02:00
Filip Barl
adea60b07e
Set initial viewport size in global state.
2017-10-23 16:28:46 +02:00
Filip Barl
4872a85181
Merge pull request #2903 from weaveworks/use-time-travel-from-ui-components-repo
...
Use TimeTravel from ui-components repo
2017-10-23 12:50:28 +02:00
Filip Barl
397b839678
Removed all legacy TimeTravel code.
2017-10-20 11:50:40 +02:00
Filip Barl
770c58a97b
Using TimeTravel from ui-components repo.
2017-10-20 11:50:40 +02:00
Filip Barl
4d116fdf7f
Merge pull request #2900 from weaveworks/2899-update-minor-node-deps
...
Update minor node dependencies
2017-10-20 10:45:19 +02:00
Filip Barl
4dc200b8d2
Bumped React minor version to surpress warnings.
2017-10-18 15:10:53 +02:00
Filip Barl
71076fc17d
Using babel-preset-env instead of babel-preset-es-2015.
2017-10-18 15:05:37 +02:00
Filip Barl
68382e9a29
Updated all dependencies.
2017-10-18 14:56:08 +02:00
Filip Barl
228c9c4ab3
Updated all possible devDependencies.
2017-10-18 14:54:45 +02:00
Filip Barl
6cc98fdea2
Merge pull request #2896 from weaveworks/2895-update-eslint-deps
...
Update eslint dependencies
2017-10-18 13:42:56 +02:00
Damien Lespiau
17428fc59e
Merge pull request #2894 from weaveworks/2017-10-16-close-pipe-error-path
...
docker: Close pipe when the docker API call fails
2017-10-18 12:10:45 +01:00