Commit Graph

3896 Commits

Author SHA1 Message Date
Alfonso Acosta
d38854fbda Release 1.5.1 2017-07-05 18:14:06 +00:00
Matthias Radestock
3d96174788 correct polarity of initial connections
Fixes #2644
2017-07-05 18:11:34 +00:00
Matthias Radestock
bfd53d28e5 ensure connections from /proc/net/tcp{,6} get the right pid
ProcNet.Next does not allocate Connection structs, for efficiency.
Instead it always returns a *Connection pointing to the same instance.
As a result, any mutations by the caller to struct elements that
aren't actually set by ProcNet.Next, in particular Connection.Proc,
are carried across to subsequent calls.

This had hilarious consequences: connections referencing an inode
which we hadn't come across during proc walking would be associated
with the process corresponding to the last successfully looked up
inode.

The fix is to clear out the garbage left over from previous calls.

Fixes #2638.
2017-07-05 18:11:24 +00:00
Alfonso Acosta
a7076e6092 Update doc versions v1.5.0 2017-06-19 09:45:23 +00:00
Filip Barl
c4e0be45de Moved pause button back to footer. (#2585) 2017-06-14 11:39:45 +02:00
Filip Barl
83f557b638 Don't display the empty message when nodes are displayed. (#2597) 2017-06-14 11:03:54 +02:00
Roland Schilter
7cfef6d3f2 Merge pull request #2599 from weaveworks/bump-client-version-1.5
Bump client version in package.json
2017-06-14 08:33:47 +02:00
Roland Schilter
8067ac93ae Bump client version in package.json 2017-06-13 16:40:45 +02:00
Alfonso Acosta
16679849dc Release 1.5.0 2017-06-13 08:33:03 +00:00
Matthias Radestock
45aee2b2c4 Merge pull request #2581 from weaveworks/trim-endpoint-latest
drop addr and port from Endpoint.Latest map
2017-06-12 10:30:50 +01:00
Filip Barl
b6dfe25499 Time travel control (#2524)
* Hacky working prototype.

* Operate with time.Duration offset instead of fixed timestamp.

* Polished the backend code.

* Made a nicer UI component.

* Small refactorings of the websockets code.

* Fixed the backend tests.

* Better websocketing and smoother transitions

* Small styling refactoring.

* Detecting empty topologies.

* Improved error messaging.

* Addressed some of David's comments.

* Moved nodesDeltaBuffer to a global state to fix the paused status rendering bug.

* Small styling changes

* Changed the websocket global state variables a bit.

* Polishing & refactoring.

* More polishing.

* Final refactoring.

* Addressed a couple of bugs.

* Hidden the timeline control behind Cloud context and a feature flag.

* Addressed most of @davkal's comments.

* Added mixpanel tracking.
2017-06-12 11:22:17 +02:00
Matthias Radestock
afbc1decab drop addr and port from Endpoint.Latest map
the information is constant and already present in the id, so we can
extract it from there.

That reduces the report size and improves report encoding/decoding
performance. It should reduce memory usage too and improve report
merging performance too.

NB: Probes with this change are incompatible with old apps.
2017-06-10 19:19:56 +01:00
Alfonso Acosta
70af2aac84 Merge pull request #2579 from weaveworks/2578-retarget-client
re-target app clients when name resolution changes
2017-06-09 15:05:39 +02:00
Matthias Radestock
c8f97878d2 re-target app clients when name resolution changes
Fixes #2578.
2017-06-09 12:30:26 +01:00
Matthias Radestock
fb735b65c4 cosmetic: correct comment 2017-06-09 11:31:20 +01:00
Matthias Radestock
32735d868e Merge pull request #2572 from weaveworks/observed-gen-is-number
correct type for "Observed Gen."
2017-06-08 20:47:29 +01:00
Alfonso Acosta
6913d49b00 Merge pull request #2575 from weaveworks/app-capabilites
Add app capabilities to /api endpoint
2017-06-08 18:40:34 +02:00
Roland Schilter
5ef7bd151a es6ify server.js and include in eslint (#2560) 2017-06-08 18:39:53 +02:00
Roland Schilter
b78745f615 Execute tests in the prog/ directory (#2567)
Also fixed prog/main_test.go (which has never been part of the test suite so far)
2017-06-08 15:41:53 +02:00
Alfonso Acosta
7e7386a3fe Review feedback 2017-06-08 13:35:03 +00:00
Alfonso Acosta
6be7aa8be2 Add app capabilities to /api endpoint 2017-06-08 11:02:25 +00:00
Matthias Radestock
d0b40ee4b9 correct type for "Observed Gen."
It's a number. This enables numeric sorting of Observed Gen in the
table mode of the Deployment and Replicaset views.
2017-06-08 04:27:10 +01:00
Roland Schilter
2e4f4a3771 Elide url passwords in cli arguments (#2568)
Closes #2365
2017-06-07 10:18:18 +01:00
Roland Schilter
56cb02675b Back off upon errored kubernetes api requests (#2562)
closes #1009
2017-06-06 16:19:41 +02:00
Roland Schilter
f427077e85 Merge pull request #2563 from weaveworks/makefile-find-wildcard
Fix incomplete dependencies for `make scope/prog`
2017-06-05 22:11:46 +01:00
Roland Schilter
1c4f0036cf Fix incomplete dependencies for make scope/prog
It seems that on my OS the passed param to find gets expanded early and
thus the command

    $(shell find ./ -path ./vendor -prune -o -type f -name *.go)

results in

        ./test.go ./vendor

instead of including all the go files from subdirs. Quoting helps.
2017-06-05 15:56:16 +01:00
Roland Schilter
3933c36f8f Merge pull request #2555 from weaveworks/bump-scopeui-version
bump package.json version to current scope version
2017-06-05 14:08:41 +02:00
Matthias Radestock
d1489d4d85 Merge pull request #2561 from weaveworks/parallel-reduce
execute reducer branches in parallel
2017-06-05 12:50:20 +01:00
Matthias Radestock
912c684e65 optimise memoisation for parallel execution
don't start the same piece of work twice
2017-06-05 10:30:11 +01:00
Matthias Radestock
91d3497f7d parallelise 'reduce' 2017-06-05 08:44:17 +01:00
Matthias Radestock
6eaffb44e0 fix bug: handle short-lived ebpf-tracked connections again
This got broken in #2559.

The problem here is similar to #2551.
2017-06-04 18:42:54 +01:00
Matthias Radestock
f574162f64 Merge pull request #2559 from weaveworks/simplify-connection-join
simplify connection join
2017-06-04 16:30:09 +01:00
Matthias Radestock
30c38a958f remove blatant falsehoods from comments 2017-06-04 16:23:03 +01:00
Matthias Radestock
ebcf9dcf10 refactor: rename ShortLivedConnectionJoin to ConnectionJoin
since it's dealing with *all* connections, not just short-lived ones.
2017-06-04 16:10:21 +01:00
Matthias Radestock
9bc7b30f0f extract and expand endpoint procspied filter
The filter needs to exclude both procspied and eBPF-tracked endpoints,
since both will be picked up by the process topology.
2017-06-04 16:10:21 +01:00
Matthias Radestock
707add13a3 refactor: simplify some filters 2017-06-04 16:10:21 +01:00
Matthias Radestock
ee0736df69 refactor: extract constant mapEndpoint2IP 2017-06-04 16:10:21 +01:00
Matthias Radestock
6697f4a897 refactor: declosure ShortLivedConnectionJoin 2017-06-04 16:10:21 +01:00
Matthias Radestock
b29602f33a Merge pull request #2557 from weaveworks/dont-read-all-of-proc
don't read all of /proc when probe.proc.spy=false
2017-06-04 14:48:54 +01:00
Alfonso Acosta
e4f5537529 Merge pull request #2535 from weaveworks/2441-enable-ebpf-by-default
Enable eBPF tracking by default
2017-06-04 15:46:07 +02:00
Matthias Radestock
ff4a4c08ce refactor: remove pointless optimisation 2017-06-04 10:36:55 +01:00
Matthias Radestock
59f777a066 don't read all of /proc when probe.proc.spy=false
Previously we were doing the reading even though we weren't looking at
the result.
2017-06-02 14:01:25 +01:00
Roland Schilter
a1e58c13e5 bump package.json version to current scope version 2017-06-01 18:24:58 +02:00
Alfonso Acosta
b2e6b97aa8 Fix ebpf-connection checking 2017-05-31 15:10:52 +00:00
Alfonso Acosta
71e035665b Adjust integration tests 2017-05-31 10:04:52 +00:00
Alfonso Acosta
7ca8749b18 Enable eBPF tracking by default 2017-05-31 10:04:52 +00:00
Matthias Radestock
06bb5157f8 Merge pull request #2548 from weaveworks/nodeset-unsorted-foreach
optimise: don't sort in NodeSet.ForEach
2017-05-30 14:54:13 +01:00
Matthias Radestock
6679c42c0e optimise: don't sort in NodeSet.ForEach
It's unnecessary, and none of the other ps.Map derived structures do
it.
2017-05-30 13:42:18 +01:00
Matthias Radestock
2c5709b5ae Merge pull request #2547 from weaveworks/do-not-encode-empty-maps
encode empty ps.Maps as nil
2017-05-29 18:31:08 +01:00
Matthias Radestock
94a11ff2e8 encode empty ps.Maps as nil
every little helps
2017-05-29 17:50:55 +01:00