Bitbucket builtin ssh caching not working

I'm trying to enable ssh caching on our Bitbucket instance by guide

https://confluence.atlassian.com/bitbucketserver076/scaling-bitbucket-server-for-continuous-integration-performance-1026535678.html

And instance returns that both protocols caching is enabled

["HTTP","SSH"]

But i noticed that after 2-4-6 sequential clone requests

git clone ssh://git@<instance_name>/dops/devops-infra-scripts-test.git 6
Cloning into '6'...
remote: Enumerating objects: 11881, done.
remote: Counting objects: 100% (11881/11881), done.
remote: Compressing objects: 100% (4341/4341), done.
remote: Total 11881 (delta 7952), reused 11031 (delta 7321)
Receiving objects: 100% (11881/11881), 7.99 MiB | 361.00 KiB/s, done.
Resolving deltas: 100% (7952/7952), done.

size of cache still "0"

{"hits":0,"misses":0,"size":0,"regions":[{"region":"33112","hits":0,"misses":0,"size":0,"last-accessed":"Tue Jul 11 20:07:00 MSK 2023","entries":[]}]}

Everything is fine?

1 answer

1 accepted

0 votes
Answer accepted

after 7-8 times of cloning operations the cache appeared :)

{"hits":10,"misses":2,"size":8386796,"regions":[{"region":"33112","hits":10,"misses":2,"size":8386796,"last-accessed":"Tue Jul 11 20:51:29 MSK 2023","entries":[{"key":"clone|90b59fce78c4defb69ba6afac2c9339142c8f0240ab5cc480265febca9904c3f","created":"Tue Jul 11 20:51:29 MSK 2023","last-accessed":"Tue Jul 11 20:51:29 MSK 2023","hits":0,"size":8386796}]}]}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events