Open Web3Slimchance opened 1 year ago
Zoom link: https://us06web.zoom.us/j/86758885752
GraphQL query cost modeling and automation
Indexer service serves a cost model to the gateway
query {
swaps(first: $first) {
id
transaction
}
} => 0.042 + ..... (more cost info goes here)
default => 0.00001;
https://github.com/semiotic-ai/autoagora
An Agora cost model automation tool for The Graph indexers:
AutoAgora will continously:
Dependencies
For AutoAgora to function correctly, you will also need to set up:
Build
docker build -t autoagora .
https://github.com/semiotic-ai/autoagora-indexer-service
A wrapper around the indexer-service that captures and filters its logs.
The point of this is to capture "query timing" logs from the indexer-service and send them to the AutoAgora Processor through RabbitMQ. All the other logs are sent back to stdout.
Works only with indexer-service v0.20.1+, which generates the logs that are needed for AutoAgora (see https://github.com/graphprotocol/indexer/pull/428).
Build
docker build --build-arg "INDEXER_SERVICE_TAG=v0.20.3" -t autoagora-indexer-service:v0.1.2-0.20.3 .
https://github.com/semiotic-ai/autoagora-processor
Processes raw indexer-service logs from a RabbitMQ queue, saves the results to a PostgreSQL database.
The processing:
Build
docker build -t autoagora-processor .