go-pulse/cmd
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
..
abigen cmd: prefer nil slices over zero-length slices (#19077) 2019-02-15 01:02:11 +02:00
bootnode cmd/bootnode: print node URL on startup (#18516) 2019-01-25 12:39:52 +01:00
clef eth, node: use APPDATA env to support cygwin/msys correctly (#17786) 2019-02-19 12:15:15 +01:00
ethkey cmd/ethkey: fix the README to match updated commands (#17332) 2018-09-04 13:45:27 +02:00
evm cmd/evm: Add --vm.evm flag to support EVMC (#18457) 2019-01-16 11:43:41 +01:00
faucet cmd, node, p2p/simulations: fix node account manager leak (#19004) 2019-02-07 12:40:36 +02:00
geth les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
internal/browser cmd/geth: added 'geth bug' command (#3684) 2017-02-20 15:26:21 +02:00
p2psim all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
puppeth cmd/puppeth: handle pre-set Petersburg number, save changed fork rules 2019-02-06 14:34:08 +02:00
rlpdump cmd/rlpdump: allow hex input to have leading '0x' 2017-10-27 09:40:52 +01:00
swarm cmd,swarm: enforce camel case variable names (#19060) 2019-02-24 12:39:23 +01:00
utils les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
wnode all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00