Commit graph

954 commits

Author SHA1 Message Date
Leo Balduf
71eb9fb767 storage/config: fix example config, add warning for missing shardCount 2017-05-12 13:16:39 +02:00
Jimmy Zelinskie
a4aeba7ecc Merge pull request #314 from jzelinskie/post-cpu
cmd/chihaya: move cpuprofile into postrun
2017-05-08 14:08:29 -04:00
Jimmy Zelinskie
d026a3359c cmd/chihaya: move cpuprofile into postrun
This also updates PreRuns to return their errors.
2017-05-07 18:52:17 -04:00
Jimmy Zelinskie
869777c6d0 Merge pull request #313 from jzelinskie/debug-logging
middleware: add structured logging to logic
2017-05-07 14:18:27 -04:00
Jimmy Zelinskie
1daee323a3 cmd/chihaya: add --json flag
This flag enables logging as JSON.
2017-05-07 04:38:31 -04:00
Jimmy Zelinskie
cb55019ab8 *: add structured logging 2017-05-07 04:30:22 -04:00
Jimmy Zelinskie
353ba01e51 Merge pull request #310 from jzelinskie/fix-restart
Refactor root run command
2017-05-03 13:42:27 -04:00
Jimmy Zelinskie
7b1e7e8c99 cmd/chihaya: s/chihayaCfg/cfg 2017-05-02 11:03:49 -04:00
Jimmy Zelinskie
23e9719073 cmd/chihaya: refactor out combination of errors 2017-05-01 15:57:01 -04:00
Jimmy Zelinskie
68cbe0fc21 cmd/chihaya: persist PeerStore across reloads 2017-05-01 15:56:38 -04:00
Jimmy Zelinskie
ea0dba3a3d cmd/chihaya: refactor root run command
This change refactors a bunch of the state of execution into its own
object. It also attempts to simplify stopping and adjusts some other
packages to integrate with the stopper interface.

Fixes #309.
2017-05-01 15:56:38 -04:00
Jimmy Zelinskie
20d1cbf537 pkg/prometheus: init 2017-05-01 15:56:16 -04:00
Jimmy Zelinskie
842bec32e7 cmd/chihaya: move enabling debug
PersistentPreRun is the more idiomatic place for this code to run when
using spf13/cobra.
2017-04-29 22:51:54 -04:00
Jimmy Zelinskie
00ab4acc98 Merge pull request #308 from TheOriginalWinCat/upstream
Make numwant in http request optional
2017-04-21 15:15:10 -04:00
tom
cdb0ff3612 http: make numWant optional
The default numwant value should be used if either numwant is zero or omitted from the announce request.
2017-04-21 13:17:58 +01:00
mrd0ll4r
9f45950dd0 Merge pull request #307 from mrd0ll4r/fixHttpShutdown
http: fix HTTP shutdown panicking
2017-04-05 09:08:09 +02:00
Leo Balduf
2e625af44d http: fix HTTP shutdown panicking 2017-04-04 22:34:53 +02:00
mrd0ll4r
ea1324602e Merge pull request #299 from mrd0ll4r/bump1.8
http: use go1.8 graceful shutdown
2017-02-18 21:04:33 +01:00
mrd0ll4r
1ef65d3704 Merge pull request #300 from mrd0ll4r/udpReadDeadline
udp: remove read deadline
2017-02-18 21:04:18 +01:00
Leo Balduf
233c355526 udp: remove read deadline 2017-02-18 13:17:45 +01:00
Leo Balduf
300b9c12ab http: use go1.8 graceful shutdown 2017-02-18 13:08:12 +01:00
Jimmy Zelinskie
bb93e478b8 Merge pull request #295 from jzelinskie/prom-errs
frontend/*: only record ClientErrors to Prometheus
2017-02-17 11:54:41 -05:00
Jimmy Zelinskie
f0eca4c3f7 Merge pull request #297 from jzelinskie/rmdoc
docs: remove deniability middleware
2017-02-16 15:13:17 -05:00
Jimmy Zelinskie
13882ae05d docs: remove deniability middleware 2017-02-16 01:04:17 -05:00
Jimmy Zelinskie
215f33d862 frontend/*: only record ClientErrors to Prometheus
All ClientErrors are constant and should not cause Prometheus streams to
be generated for all possible failure scenarios in the program.

Fixes #294.
2017-02-16 01:01:38 -05:00
Jimmy Zelinskie
b028a36424 Merge pull request #296 from jzelinskie/require-all
Replace last usage of assert with require
2017-02-15 14:05:50 -05:00
Jimmy Zelinskie
03080b39b4 glide: bump + track minor versions 2017-02-15 00:59:03 -05:00
Jimmy Zelinskie
517fb4044e tests: replace last usage of assert with require
Fixes #239.
2017-02-15 00:58:52 -05:00
mrd0ll4r
82d79e5113 Merge pull request #292 from mrd0ll4r/frontend-fix
frontend: fix recording of address family
2017-02-05 23:14:01 +01:00
mrd0ll4r
9db2d3dabb Merge pull request #290 from mrd0ll4r/parse-clienterror
bittorrent: make ParseURLData return ClientErrors
2017-02-05 23:13:49 +01:00
Leo Balduf
fdf4ed8169 frontend: fix recording of address family 2017-02-05 17:24:53 +01:00
Leo Balduf
98299c5912 bittorrent: make ParseURLData return ClientErrors 2017-02-05 13:22:14 +01:00
Jimmy Zelinskie
74dde3f362 Merge pull request #284 from jzelinskie/promaf
prometheus: record IP AddressFamily
2017-02-03 11:45:56 -05:00
Jimmy Zelinskie
51926ad562 Merge pull request #288 from jzelinskie/stopmv
mv pkg/stopper pkg/stop
2017-02-03 11:45:40 -05:00
Jimmy Zelinskie
a4b08c021b mv pkg/stopper pkg/stop
This makes most of the callsites stutter slightly less.
2017-02-02 21:09:25 -05:00
Jimmy Zelinskie
0e07b33827 prometheus: record IP AddressFamily 2017-02-02 19:19:33 -05:00
Jimmy Zelinskie
4d54980930 Merge pull request #287 from jzelinskie/scrapelimit
middleware: sanitize max scrape infohashes
2017-02-02 03:42:27 -05:00
Jimmy Zelinskie
3f29aa358b middleware: sanitize max scrape infohashes
Fixes #268.
2017-02-02 02:32:35 -05:00
Jimmy Zelinskie
fb30e9fb03 Merge pull request #286 from jzelinskie/https
frontend/http: add TLS support
2017-02-02 02:20:45 -05:00
Jimmy Zelinskie
6884a8f527 frontend/http: add TLS support
Fixes #283.
2017-02-02 02:01:51 -05:00
Jimmy Zelinskie
738e496929 Merge pull request #285 from chihaya/helm-head
contrib/helm: default to using HEAD container
2017-02-01 10:37:13 -05:00
Jimmy Zelinskie
8bc2b09724 contrib/helm: default to using HEAD container
This fixes a bug where the config being used is for HEAD, but previously the container image being used was for a tagged release with a different config schema.
2017-01-31 21:40:36 -05:00
Jimmy Zelinskie
4aad0e992b Merge pull request #282 from mrd0ll4r/udp-scrapes
udp: fix ordering of scrapes
2017-01-31 20:17:01 -05:00
Jimmy Zelinskie
9cc31763d0 Merge pull request #259 from jzelinskie/helm
initial helm package
2017-01-31 20:14:37 -05:00
Jimmy Zelinskie
7aebb44852 contrib/helm: update config schema 2017-01-31 19:59:48 -05:00
Jimmy Zelinskie
f40cd33b12 *: bump default shards to 1024 2017-01-31 19:59:24 -05:00
Jimmy Zelinskie
6deebdd6d4 frontend/udp: generate private key when empty 2017-01-31 19:53:36 -05:00
Jimmy Zelinskie
a48b9a50c3 initial helm package 2017-01-31 19:53:36 -05:00
Jimmy Zelinskie
baef1c17c3 Merge pull request #281 from jzelinskie/installfix
README: update development section
2017-01-31 19:50:29 -05:00
Jimmy Zelinskie
831b908402 *: comment middleware for OOB working config 2017-01-31 19:37:26 -05:00