Q: | Who is this document intended for? |
---|---|
A: | Anyone who wishes to read and/or edit the Pacemaker source code. Casual contributors should feel free to read just this FAQ, and consult other chapters as needed. |
Q: | Where is the source code for Pacemaker? |
---|---|
A: | The source code for Pacemaker [https://github.com/ClusterLabs/pacemaker] is kept on GitHub [https://github.com/], as are all software projects under the ClusterLabs [https://github.com/ClusterLabs] umbrella. Pacemaker uses Git [https://git-scm.com/] for source code management. If you are a Git newbie, the gittutorial(7) man page [http://schacon.github.io/git/gittutorial.html] is an excellent starting point. If you’re familiar with using Git from the command line, you can create a local copy of the Pacemaker source code with: git clone https://github.com/ClusterLabs/pacemaker.git |
Q: | What are the different Git branches and repositories used for? |
---|---|
A: |
|
Q: | How do I build from the source code? |
---|---|
A: | See INSTALL.md [https://github.com/ClusterLabs/pacemaker/blob/master/INSTALL.md] in the main checkout directory. |
Q: | What coding style should I follow? |
---|---|
A: | You’ll be mostly fine if you simply follow the example of existing code. When unsure, see the relevant chapter of this document for language-specific recommendations. Pacemaker has grown and evolved organically over many years, so you will see much code that doesn’t conform to the current guidelines. We discourage making changes solely to bring code into conformance, as any change requires developer time for review and opens the possibility of adding bugs. However, new code should follow the guidelines, and it is fine to bring lines of older code into conformance when modifying that code for other reasons. |
Q: | How should I format my Git commit messages? |
---|---|
A: | An example is “Feature: scheduler: wobble the frizzle better”.
|
Q: | How can I test my changes? |
---|---|
A: | Most importantly, Pacemaker has regression tests for most major components; these will automatically be run for any pull requests submitted through GitHub. Additionally, Pacemaker’s Cluster Test Suite (CTS) can be used to set up a test cluster and run a wide variety of complex tests. This document will have more detail on testing in the future. |
Q: | What is Pacemaker’s license? |
---|---|
A: | Except where noted otherwise in the file itself, the source code for all Pacemaker programs is licensed under version 2 or later of the GNU General Public License (GPLv2+ [https://www.gnu.org/licenses/gpl-2.0.html]), its headers and libraries under version 2.1 or later of the less restrictive GNU Lesser General Public License (LGPLv2.1+ [https://www.gnu.org/licenses/lgpl-2.1.html]), its documentation under version 4.0 or later of the Creative Commons Attribution-ShareAlike International Public License (CC-BY-SA-4.0 [https://creativecommons.org/licenses/by-sa/4.0/legalcode]), and its init scripts under the Revised BSD [https://opensource.org/licenses/BSD-3-Clause] license. If you find any deviations from this policy, or wish to inquire about alternate licensing arrangements, please e-mail the developers@ClusterLabs.org [https://lists.ClusterLabs.org/mailman/listinfo/developers] mailing list. Licensing issues are also discussed on the ClusterLabs wiki [https://wiki.ClusterLabs.org/wiki/License]. |
Q: | How can I contribute my changes to the project? |
---|---|
A: | Contributions of bug fixes or new features are very much appreciated! Patches can be submitted as pull requests [https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests] via GitHub (the preferred method, due to its excellent features [https://github.com/features/]), or e-mailed to the developers@ClusterLabs.org [https://lists.ClusterLabs.org/mailman/listinfo/developers] mailing list as an attachment in a format Git can import. Authors may only submit changes that they have the right to submit under the open source license indicated in the affected files. |
Q: | What if I still have questions? |
---|---|
A: | Ask on the developers@ClusterLabs.org [https://lists.ClusterLabs.org/mailman/listinfo/developers] mailing list for development-related questions, or on the users@ClusterLabs.org [https://lists.ClusterLabs.org/mailman/listinfo/users] mailing list for general questions about using Pacemaker. Developers often also hang out on the [ClusterLabs IRC channel](https://wiki.clusterlabs.org/wiki/ClusterLabs_IRC_channel). |