Share GIT cache between multiple agents
So the agent has it's git cache located at <agentHome>/system/git
Let's assume the scenario where you have multiple agents installed on single machine, is it possible to configure all agents to use the same system/git folder?
Well it's possible to configure it but will work correctly?
We really need this feature. When you have 10GBs GIT repos, you need to cache them. We are using cloud agents and we need to share the GIT cache between them.
Thanks
Please sign in to leave a comment.
Hi Petr,
First, this scenario is not officially supported. You might be able to do it, but consider what can happen with basically any cache when several different processes are accessing and modifying it at the same time. There is no configuration for it, though, you will need to link the folders manually.
You can use server-side checkout, which basically will do that for you on the server side, holding the cache server side and only transferring the required patches to the agents. This will increase load server side though, so you will want to monitor that, particularly if you are already at high usage levels.
Hi Denis
Thanks for the answer.
Let's assume that the agent is always recreated again (security reasons) -> meaning it's always the "first build" on that agent (the shared cache folder would be on different disk). With such setup the whole source code would need to be transferred anyway from the TC Server to the TC Agent, so in terms of transferred amount of data to the agent it's the same as if we would have agent checkout.
I will let you know how the things are looking once we have the set-up running.