Jimmy Zelinskie
c41519e73f
storage: sync memory & memorybysubnet
...
This change is a manual merge of all of the optimizations that have been
added to the memory peer store into the memorybysubnet peer store.
This also fixes some inconsistencies between the two.
2017-06-04 16:42:32 -04:00
Jimmy Zelinskie
7786e1a915
storage: enforce all peer stores are loggable
2017-06-04 16:06:01 -04:00
Jimmy Zelinskie
ed69a0893e
docs/storage: add memorybysubnet
2017-06-04 16:06:01 -04:00
Jimmy Zelinskie
85d7d9c677
storage/memorybysubnet: bench with masks
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
c37311e8c7
cmd/chihaya: register storage drivers
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
acf7e3c749
storage: register unique Prometheus metrics names
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
039f25f571
storage/memorybysubnet: add peerSubnet type
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
b013106f89
storage/memorybysubnet: delete empty subnet buckets
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
cb6a3be2ac
storage/memorybysubnet: s/mask/preferredSubnet
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
d07b61d67d
storage/memorybysubnet: replace range with len()
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
370004a9f5
storage/memorybysubnet: clarify subnet bits _set_
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
9ce6c31021
storage/memorysubnet: allocate CIDRMask only once
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
496cc1a31d
storage: dynamically register drivers
2017-06-03 15:47:58 -04:00
Jimmy Zelinskie
6fc3f618aa
storage/memorybysubnet: add package docs
2017-06-03 15:45:41 -04:00
Jimmy Zelinskie
bd02be6ab5
storage/memorybysubnet: fix TODOs
2017-06-03 15:45:41 -04:00
Jimmy Zelinskie
7f7c79bdf1
storage/memorybysubnet: init
2017-06-03 15:45:41 -04:00
mrd0ll4r
abccf5bd7e
Merge pull request #325 from cedricgc/peer-store-config
...
storage/memory: set default prometheus_reporting_interval
2017-06-03 21:29:11 +02:00
Cedric Charly
ce6706b0d5
storage/memory: set default prometheus_reporting_interval
...
When left blank in the config, the default prometheus_reporting_interval value
defaulted to 0, causing a panic during peer store initialization. This
change sets the default value to 1 if not provided.
Fixes #319
2017-06-03 14:21:39 -05:00
mrd0ll4r
d3de59bab0
Merge pull request #322 from mrd0ll4r/prom-config
...
dist/prometheus: add prometheus config and rules
2017-06-03 20:08:28 +02:00
Leo Balduf
7c4f8cf395
dist/helm: move from contrib/helm
2017-06-03 14:14:37 +02:00
Jimmy Zelinskie
ceacd6bdbd
Merge pull request #323 from cedricgc/hook-logging
...
cmd/chihaya: log hook names on startup
2017-06-02 21:12:58 -07:00
Cedric Charly
86197a258c
cmd/chihaya: log hook names on startup
...
Replace logging memory addresses with actual hook names.
Closes #317
2017-06-02 20:56:29 -05:00
Leo Balduf
7fabf4ba61
dist/prometheus: add prometheus config and rules
2017-06-02 19:33:05 +02:00
mrd0ll4r
634bc6b706
Merge pull request #306 from mrd0ll4r/storage-stats
...
storage: add prometheus metrics for seeders/leechers
2017-05-29 19:11:07 +02:00
Leo Balduf
a70d6dc036
memory: add metrics for peers
2017-05-29 19:04:40 +02:00
mrd0ll4r
1cc0738cbe
Merge pull request #316 from mrd0ll4r/remove-time-now
...
Remove most calls to time.Now
2017-05-17 21:17:49 +02:00
Leo Balduf
143ba54695
storage/memory: remove calls to time.Now()
2017-05-12 20:27:31 +02:00
Leo Balduf
f61e7a9281
frontend: make request timing optional
2017-05-12 20:27:31 +02:00
mrd0ll4r
48abc6048e
Merge pull request #315 from mrd0ll4r/fix-config
...
storage/config: fix example config, add warning for missing shardCount
2017-05-12 20:23:22 +02:00
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