New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/sfl0r3nz05/hfb-testing-environment

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sfl0r3nz05/hfb-testing-environment

  • v0.0.0-20200609163055-ae8a817bb738
  • Source
  • Go
  • Socket score

Version published
Created
Source

HFB Testing Environment

  • benchmarks folder Contains the configuration files in order to test the smart contract.

  • network folder Contains: network options to deploy in docker-compose files crypto configuration files (certificates, channel, genesis block, configtx.yaml, crypto-config.yaml) connection-profile to enable caliper to recognize the network prometheus/grafana configuration

  • src folder contains chaincode source code before compiled via:

    1. go mod init __
    2. go install
    3. go mod vendor

How deploy a benchmark

  1. npm i @hyperledger/caliper-cli
  2. npm init -y
  3. npm install --only=prod @hyperledger/caliper-cli
  4. npx caliper bind --caliper-bind-sut fabric --caliper-bind-sdk 2.0.0
  • Run a network of 2CA, 2ORG, 1PEER/ORG, 3ORDERER, RAFT CONSENSUS, GOLEVELDB STATEDB
  1. npx caliper launch master --caliper-workspace . --caliper-benchconfig benchmarks/fabcar/config.yaml --caliper-networkconfig networks/connection-profile/2org1peergoleveldb_raft/fabric-go-tls-prometheus.yaml
  • Run a network of 2CA, 2ORG, 1PEER/ORG, 3ORDERER, RAFT CONSENSUS, COUCHDB STATEDB
  1. npx caliper launch master --caliper-workspace . --caliper-benchconfig benchmarks/fabcar/config.yaml --caliper-networkconfig networks/connection-profile/2org1peercouchdb_raft/fabric-go-tls-prometheus.yaml
  • Run a network of CA, 2ORG, 1PEER/ORG, 2ORDERER, 3 ZOOKEEPEER, 4 KAFKA BROKERS, CONSENSUS KAFKA, GOLEVELDB STATEDB
  1. npx caliper launch master --caliper-workspace . --caliper-benchconfig benchmarks/fabcar/config.yaml --caliper-networkconfig networks/connection-profile/org1peergoleveldb_kafka/fabric-go-tls-prometheus.yaml
  • Run a network of 2CA, 2ORG, 1PEER/ORG, 2ORDERER, 3 ZOOKEEPEER, 4 KAFKA BROKERS, CONSENSUS KAFKA, COUCHDB STATEDB
  1. npx caliper launch master --caliper-workspace . --caliper-benchconfig benchmarks/fabcar/config.yaml --caliper-networkconfig networks/connection-profile/2org1peercouchdb_kafka/fabric-go-tls-prometheus.yaml

  2. docker rm -f $(docker ps -a -q)

  3. docker volume rm $(docker volume ls -q)

Network include a Prometheus configuration

PROMETHEUS (ip:9090)
alt text
GRAFANA CONTAINERS 1 (ip:3000)
alt text
GRAFANA CONTAINERS 2 (ip:3000)
alt text
GRAFANA HOST (ip:3000)
alt text
HFB METRICS RAFT (INSIDE GRAFANA)
alt text
HFB METRICS LEDGER (INSIDE GRAFANA)
alt text

Caliper report

Caliper generates a report hosted in project root
alt text

FAQs

Package last updated on 09 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc