fabric-ca-load-tester

command
v1.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

README

Simple load driver for Fabric CA

This is a simple load driver for Fabric CA. The driver can be configured using a JSON configuration file. Things like URL of the Fabric CA server, number of clients, number of requests per client, requests per second, test sequence, Fabric CA Client config, etc can be specified in the configuration file. You can look at the default configuraton file testConfig.yml located in this directory.

Steps

  1. Set registry.maxEnrollments to at least 2 in the server configuration file
  2. Make sure Fabric CA server is running and make a note of the server URL, bootstrap user and password.
  3. Modify the testConfig.yml file
    • Modify the serverURL property. It is of the form: <http|https>://<bootstrap user id>:<bootstrap password>@<hostname>:<port>. Note that the bootstrap user must have revoker authority and must be affiliated with root of the affiliation tree, which is "" or the parent affiliation of the affiliation specified in the affiliation property
    • Change load properties like numClients, numReqsPerClient, testSeq properties as needed. testSeq property specifies the sequence of tests that are run in each iteration by a client. Each test has a name and optional repeat and req properties. The repeat property specifies how many times to repeat the test in each iteration. The req property specifies payload for the request that is sent to the Fabric CA server.
      • For revoke test, specify a random string for the name property if you need to revoke an identity. If the name property is empty, an ECert associated with the identity will be revoked.
    • Change affiliation property. It specifies the affiliation to use in the test.
    • If you need TLS to be used to connect to the Fabric CA server, first make sure https protocol is used in the serverURL property. Next, set tls.enabled to true. Then, specify root CA certificate files in the tls.certfiles property.
  4. Run runLoad.sh script to start the load test. You can invoke this script with the -B option to build the driver and run.

Documentation

Overview

Copyright IBM Corp. 2017 All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright IBM Corp. 2017 All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL