-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from PowerLoom/feat/epoch_size_1
Enhanced Pooler Efficiency for Smaller Epoch Sizes
- Loading branch information
Showing
28 changed files
with
727 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,25 +8,25 @@ readme = "README.md" | |
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
redis = "^4.4.0" | ||
redis = "^4.6.0" | ||
timeago = "^1.0.16" | ||
typer = "^0.7.0" | ||
psutil = "^5.9.4" | ||
psutil = "^5.9.5" | ||
importlib = "^1.0.4" | ||
pika = "^1.3.1" | ||
pika = "^1.3.2" | ||
gunicorn = "^20.1.0" | ||
aiohttp = "^3.8.3" | ||
web3 = "^5.31.3" | ||
aiohttp = "^3.8.5" | ||
web3 = "^5.31.4" | ||
async-limits = {git = "https://github.com/powerloom/limits.git"} | ||
tenacity = "^8.1.0" | ||
tenacity = "^8.2.2" | ||
limits = "^2.8.0" | ||
uvicorn = "^0.20.0" | ||
frozendict = "^2.3.4" | ||
frozendict = "^2.3.8" | ||
multiaddr = "^0.0.9" | ||
idna = "^3.4" | ||
uvloop = "^0.17.0" | ||
loguru = "^0.7.0" | ||
httpx = "^0.24.0" | ||
httpx = "^0.24.1" | ||
fastapi = "^0.95.1" | ||
ifps-client = {git = "https://[email protected]/PowerLoom/py-ipfs-client.git"} | ||
aiorwlock = "^1.3.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import aio_pika | ||
import pika | ||
|
||
from snapshotter.settings.config import settings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@startuml | ||
|
||
AggregateProcessor -> ProtocolStateContractorRedis : Get project first epoch | ||
|
||
alt calculating aggregate for the first time | ||
AggregateProcessor -> ProtocolStateContractorRedis : Get required base snapshots and calculate aggregate from scratch | ||
else calculating aggregate other than the first time | ||
AggregateProcessor -> ProtocolStateContractorRedis: Get last Finalized Aggregate Snapshot | ||
ProtocolStateContractorRedis -> AggregateProcessor: LastAggregateSnapshot | ||
alt if last Finalized Aggregate Snapshot is not found | ||
AggregateProcessor -> ProtocolStateContractorRedis : Get required base snapshots and calculate aggregate from scratch | ||
else last Finalized Aggregate Snapshot is found | ||
AggregateProcessor -> ProtocolStateContractorRedis : Get required (remaining) base snapshots | ||
LastAggregateSnapshot -> LastAggregateSnapshot: Calculate aggregate from last Finalized Aggregate Snapshot by adding all missing base snapshots | ||
end | ||
|
||
AggregateProcessor -> ProtocolStateContractorRedis: Fetch tail snapshots for corresponding added snapshots and mark for removal from Aggregate Snapshot | ||
|
||
LastAggregateSnapshot -> LastAggregateSnapshot: Remove marked tail snapshots from Aggregate Snapshot | ||
|
||
LastAggregateSnapshot -> AggregateProcessor: Finalized Aggregate Snapshot | ||
end | ||
@enduml |
Oops, something went wrong.