Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How does the "Enable repository caching on remote agents" work?

Maggie Stearns April 5, 2016

I have a question about the Bamboo feature that can be set when defining a git repo from Stash called “Enable repository caching on remote agents”.

 Can you give me some additional information on his this caching works? Does the main Bamboo server somehow maintain a cache that the agents use? or does each agent get a clone of the git repo and act as a cache for all other builds on that agent?  Just wondering how to describe the benefits of this feature.

2 answers

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2016

When cache is enabled, if you have multiple builds (including, but not limited to branch builds) that use the same repo, the initial full fetch of the repo will happen only once per remote agent. Otherwise each build will issue a separate remote fetch. 

Maggie Stearns April 6, 2016

So does a copy of the git repo sit on the Bamboo server?

Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 6, 2016

This option is not related to server in any way. The server always caches repos.

Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 13, 2016

The remote agent cache sits in the respective agent's home. Server cache is not controlled by this option but it's only used by server-side work and local agents.

0 votes
Mike Friedrich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2016

Yes,  it is a git repo on the server and on each agent. 

Maggie Stearns April 5, 2016

So when a second agent wants to build the same set of code, it is faster because of the cache on the server?

Maggie Stearns April 6, 2016

Does my Bamboo server now need to store a copy of the git repo? (where it was not storing it before?)

Marcin Gardias
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 13, 2016

"So when a second agent wants to build the same set of code"

No, assuming "second agent" is a new remote agent, it will need to do an initial fetch. Subsequent builds will be faster though (at the cost of storage space)

"Does my Bamboo server now need to store a copy of the git repo?"

It always did, no change there, the option only refers to remote agents.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events