Why BitBucket server has [gc] auto = 0 by default Edited

Hi

please clarify why bb server has such value by default. As per Git gc documentation this turns off automatic garbage collection. Obviously, repository should has some housekeeping in place to avoid performance degradation. So several questions arise here:

1) What is the intention around the 0? Why it is 0?

2) What are implications of changing this value to non-zero value?

3) What is the recommended approach to repo housekeeping in bitbucket? 

Thanks in advance.

 

PS i've read the FAQ but the answer there looks a bit vague to me.

1 answer

1 accepted

1 vote

Hi Alexander,

Automatic garbage collection is disabled by default because Bitbucket Server manages garbage collection itself. Disabling auto-gc ensures that garbage collection does not interfere with users pushing new commits, or merging of pull requests.

Instead of relying on auto-gc, Bitbucket Server schedules garbage collection to happen asynchronously, which ensures that user operations are not unnecessarily slowed down.

> 2) What are implications of changing this value to non-zero value?

You should not change this value. Changing it can cause user operations to slow down.

> 3) What is the recommended approach to repo housekeeping in bitbucket? 

As said, Bitbucket takes care of the repository housekeeping, but doesn't use git's auto-gc to do it.

Hope this clears up things!

Cheers,

Michael

Thanks a lot Michael - very comprehensive and clear answer. 

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

714 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot