Skip to content

Add information about the cache#246

Merged
folbricht merged 3 commits intofolbricht:masterfrom
RyuzakiKK:additional_info
Sep 23, 2023
Merged

Add information about the cache#246
folbricht merged 3 commits intofolbricht:masterfrom
RyuzakiKK:additional_info

Conversation

@RyuzakiKK
Copy link
Copy Markdown
Contributor

  • Add information about the cache

    When using desync info it might be useful to have additional
    information regarding your local cache.

    For example knowing the amount of chunks that can be picked up by your
    cache can be used as a metric to ensure the cache is actually working as
    expected.

    With this commit we add in-cache to print the number of chunks that
    the cache already has, not-in-seed-nor-cache with the number of chunks
    that needs to be downloaded from the store and finally
    dedup-size-not-in-seed-nor-cache with the size of the chunks that
    needs to be downloaded from the store.

  • Reduce code duplication in info_test

  • Add info test with cache and without a seed

When using `desync info` it might be useful to have additional
information regarding your local cache.

For example knowing the amount of chunks that can be picked up by your
cache can be used as a metric to ensure the cache is actually working as
expected.

With this commit we add `in-cache` to print the number of chunks that
the cache already has, `not-in-seed-nor-cache` with the number of chunks
that needs to be downloaded from the store and finally
`dedup-size-not-in-seed-nor-cache` with the size of the chunks that
needs to be downloaded from the store.

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
@folbricht
Copy link
Copy Markdown
Owner

Thank you

@folbricht folbricht merged commit 9969b7a into folbricht:master Sep 23, 2023
@RyuzakiKK RyuzakiKK deleted the additional_info branch September 25, 2023 08:17
JeremieA pushed a commit to InSimo/desync that referenced this pull request Apr 10, 2026
* Add information about the cache

When using `desync info` it might be useful to have additional
information regarding your local cache.

For example knowing the amount of chunks that can be picked up by your
cache can be used as a metric to ensure the cache is actually working as
expected.

With this commit we add `in-cache` to print the number of chunks that
the cache already has, `not-in-seed-nor-cache` with the number of chunks
that needs to be downloaded from the store and finally
`dedup-size-not-in-seed-nor-cache` with the size of the chunks that
needs to be downloaded from the store.

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>

* Reduce code duplication in info_test

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>

* Add info test with cache and without a seed

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>

---------

Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com>
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