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

Swagger: scylla-manager, move towards just restored bytes #4214

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

Michal-Leszczynski
Copy link
Collaborator

In overall/keyspace/table progress we were reporting both downloaded and restored bytes. There are two problems with it:

  1. Users does not really care for the distinction between downloaded and restored bytes - they just want to know the amount of bytes that have been successfully restored.

  2. With new native Scylla API restore, we no longer separate restoration into download/load&stream stages.

That's why we should move towards reporting just the amount of successfully restored bytes, and not keep on adding another fields to our API for each new type of restore.

This commit:

  • Adds restored_bytes/duration to host progress, since it was lacking there. It does not deprecate the downloaded/streamed fields because they were just added in the previous minor release, so that would be confusing. Instead, for now we allow for host progress to contain detailed operation bandwidth information.
  • Deprecates downloaded bytes in overall/keyspace/table progress, as we want to move towards observing just the restored bytes.

A general note is that we should use metrics for monitoring performance, not the sctool progress cmd, but since we already started going in this direction, we need to support it.

In overall/keyspace/table progress we were reporting both
downloaded and restored bytes. There are two problems with it:

1. Users does not really care for the distinction between
downloaded and restored bytes - they just want to know the
amount of bytes that have been successfully restored.

2. With new native Scylla API restore, we no longer separate
restoration into download/load&stream stages.

That's why we should move towards reporting just the amount
of successfully restored bytes, and not keep on adding another
fields to our API for each new type of restore.

This commit:
- Adds restored_bytes/duration to host progress, since it was
lacking there. It does not deprecate the downloaded/streamed
fields because they were just added in the previous minor release,
so that would be confusing. Instead, for now we allow for host
progress to contain detailed operation bandwidth information.
- Deprecates downloaded bytes in overall/keyspace/table progress,
as we want to move towards observing just the restored bytes.

A general note is that we should use metrics for monitoring
performance, not the sctool progress cmd, but since we already
started going in this direction, we need to support it.
@Michal-Leszczynski Michal-Leszczynski marked this pull request as ready for review January 17, 2025 13:10
Copy link
Collaborator

@karol-kokoszka karol-kokoszka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you want to deprecate some of the fields ?
Why not to introduce new fields (you actually did it) handling progress of the restore with Scylla API only ?

downloaded properties cannot be deprecated yet. (even though the deprecation here is just a description).
Would be worth to extend the description of "restored_bytes" and "restore_duration" with an information that it's part of the restore handled by with ScyllaAPI.

@Michal-Leszczynski Michal-Leszczynski merged commit e112747 into master Jan 22, 2025
51 checks passed
@Michal-Leszczynski Michal-Leszczynski deleted the ml/scylla-restore-swagger branch January 22, 2025 14:23
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