op-geth/les
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
..
flowcontrol les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
api.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01: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 les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
backend.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
benchmark.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
commons.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
costtracker.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
distributor.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
distributor_test.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
execqueue.go les: fix goroutine leak in execQueue (#14480) 2017-05-16 20:56:02 +02:00
execqueue_test.go les: fix goroutine leak in execQueue (#14480) 2017-05-16 20:56:02 +02:00
fetcher.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
fetcher_test.go les: remove redundant type specifiers (#19091) 2019-02-25 12:49:49 +02:00
freeclient.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
freeclient_test.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
handler.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
handler_test.go core: remove unnecessary fields in logs, receipts and tx lookups (#17106) 2019-02-21 15:14:35 +02:00
helper_test.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
metrics.go metrics: pull library and introduce ResettingTimer and InfluxDB reporter (#15910) 2018-02-23 11:56:08 +02:00
odr.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
odr_requests.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
odr_test.go les: limit state ODR retrievals to the last 100 blocks (#17744) 2018-10-01 15:14:53 +02:00
peer.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
peer_test.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
protocol.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
randselect.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
randselect_test.go all: gofmt -w -s 2017-01-06 15:52:03 +01:00
request_test.go les: limit state ODR retrievals to the last 100 blocks (#17744) 2018-10-01 15:14:53 +02:00
retrieve.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
server.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
serverpool.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
servingqueue.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
sync.go core/rawdb: separate raw database access to own package (#16666) 2018-05-07 14:35:06 +03:00
txrelay.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
ulc.go les: implement ultralight client (#16904) 2019-01-24 12:18:26 +01:00
ulc_test.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00