Book Image

Gitolite Essentials

By : Sitaram Chamarty
Book Image

Gitolite Essentials

By: Sitaram Chamarty

Overview of this book

Table of Contents (19 chapters)
Gitolite Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Switching to a different master


The biggest day-to-day benefit of mirroring is clearly that it can make read access more network-efficient for projects where the development team is widely distributed, albeit at the cost of an extra server at each slave location.

However, there's obviously one more advantage. If the main server for a repository should fail, one of the mirrors can easily be removed from the list of slaves and be made the master. As long as there are no network problems, the slave should be in the same state as the master, so no commits are lost.

Tip

Mirroring is not the same as backup. It is outside the scope of this book to discuss the differences, but you should always have a reliable backup system in place for all your servers and possible workstations as well.

This simple strategy breaks down when the server that died contains the gitolite-admin repository itself. This is a bit of a catch-22 situation; you cannot push the change (in mirror options for the gitolite-admin repository...