Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find out what's up with data transfers! #3162

Merged
merged 4 commits into from
Aug 19, 2020
Merged

Conversation

hannahhoward
Copy link
Contributor

Goals

This started as helping me understand what was happening with data transfers... and turned into something that I think will be super useful for all.

It adds lotus client list-transfers along with lotus client list-transfers --watch which allows you to watch data transfers in real time.

This is a screen shot as about 6 128MB pieces are sent over the wire...
acto2r

Implementation

In addition to the CLI, there are two new APIs:

  • ClientListDataTransfers which gets the current list of transfers

  • ClientDataTransferUpdates which returns a channel of updates to data transfers

  • also defines a data type api.DataTransferChannel which collects the most relevant information from the overall data transfer channel state and outputs to the channel

  • voucher output will improve with a future update to go-fil-markets so the storage and retrieval vouchers have string form

Note: not trying to force this into calibnet or space race, though it should be very non-breaking (just code adds). I'd really like to get in for mainnet though. In the meantime I can just cherry-pick a squashed commit but I imagine this will be very useful to many.

add command to monitor data transfers
cleanup output for data transfers.
Add an API to get data transfer updates and add modify the CLI to be an
ongoing monitoring plan
make watching data transfer CLI updates only an option
@magik6k magik6k merged commit 3ed3e4f into master Aug 19, 2020
@magik6k magik6k deleted the feat/data-transfer-status branch August 19, 2020 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants