Commit 6202bfa4 authored by joe-alewine's avatar joe-alewine Committed by Joe Alewine
Browse files

[FAB-14405] Stand up orderer node

Doc process for configuring
and standing up an orderer
node, regardless of orderer

Change-Id: I9d5bbf4a3da95ddec999eefcb1920a158b93fbac
Signed-off-by: default avatarjoe-alewine <>
(cherry picked from commit 4149094bb5a153495054bf91f3cafa0c13714966)
parent 86c3f76d
......@@ -5,6 +5,7 @@ Operations Guides
:maxdepth: 1
# Setting up an ordering node
In this topic, we'll describe the process for bootstrapping an ordering node.
If you want more information about the different ordering service implementations
and their relative strengths and weaknesses, check out our
[conceptual documentation about ordering](../orderer/ordering_service.html).
Broadly, this topic will involve a few interrelated steps:
1. Compiling the binary
2. Creating the organization your ordering node belongs to (if you have not already
done so)
3. Configuring your node (using `orderer.yaml`)
4. Creating the genesis block for the orderer system channel
5. Bootstrapping the orderer
## Prerequisites
This topic assumes you have already cloned Hyperledger Fabric. If you have not,
check out our documentation on [Prerequisites](prereqs.html). Then, navigate to
the [Hyperledger Fabric github repo]( and
clone it. After you have cloned Fabric, make sure to check out the
[Ordering Service README](
After you have completed these steps, your orderer is ready to be configured and
## Create an organization definition
Like peers, all orderers must belong to an organization that must be created
before the orderer itself is created. This organization has a definition
encapsulated by a [Membership Service Provider](./membership/membership.html)
(MSP) that is created by a Certificate Authority (CA) dedicated to creating the
certificates and MSP for the organization.
For information about creating a CA and using it to create users and an MSP,
check out the [Fabric CA user's guide](
## Configure your node
The configuration of the orderer is handled through a `yaml` filed called
`orderer.yaml`. The `FABRIC_CFG_PATH` environment variable is used to point to
an `orderer.yaml` file you've configured, which will extract a series of files
and certificates on your file system.
To look at a sample `orderer.yaml`, check out the [`fabric-samples` github repo](, which **should be read and studied closely** before proceeding.
Note in particular a few values:
* `LocalMSPID` --- this is the name of the MSP, generated by your CA, of your
orderer organization. This is where your orderer organization admins will be
* `LocalMSPDir` --- the place in your file system where the local MSP is located.
* `# TLS enabled`, `Enabled: false`. This is where you specify whether you want
to [enable TLS](enable_tls.html). If you set this value to `true`, you will have
to specify the locations of the relevant TLS certificates. Note that this is
mandatory for Raft nodes.
* `GenesisFile` --- this is the name of the genesis block you will generate for
this ordering service.
* `GenesisMethod` --- the method by which the genesis block is created. This can
be either `file`, in which the file in the `GenesisFile` is specified, and
`provisional`, in which the profile in `GenesisProfile` is used.
If you are deploying this node as part of a cluster (for example, as part of a
cluster of Raft nodes), make note of the `Cluster` and `Consensus` sections.
If you plan to deploy a Kafka based ordering service, you will need to complete
the `Kafka` section.
## Generate the genesis block of the orderer
The first block of a newly created channel is known as a "genesis block". If
this genesis block is being created as part of the creation of a **new network**
(in other words, if the orderer being created will not be joined to an existing
cluster of orderers), then this genesis block will be the first block of the "orderer
system channel" (also known as the "ordering system channel"), a special channel
managed by the orderer admins which includes a list of the organizations permitted
to create channels. *The genesis block of the orderer system channel is special:
it must be created and included in the configuration of the node before the node
can be started.*
To learn how to create a genesis block using the `configtxgen` tool, check out
[Channel Configuration (configtx)](configtx.html).
## Bootstrap the ordering node
Once you have built the images, created the MSP, configured your `orderer.yaml`,
and created the genesis block, you're ready to start your orderer using a
command that will look similar to:
docker-compose -f docker-compose-cli.yaml up -d --no-deps
With the address of your orderer replacing ``.
<!--- Licensed under Creative Commons Attribution 4.0 International License -->
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment