Justin Li
d95120c817
Return []error from Stop() channel, allow recursive stop groups
2018-09-09 11:30:15 -04:00
Jimmy Zelinskie
84ee1d6658
storage/memorybysubnet: fix mispellings
2018-06-15 13:33:26 -04:00
Jimmy Zelinskie
3c052ec98d
storage/memory: multi-line call to New()
2018-06-15 13:33:26 -04:00
Jimmy Zelinskie
7dbbc86380
middleware: add a registration model
2017-12-29 16:55:48 -05:00
Leo Balduf
6198491194
storage: document PeerStore in more detail
2017-12-02 22:41:56 +01:00
Leo Balduf
89bc479a3b
*: make use of timecache
2017-10-15 20:05:39 +02:00
Leo Balduf
b5dda16706
storage: stop peer store after tests
2017-09-13 03:47:19 +02:00
mrd0ll4r
4f4495f0f3
Merge pull request #350 from mrd0ll4r/benchmark-scrapes
...
storage: add Benchmarks for ScrapeSwarm, optimize implementations
2017-08-30 19:34:55 +02:00
Leo Balduf
5400a99b75
storage: add Benchmarks for ScrapeSwarm, optimize implementations
2017-08-30 08:54:11 +02:00
Leo Balduf
8ee8793867
storage: update benchmark config
2017-08-25 19:41:41 +02:00
Leo Balduf
df7b59e2f3
storage: add PeerLifetime to test config
2017-08-17 23:35:20 +02:00
Leo Balduf
8ed171b0ea
pkg/log: create wrapper around logrus
2017-06-26 20:46:40 +02:00
Leo Balduf
1aa6c86d3f
storage: update config defaults
2017-06-25 19:04:24 +02: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
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
85d7d9c677
storage/memorybysubnet: bench with masks
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
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
Leo Balduf
a70d6dc036
memory: add metrics for peers
2017-05-29 19:04:40 +02:00
Leo Balduf
143ba54695
storage/memory: remove calls to time.Now()
2017-05-12 20:27:31 +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
cb55019ab8
*: add structured logging
2017-05-07 04:30:22 -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
74dde3f362
Merge pull request #284 from jzelinskie/promaf
...
prometheus: record IP AddressFamily
2017-02-03 11:45:56 -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
Leo Balduf
102b032c43
udp: fix ordering of scrapes
2017-01-30 13:07:14 +01:00
Leo Balduf
18d7e5d51b
storage: add prometheus to memory implementation
2017-01-25 18:59:10 +01:00
Leo Balduf
3c098c0703
middleware: add sanitization hook
2017-01-20 20:29:59 +01:00
Jimmy Zelinskie
e3e545e22e
stopper: move to pkg package
...
This also adds a package docs for the stopper package.
2016-12-11 21:36:01 -05:00
Leo Balduf
70ceb96313
storage: add TestPeerStore test
2016-11-27 21:43:22 +01:00
Leo Balduf
45a5e632ae
responseHook: always include the announcing peer
...
Fixes #231
Fixes #232
2016-09-29 18:51:05 -04:00
Leo Balduf
97444f08a4
memory: add ScrapeSwarm method
2016-09-08 11:29:36 -04:00
Leo Balduf
b1576da355
storage: add ScrapeSwarm method
2016-09-08 11:28:23 -04:00
Leo Balduf
146fbedb86
general: add missing documentation
...
Fixes #46
2016-09-05 14:58:58 -04:00
Jimmy Zelinskie
fa32839623
replace std log w/ logrus
...
There still needs to be much more logged with the debug level.
2016-09-05 12:10:42 -04:00
Leo Balduf
62f2a095a1
memory: fix garbage collection, add config check
2016-08-17 17:15:54 -04:00
Jimmy Zelinskie
cc6614c474
rename back to chihaya
2016-08-16 22:17:10 -04:00
Jimmy Zelinskie
a553ded043
memory: add max numwant
2016-08-16 22:17:10 -04:00