원서 : https://hyperledger-fabric.readthedocs.io/en/release-1.4/orderer_deploy.html

  • orderer-node 를 '부트스크랩(명령어 실행)'하는 아래와 같은 과정을 알아봅시다.
    • 1) orderer-node의 소속 organization 만들기.
    • 2) orderer.yaml 으로 노드 설정하기. (configtx.yaml 과 다른것)
    • 3) channel의 genesis-block 만들기.
    • 4) 부트스크랩 하기.
  • Create an organization definition
    • orderer도 당연히 소속된 organization가 있어야 합니다.
    • organization를 MSP으로 인캡슐해 정의하면 됩니다. (CA에 의해 발급된 인증서 와 MSP 으로...)
    • 혹시나? CA를 만들고, CA으로 user 와 MSP 를 만드는 정보는... "Fabric CA user’s guide" 를 참고 하세요.
  • Configure your node
    • orderer 설정은 orderer.yaml 으로 하면 됩니다. (환경변수 'FABRIC_CFG_PATH' 으로 경로지정)
    • https://github.com/hyperledger/fabric/tree/release-1.4/sampleconfig 봐.
      • configtx.yaml : ...
      • core.yaml : ...
      • orderer.yaml : 
        • LocalMSPID : orderer가 속한 organization에 MSP 이름. (CA에 의해 생성)
        • LocalMSPDir : localMSP가 위치한 경로.
        • TLS\Enabled : TLS 활성/비활성 설정. (Raft 노드에서는 필수)
        • GenesisFile : genesis-block의 이름.
        • GenesisMethod : genesis-block이 만들어진 방법. (file 이나 provisional)
        • Cluster : ...
        • Consensus : ...
        • Kafka : ...
  • Generate the genesis block of the orderer
    • 특정 channel의 첫 block이 바로 genesis-block 입니다.
    • 새로운 네트워크가 만들어지는 부분으로써, genesis-block가 만들어 지는것.
    • "orderer system channel"의 첫 block 이라는 것이다.
    • 'orderer 관리자'가 관리받는 '특수 channel'은 channel 생성을 하는 'organization 목록'을 포함 합니다.
    • "orderer system channel"의 genesis-block은 ...
  • Bootstrap the ordering node
    • 'orderer 도커이미지', 'MSP 생성', 'orderer.yaml 설정', 'genesis-block 생성' 을 다했다면...
    • docker-compose -f docker-compos.yaml up -d --no-deps orderer.example.com 식으로 띄우세요.

-끝-

'hyperledger > fabDoc.Ops-Guides' 카테고리의 다른 글

Endorsement policies  (0) 2019.08.03
Channel Configuration (configtx)  (0) 2019.08.03
Membership Service Providers (MSP)  (0) 2019.08.03
Updating a Channel Configuration  (0) 2019.08.03
Upgrading to the Newest Version of Fabric  (0) 2019.08.03

+ Recent posts