IPFS.

Допис

Діліться своїми знаннями.

IPFS moderator.
Mar 19, 2024
Питання та відповіді експертів

Inconsistencies in Kubo DAG Retrieval Time

When using Kubo code for DAG retrieval, I've noticed significant variations in retrieval times, ranging from 2 seconds to a minute for different files. Any insights on what might be causing this discrepancy and how to perform a more in-depth analysis? Are there specific tools or methods to trace and identify the root cause?

  • Kubo
0
1
Поділитися
Коментарі
.

Відповіді

1
IPFS moderator.
Mar 19 2024, 15:07

You can use tracing code to dig deeper. Start Jaeger with:

docker run -d --name jaeger -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 14269:14269 -p 14250:14250 -p 9411:9411 jaegertracing/all-in-one

Initiate tracing and IPFS daemon with:

export OTEL_TRACES_EXPORTER=jaeger
ipfs daemon

In another shell, execute the following commands:

export OTEL_TRACES_EXPORTER=jaeger
ipfs dag get Qmfoo

Navigate to http://localhost:16686/, filter for cmds.dag.get in the Operation, and analyze the traces to identify potential bottlenecks or issues causing the time discrepancies.

0
Офіційна відповідь
Коментарі
.

Ви знаєте відповідь?

Будь ласка, увійдіть та поділіться нею.

The InterPlanetary File System (IPFS) is a protocol, hypermedia and file sharing peer-to-peer network for storing and sharing data in a distributed file system.

95Пости95Відповіді
Sui.X.Peera.

Зароби свою частку з 1000 Sui

Заробляй бали репутації та отримуй винагороди за допомогу в розвитку спільноти Sui.