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

Bitbucket Server and Amazon EFS

Cajun McCartney December 12, 2019

Want to run a cold/standby for Bitbucket server for high availability. If there's an issue with the primary instance, we can shut it down and start the secondary instance which will connect to the NFS mount containing the shared data. Currently using NFS from a Windows server (yes it's a little slower than local stoarge, but works well), but was looking into using Amazon EFS instead. 

When looking through Atlassian docs, the only thing I see regarding EFS is "You can't use Amazon Elastic File System (EFS) for Bitbucket Server's shared home directory.", but I don't see a listed reason as to why EFS can't be used over a NFS share. 

Is there a particular/documented reason as to why EFS can not be used if already using NFS?

1 answer

0 votes
Jeff Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 12, 2019

EFS and Git don't play very well together because of the way Git interacts with the file system. It's known to not be performant for Git.

Does Bitbucket Data Center clustering support Amazon EFS?

Not at this time. As noted in Amazon EFS Performance:

"The distributed nature of Amazon EFS […] results in a small latency overhead for each file operation. Due to this per-operation latency, overall throughput generally increases as the average I/O size increases, because the overhead is amortized over a larger amount of data."

Git typically involves many thousands of small file operations and the additional latency for each file operation means git is not suited to a distributed file system such as EFS. Since EFS's Max I/O option has an even higher latency, it is also not suitable for Bitbucket Data Center.

Source: Bitbucket Data Center FAQ

LUIS ALBERTO LEON TORIBIOS April 16, 2020

Hi Jeff!

AWS announced an increase on IO read functions for EFS. https://aws.amazon.com/about-aws/whats-new/2020/04/amazon-elastic-file-system-announces-increase-in-read-operations-for-general-purpose-file-systems/

Would it be suitable for git operations now?

Jeff Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2020

Hi @LUIS ALBERTO LEON TORIBIOS

From my read of the announcement, I don't believe these changes in AWS will change our recommendation to not use EFS. While EFS increased the limit in read and write operations per second, it does not change (from what I can tell) the latency overhead for each operation. That latency overhead per operation is what will cause slow Git performance.

Craig Castle-Mead
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.
August 17, 2020

Isn't the main issue with git and EFS the fact that there's a bit of latency on each request, but native git is a huge amount of tiny files, each piece of latency adds up. Under LFS, while there might still be some latency, with less requests going to the files, it won't be a death by 1000 papercuts issue?

 

CCM

LUIS ALBERTO LEON TORIBIOS February 1, 2021

AWS annouced EFS now allows you to drive up to 3x higher read throughput on your file system. The problem is only for read operations.

https://aws.amazon.com/about-aws/whats-new/2021/01/amazon-elastic-file-system-triples-read-throughput/

Pavan Dronamraju June 23, 2021

This is an interesting discussion as we are going through setting up Bitbucket Datacenter with two instances on AWS cloud.

If not AWS EFS, what is the best recommended approach to share files on AWS? 

Haven't seen a good documentation of this specifically for AWS which Bitbucket proposes.

 

Can someone help? 

D Wisneski October 5, 2021

Hello,

I asked a related question on AWS FSX ontap.   Will the FSX ontap service's performance meet the requirements for a HA bitbucket environment?

https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-Enterprise-HA-Using-AWS-FSX-Ontap-NFS/qaq-p/1808601#M65928

Thanks,

Best,

-dkw

Like Steffen Opel _Utoolity_ likes this
gunter.grodotzki February 24, 2022
Like # people like this
Jakauppila June 29, 2022

I’m curious as well if EFS is at all viable with the increased performance?

We will be looking to migrate our Bitbucket Data Center cluster to AWS and would love to go cloud-native with all of the components.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events