Skip to content

Commit

Permalink
Set soft limit for content cache while connecting to server in kopia …
Browse files Browse the repository at this point in the history
…client options (#2449)

* set soft limit for content cache while connecting to server

Signed-off-by: Amruta Kale <amruta.kale@veeam.com>

* Update pkg/kopia/repository/client.go

---------

Signed-off-by: Amruta Kale <amruta.kale@veeam.com>
Co-authored-by: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com>
  • Loading branch information
kale-amruta and pavannd1 committed Oct 31, 2023
1 parent a846e00 commit 14d67fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/kopia/repository/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func ConnectToAPIServer(
CachingOptions: content.CachingOptions{
CacheDirectory: kopia.DefaultClientCacheDirectory,
ContentCacheSizeLimitBytes: int64(contentCacheMB << 20),
ContentCacheSizeBytes: int64(contentCacheMB << 20),
MetadataCacheSizeBytes: int64(metadataCacheMB << 20),
MetadataCacheSizeLimitBytes: int64(metadataCacheMB << 20),
MaxListCacheDuration: content.DurationSeconds(defaultConnectMaxListCacheDuration.Seconds()),
},
Expand Down

0 comments on commit 14d67fd

Please sign in to comment.