Hello everyone I did follow this guide to run GraphQL with docker-compose: https://github.com/input-output-hk/cardano-graphql
However, inputoutput/cardano-db-sync:12.0.0 is syncing super slow
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ad0aea43554e inputoutput/cardano-db-sync:12.0.0 "/nix/store/5ghw8rqx…" 28 hours ago Up 28 hours cardano-graphql_cardano-db-sync-extended_1
23ebbe6aeed1 inputoutput/cardano-graphql-hasura:6.2.0 "docker-entrypoint.s…" 5 days ago Up 5 days 0.0.0.0:8090->8080/tcp, :::8090->8080/tcp cardano-graphql_hasura_1
fb2d31b115f3 postgres:11.5-alpine "docker-entrypoint.s…" 5 days ago Up 5 days 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp cardano-graphql_postgres_1
537147f0d16a inputoutput/cardano-graphql:6.2.0-mainnet "node index.js" 5 days ago Up 28 hours 0.0.0.0:3100->3100/tcp, :::3100->3100/tcp cardano-graphql_cardano-graphql_1
7c47cba2732c cardanosolutions/cardano-node-ogmios:v5.1.0-mainnet "/root/cardano-node-…" 5 days ago Up 5 days (healthy) 3000/tcp, 12788/tcp, 0.0.0.0:1337->1337/tcp, :::1337->1337/tcp, 12798/tcp cardano-graphql_cardano-node-ogmios_1
I did check the CPU and Memory usage CPUs are at 30% usage and RAM is 27.7/32GB.
After 28 hours it's still at 36.65% and gets slower (it was going faster at the beginning).
{
"data": {
"cardanoDbMeta": {
"initialized": false,
"syncPercentage": 36.65
}
}
}
This is how I start docker I was getting errors so removed RESTORE_SNAPSHOT parameter to retrieve it from the genesis. (I don't know whether the problem is related with it or not).
export NETWORK=mainnet &&\
docker pull inputoutput/cardano-graphql:6.2.0-${NETWORK} &&\
docker pull inputoutput/cardano-graphql-hasura:6.2.0 &&\
docker pull cardanosolutions/cardano-node-ogmios:v5.1.0-${NETWORK} &&\
docker-compose up -d &&\
docker-compose logs -f