Commit Graph

5862 Commits

Author SHA1 Message Date
Piotr Kiełkowicz
32f4261dbd FAQ for reading password from file 2021-04-27 13:55:37 +02:00
Bryan Boreham
c28847d67c Merge pull request #3850 from weaveworks/remove-unmerged-nodes
Remove partially merged nodes from deltas
2021-04-23 12:05:52 +01:00
Bryan Boreham
33acfa1e59 Log part-merged nodes dropped to tracing
So we have more idea what happened, in case of issue.
2021-04-23 10:51:24 +00:00
Bryan Boreham
4dbf908cde Remove partially merged nodes from deltas
Scope probes send full reports and deltas. If a node is eliminated
between two full reports, then the app might only have a delta of its
last state. Remove all such nodes before rendering.
2021-04-23 09:38:45 +00:00
Bryan Boreham
4e2f364381 Merge pull request #3849 from weaveworks/cancel-join-result
Exit joinResults.result() if context cancelled
2021-04-22 12:22:07 +01:00
Bryan Boreham
67408cf8f9 More tracing on mapEndpoints 2021-04-22 10:54:25 +00:00
Bryan Boreham
dc14bd04df Exit joinResults.result() if context cancelled
These can be long-running operations, and if the client retries we get
the cancelled one running in parallel with the retry, slowing both down
and making it likely the next one will time out too.
2021-04-22 10:53:06 +00:00
Bryan Boreham
8316a201f0 Merge pull request #3848 from weaveworks/cancel-map-render
Break out of Map.Render loop if context cancelled
2021-04-22 10:18:15 +01:00
Bryan Boreham
947b4cc9c8 Break out of Map.Render loop if context cancelled
These can be long-running operations, and if the client retries we get
the cancelled one running in parallel with the retry, slowing both down
and making it likely the next one will time out too.
2021-04-22 09:03:05 +00:00
Bryan Boreham
43dabb97e0 Merge pull request #3846 from weaveworks/query-collectors
Multitenant mode: fetch live data from collectors
2021-04-20 14:42:44 +01:00
Bryan Boreham
ced99f5008 multitenant: serialise report to buffer before sending
Seems to be faster
2021-04-18 19:25:13 +00:00
Bryan Boreham
5856f372db multitenant: resolve collectors less frequently
DNS records don't change that fast
2021-04-18 19:25:13 +00:00
Bryan Boreham
9b62023266 Do REST calls from to collectors in parallel 2021-04-18 19:25:13 +00:00
Bryan Boreham
99582ba835 Implement HasReports for live data from collectors 2021-04-18 19:25:13 +00:00
Bryan Boreham
055ca53241 refactor: extract fn to check whether collector or querier 2021-04-18 19:25:13 +00:00
Bryan Boreham
bea8db3683 Log/trace data size before decoding report
This lets us see when the reading finished and decoding started
2021-04-18 19:25:13 +00:00
Bryan Boreham
5032cca5c0 Multitenant mode: fetch live data from collectors
Collectors hold recent reports in memory.
When querier needs 'live' data, fetch it from collectors instead
of from the long-term store.

Send reports from collector to querier in msgpack; disable compression
on REST call, otherwise Go silently decompresses, which takes longer.
2021-04-18 19:25:13 +00:00
Bryan Boreham
667daef81b Refactor: extract function reportsFromStore()
To help clarify subsequent changes
2021-04-18 19:01:44 +00:00
Bryan Boreham
5d12b7ff65 Refactor: extract multitenant collection of 'live' reports
To help clarify subsequent changes
2021-04-18 19:01:44 +00:00
Bryan Boreham
b9c8cf6998 Add flag for querier to talk to collectors 2021-04-18 19:01:44 +00:00
Bryan Boreham
1eb57c2e40 Multitenant collector now always saves async
Removed support for saving all reports immediately
2021-04-18 18:59:12 +00:00
Bryan Boreham
082ab61946 Merge pull request #3844 from dholbach/security-updates
update dependencies
2021-04-14 15:08:46 +01:00
Daniel Holbach
e4c4b2b52f update dependencies
update y18n, elliptic, ini, args-parser
	run "yarn-deduplicate"
2021-04-12 10:40:38 +02:00
Bryan Boreham
053afd5689 Merge pull request #3843 from weaveworks/release-1.13
Release 1.13.2
2021-04-09 11:15:32 +01:00
Bryan Boreham
0e1d3f84d9 Release 1.13.2 v1.13.2 2021-04-09 09:46:09 +00:00
Bryan Boreham
189789ecb2 Skip rebuilding UI assets in deploy step 2021-04-07 10:37:54 +00:00
Bryan Boreham
f0b4094a6b Merge pull request #3841 from weaveworks/aws-cli-docker
Run AWS CLI from a container image
2021-04-07 11:15:03 +01:00
Bryan Boreham
85770038a2 Run AWS CLI from a container image
So we don't have to install it, or Python.
Need to run in 'machine' executor on CircleCI so we can mount
volumes into the Docker command.
2021-04-07 10:12:45 +00:00
Bryan Boreham
2b9a7a0ce7 Add missing vendor'd files 2021-04-07 09:28:35 +00:00
Bryan Boreham
02ba646a6e Merge pull request #3833 from weaveworks/build-updates
Update build tools including Go 1.16.2
2021-04-06 14:37:17 +01:00
Bryan Boreham
f405eee0f7 Update go.mod directive to 1.16
See docs at https://golang.org/ref/mod#go-mod-file-go

The expected benefit from making this change is that the vendor
directory will be used automatically, including tests.
2021-04-06 10:26:21 +00:00
Bryan Boreham
1da160f671 Update Weave Net dependency to 2.8.1
2.1.3 is very old, and seems to be failing the build
2021-04-04 14:14:11 +01:00
Bryan Boreham
f41b90a7d8 Clean up 'import' ordering 2021-04-04 13:47:27 +01:00
Bryan Boreham
71c16505f1 Ran 'go mod tidy' 2021-04-04 13:47:20 +01:00
Bryan Boreham
2cf48f2bdd Don't call Fatal() on background thread in test
It doesn't fail the test
2021-04-04 13:46:58 +01:00
Bryan Boreham
2ddcd9c067 Add quotes required by shellcheck 2021-04-04 13:45:05 +01:00
Bryan Boreham
28319e3f49 Use build image from this branch in CI 2021-04-04 13:45:05 +01:00
Bryan Boreham
1cd32cd3ac Add 'osusergo' tag
Avoids warnings like "Using 'getgrouplist' in statically linked
applications requires at runtime the shared libraries from the glibc
version used for linking"
2021-04-04 13:45:05 +01:00
Bryan Boreham
ca9e28e730 Update GOSHOUT package used in example 2021-04-04 13:45:05 +01:00
Bryan Boreham
b321f1c1e3 Simplify Go cross-compile settings
We only want to force CGO_ENABLED when cross-compiling for arm;
it is on by default for native linux compilation and off by default
for darwin cross-compilation.
2021-04-04 13:45:05 +01:00
Bryan Boreham
0d0ccd989b Remove 'demo.json' file, not used in Scope 2021-04-04 13:45:05 +01:00
Bryan Boreham
825a278ea5 Move codecgen exe inside build_in_container
It calls 'go', which may not be present outside the build container
2021-04-04 13:45:05 +01:00
Bryan Boreham
3c4adb6ed8 Remove unused 'deps' tools
gvt replaced by Go modules; github-release not used in CI
2021-04-04 13:45:05 +01:00
Bryan Boreham
da81514209 Update Go compiler to 1.16.2 2021-04-04 13:45:05 +01:00
Bryan Boreham
c2578b6fb7 Move 'esc' tool out of image into vendor'd source
Smaller that way, and more consistent

(Note we run it with GC enabled; it crashes in CI otherwise)
2021-04-04 13:45:05 +01:00
Bryan Boreham
c1514219e8 exclude more from lint 2021-04-04 13:45:05 +01:00
Bryan Boreham
a2a63f8660 Stop installing Python in build container
Scope itself doesn't have any Python code.

Disable Python test scheduler in CI
 - we set parallelism=1 so no point scheduling
2021-04-04 11:16:13 +01:00
Bryan Boreham
29b954d0cb Stop creating a NodeJS build image
All it does is set some environment variables so just set those on the command-line
2021-04-04 11:16:13 +01:00
Bryan Boreham
440892516f Set HOME for build containers
Otherwise it's blank on Apple M1 platform (at least) and builds fail

Now we have to git-ignore .yarnrc file, which is created in the HOME dir.
2021-04-04 11:16:13 +01:00
Bryan Boreham
894f35e52a Mount Go build cache from host
This speeds up subsequent compilations
2021-04-04 11:16:13 +01:00