go-pulse/eth
Felföldi Zsolt c2003ed63b les, les/flowcontrol: improved request serving and flow control (#18230)
This change

- implements concurrent LES request serving even for a single peer.
- replaces the request cost estimation method with a cost table based on
  benchmarks which gives much more consistent results. Until now the
  allowed number of light peers was just a guess which probably contributed
  a lot to the fluctuating quality of available service. Everything related
  to request cost is implemented in a single object, the 'cost tracker'. It
  uses a fixed cost table with a global 'correction factor'. Benchmark code
  is included and can be run at any time to adapt costs to low-level
  implementation changes.
- reimplements flowcontrol.ClientManager in a cleaner and more efficient
  way, with added capabilities: There is now control over bandwidth, which
  allows using the flow control parameters for client prioritization.
  Target utilization over 100 percent is now supported to model concurrent
  request processing. Total serving bandwidth is reduced during block
  processing to prevent database contention.
- implements an RPC API for the LES servers allowing server operators to
  assign priority bandwidth to certain clients and change prioritized
  status even while the client is connected. The new API is meant for
  cases where server operators charge for LES using an off-protocol mechanism.
- adds a unit test for the new client manager.
- adds an end-to-end test using the network simulator that tests bandwidth
  control functions through the new API.
2019-02-26 12:32:48 +01:00
..
downloader eth: remove redundant parentheses (#19108) 2019-02-18 17:42:22 +02:00
fetcher eth/fetcher: blockFilter is not used anymore (#17971) 2019-01-26 14:32:46 +01:00
filters eth/filters: fix the block range assignment for log filter (#17284) 2018-07-31 12:10:38 +03:00
gasprice cmd, core, eth, miner, params: configurable gas floor and ceil 2018-08-29 12:40:12 +03:00
tracers eth/tracers: enforce camel case variable names (#19057) 2019-02-14 16:38:55 +02:00
api_backend.go core, internal, eth, miner, les: Take VM config from BlockChain (#17955) 2018-12-06 14:34:49 +01:00
api_test.go all: get rid of error when creating memory database (#16716) 2018-05-09 15:24:25 +03:00
api_tracer.go eth: extract check for tracing transaction in block file (#19107) 2019-02-19 19:49:24 +02:00
api.go cmd, core, eth, light, trie: add trie read caching layer 2018-11-15 12:22:13 +02:00
backend.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
bloombits.go all: make indexer configurable (#17188) 2018-08-28 10:08:16 +03:00
config.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
gen_config.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
handler_test.go cmd, eth: Add support for --whitelist <blocknum>=<hash>,... flag 2018-12-10 14:30:06 +02:00
handler.go cmd/utils, eth: minor polishes on whitelist code 2018-12-10 14:47:01 +02:00
helper_test.go cmd, eth: Add support for --whitelist <blocknum>=<hash>,... flag 2018-12-10 14:30:06 +02:00
metrics.go metrics: pull library and introduce ResettingTimer and InfluxDB reporter (#15910) 2018-02-23 11:56:08 +02:00
peer.go all: switch out defunct set library to different one (#16873) 2018-07-16 10:54:19 +03:00
protocol_test.go core, eth: minor txpool event cleanups 2018-05-18 12:08:24 +03:00
protocol.go eth: fixed the minor typo inside the comments (#17830) 2018-10-04 12:35:24 +03:00
sync_test.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
sync.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
ulc_config.go les: implement ultralight client (#16904) 2019-01-24 12:18:26 +01:00