Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manifoldfinance/venom-capacity
V.E.N.O.M Mempool example
https://github.com/manifoldfinance/venom-capacity
eth2 ethereum flashbots infrastructure infrastructure-services mempool nix openmev validator venom
Last synced: 2 months ago
JSON representation
V.E.N.O.M Mempool example
- Host: GitHub
- URL: https://github.com/manifoldfinance/venom-capacity
- Owner: manifoldfinance
- License: other
- Created: 2022-10-10T00:45:29.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-31T12:23:22.000Z (about 2 years ago)
- Last Synced: 2024-10-15T13:21:33.619Z (2 months ago)
- Topics: eth2, ethereum, flashbots, infrastructure, infrastructure-services, mempool, nix, openmev, validator, venom
- Language: Go
- Homepage:
- Size: 83 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# VENOM: Mempool Capacity
$X(N)=\frac{\lambda N}{1+\sigma(N-1)+\kappa N(N-1)}$
## Equation
$X(N)=(lambda N)/(1+sigma(N-1)+kappa N(N-1))$
| **Measure** | **Description** | **Example** |
|------------- |-------------------------------------------------- |------------------------- |
| N | is a number of nodes | |
| X(N) | is throughput of the system of N nodes | 100 requests per second |
| λ | is a throughput of the system with one node X(1) | |
| σ | a coefficient of contention | σ=0.05 (5%) |
| κ | a coefficient of crosstalk | κ=0.02 (2%) |## Usage
Start the entire process by executing our script entrypoint via `run.sh`
```bash
./run.sh
```## Monitor
```bash
./list.sh
```### Grafana
usr: admin
paswd: admin
[http://localhost:3000/d/__zqZa-Zz/rpc-capacity-manager?orgId=1&refresh=5s](http://localhost:3000/d/__zqZa-Zz/rpc-capacity-manager?orgId=1&refresh=5s)
### Prometheus
[http://localhost:9090/](http://localhost:9090/)
### Naive Adaptive
```bash
ORIGIN_WORKTIME=2s CLIENT_ORIGIN=http://proxy:7000 PROXY_ADAPTIVE=true docker-compose up
```#### Results
client sends 5 requests per second and receives between 2.4 rps and 2.7 rps (HTTP 200)
proxy oscillates between 4 and 6 in-flight requests
origin processes between 2.7 and 3 requests per second
origin has served requests with average latency 2.2 seconds
origin has served 50% of requests (50th percentile) within 2 seconds
origin has served 99% of requests (99th percentile) within 3 seconds with periodic spikes## License
Licensed under either of* Universal Permissive License 1.0
([LICENSE-UPL](LICENSE-UPL) or https://opensource.org/licenses/UPL)* Apache License, Version 2.0
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
at your option.### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Universal Permissive License v 1.0
license, shall be dual licensed as above, without any additional terms or conditions.