mrd0ll4r
7c666e336a
Merge pull request #352 from mrd0ll4r/subnet-benchconf
...
storage: update benchmark config
2017-08-30 08:30:55 +02:00
Leo Balduf
8ee8793867
storage: update benchmark config
2017-08-25 19:41:41 +02:00
mrd0ll4r
d026424038
Merge pull request #348 from mrd0ll4r/memorybench
...
storage: add PeerLifetime to test config
2017-08-18 12:52:58 +02:00
Leo Balduf
df7b59e2f3
storage: add PeerLifetime to test config
2017-08-17 23:35:20 +02:00
Jimmy Zelinskie
3799b856c2
Merge pull request #346 from jzelinskie/up-deps
...
glide: update dependencies
2017-07-05 15:48:52 -04:00
Jimmy Zelinskie
034aa0b5dc
glide: update dependencies
...
This change also moves the logrus library to the lowercase import in
order to avoid breaking downstream projects vendoring chihaya.
2017-07-03 18:57:13 -04:00
mrd0ll4r
2c67ad4dac
Merge pull request #340 from mrd0ll4r/logging
...
pkg/log: create wrapper around logrus
2017-07-01 23:31:51 +02:00
Jimmy Zelinskie
3f3f75519d
Merge pull request #345 from jzelinskie/README-fix
...
README: update build instructions
2017-07-01 17:11:15 -04:00
Jimmy Zelinskie
c5f8e5a9b0
README: update build instructions
...
Fixes #342 .
2017-07-01 15:16:24 -04:00
Jimmy Zelinskie
13c71b4ee1
Merge pull request #344 from chihaya/fix-shard-key
...
*: fix shard key name
2017-06-30 03:02:33 -04:00
Jimmy Zelinskie
80e9fce087
*: fix shard key name
2017-06-29 17:10:25 -04:00
Leo Balduf
8ed171b0ea
pkg/log: create wrapper around logrus
2017-06-26 20:46:40 +02:00
mrd0ll4r
153ad325b7
Merge pull request #343 from mrd0ll4r/storage-defaults
...
storage: update config defaults
2017-06-26 20:41:48 +02:00
Leo Balduf
1aa6c86d3f
storage: update config defaults
2017-06-25 19:04:24 +02:00
mrd0ll4r
d43cb719b9
Merge pull request #339 from mrd0ll4r/xorshift
...
pkg/xorshift: rebuild to use stack only
2017-06-19 19:48:00 +02:00
Leo Balduf
02336d10e7
pkg/xorshift: rebuild to use stack only
2017-06-19 09:45:26 +02:00
mrd0ll4r
7ea4b3dc7a
Merge pull request #338 from mrd0ll4r/fix-parsing
...
Fix and optimize query parsing, make parsing errors static
2017-06-19 09:03:48 +02:00
Leo Balduf
6e1cfa18d8
bittorrent: make invalid query escape errors static
2017-06-18 22:43:24 +02:00
Leo Balduf
2764717657
bittorrent: fix out-of-range panics for URL parsing
2017-06-18 22:43:21 +02:00
mrd0ll4r
2dcb4344cb
Merge pull request #336 from mrd0ll4r/xorshift
...
pkg/prand: replace with pkg/xorshift
2017-06-12 22:09:38 +02:00
Leo Balduf
03b98e0090
pkg/prand: replace with pkg/xorshift
2017-06-12 22:07:05 +02:00
Jimmy Zelinskie
fa6dcddcb6
Merge pull request #335 from jzelinskie/fix-jwt
...
middleware/jwt: encode infohashes as hex
2017-06-09 00:11:02 -04:00
mrd0ll4r
3a323d9338
Merge pull request #331 from cedricgc/tracker-logic-context
...
TrackerLogic returns modified Contexts
2017-06-08 17:39:04 +02:00
Jimmy Zelinskie
ad496fceb8
middleware/jwt: encode infohashes as hex
...
This avoids some corner-cases that can be experienced when trying to
url-escape raw bytes.
2017-06-07 23:07:07 -04:00
Cedric Charly
f7becf952b
frontend: TrackerLogic interface returns modified context
...
HandleAnnounce and HandleScrape must return the modified context changed
by the hooks. These contexts are passed to AfterAnnounce and AfterScrape
for further use.
Closes #304
2017-06-07 19:25:12 -05:00
Jimmy Zelinskie
3168f13b48
Merge pull request #332 from jzelinskie/jwt-escape-infohash
...
middleware/jwt: escape infohash when debugging
2017-06-06 14:23:26 -04:00
mrd0ll4r
6663c09391
Merge pull request #333 from mrd0ll4r/prom-rules
...
dist/prometheus: add rules for the storage
2017-06-06 19:58:33 +02:00
Jimmy Zelinskie
389dbd20dc
Merge pull request #330 from jzelinskie/helm-flags
...
dist/helm: default debug and json logs
2017-06-06 13:55:45 -04:00
Leo Balduf
53297853a6
dist/prometheus: add rules for the storage
2017-06-06 19:54:02 +02:00
Jimmy Zelinskie
035c5b4960
middleware/jwt: escape infohash when debugging
...
Without this, the log lines end up looking like:
request=��1�H�7L a���-��7
2017-06-06 13:22:14 -04:00
Jimmy Zelinskie
6c3ddaefb3
Merge pull request #329 from jzelinskie/debug-jwt
...
Fix panic on binary start
2017-06-06 12:18:20 -04:00
Jimmy Zelinskie
8dddae0658
dist/helm: sync configs
2017-06-06 12:16:47 -04:00
Jimmy Zelinskie
233b5b52ec
dist/helm: default debug and json logs
2017-06-05 22:37:35 -04:00
Jimmy Zelinskie
0d9a2309fc
middleware/jwt: add debug logs for JWT failures
2017-06-05 22:09:34 -04:00
Jimmy Zelinskie
dab03f52dc
storage: share prometheus models
...
Running of the binary actually caused a panic due to multiple calling of
MustRegister(). This fixes that by sharing models in the storage
package.
2017-06-05 22:07:13 -04:00
Jimmy Zelinskie
edef032381
Merge pull request #301 from jzelinskie/memorybysubnet
...
Storage Drivers (starting w/ subnet memory)
2017-06-04 13:47:55 -07:00
Jimmy Zelinskie
ce3281f3e8
example_config.yaml: fix identation from merge
2017-06-04 16:42:32 -04:00
Jimmy Zelinskie
effb05103a
cmd/chihaya: remove extra registration of storages
2017-06-04 16:42:32 -04:00
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