スマートミラーリングは、大規模なリポジトリを使用する分散チームで、Git クローンの速度を大幅に改善することができます。世界の反対側からインターネットを通じて Bitbucket インスタンスから大規模なリポジトリをクローンするのに数時間かかるような大規模なリポジトリは、高速なネットワーク上のローカル ミラーからクローンする場合、数分で取得することができます。
If you're ready to start mirroring your repositories you can jump straight to the Set up a mirror article and follow the steps there, or read on to learn more about the benefits of using a mirror. If you have mirrors already configured, you might be searching for instructions on how to Clone a mirror repository.
This feature is only for customers with an active Bitbucket Data Center license. Purchase a Bitbucket Data Center license, or get an evaluation license to try Bitbucket Data Center.
Check out the on-demand webinar, Smart Mirroring in Bitbucket Data Center.
In this webinar you'll learn:
- Benefits of Smart Mirroring in Bitbucket Data Center 4.2.0 or higher
- スマート ミラーリングのしくみ
- Steps for setting up a mirror to improve Git clone speeds
- Troubleshooting tips for installation issues
- How to point your CI server (Bamboo, Jenkins,...) at a mirror
- A sneak peek of upcoming enterprise features
About Smart Mirroring
Many software development teams using Git have large repositories as a result of storing lots of historical information, using monolithic repositories, or storing large binary files (or all three). Companies with distributed software development teams often have little control over the network performance available to them between sites. In combination, this leads to lost development time when developers have to wait long periods, often hours, to clone a large repository from across the world.
Smart Mirroring gives you back this lost development time by allowing you to set up live mirror nodes with, which are copies of repositories in remote locations. The mirrors automatically keep all repositories hosted on them in sync with the primary Bitbucket Data Center instance. Users in those remote locations may clone and fetch repositories from the mirror and get identical content, only faster. Mirrors can be configured to mirror all repositories in all projects from their primary Bitbucket instance, or a selection of projects configured by an administrator.
Mirrors run the same Bitbucket application as a full Bitbucket Server instance, but configured to mirror an upstream Bitbucket Data Center instance where the primary copy of all your repositories is hosted.
Mirrors have no user interface and do not provide repository browsing, pull requests, or other such functionality, which is all provided by the primary Bitbucket server. The web interface of Bitbucket remain on the primary server.
When a user clones or fetches from a mirror, the mirror automatically delegates the authentication and authorization of their credentials back to the primary server. So no additional user management is required on mirrors, and all the users, groups, and permissions of the primary Bitbucket instance (whether provided by the built-in user directory and permission system or by your own user directories and/or custom extensions) are always replicated exactly on all mirrors.
Once I've cloned from a mirror, am I supposed to push to the mirror as well?
Yes, you can push to the repository using the same URL, and Bitbucket relays the push to the upstream repository.
Ready to get started setting up a mirror?
Be sure to read Set up a mirror for detailed instructions on installing a mirror.
Don't have Bitbucket Data Center yet? Purchase a Bitbucket Data Center license, or get an evaluation license to try Bitbucket Data Center.