Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-9265

Add REST stress test command to clientToolBox

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.4.1
    • Component/s: None
    • Labels:
    • Provenance:
      Internal Delivery
    • Issue discovered during:
      Customer

      Description

      The REST API is getting used more and more, and we need a way to tress test it easily.

      We have good stress test commands for SOAP WS, CMP, SCEP and OCSP in clientToolBox.

      Add one for REST as well.

       

      > cd dist/clientToolBox
      >./ejbcaClientToolBox.sh
      You must specify which tool to use as first argument.
      These tools are available:

      • healthCheck
        <snip>
      • UrlGenerator
      • RESTTest

       

      Example run, I used one thread first to find a point in the client where >30ms were wasted for each REST HTTPS call:
      ./ejbcaClientToolBox.sh RESTTest localhost:8443 ~/tmp/ManagementCA.cacert.pem ManagementCA ENDUSER EMPTY ../../p12/superadmin.p12 ejbca 1 1

      Then as usual, run more threads to test throughput:
      ./ejbcaClientToolBox.sh RESTTest localhost:8443 ~/tmp/ManagementCA.cacert.pem ManagementCA ENDUSER EMPTY ../../p12/superadmin.p12 ejbca 25 1

       

      The client RESTTest can probably be optimized more in how it uses Apache HTTP Client, TLS session re-use etc, but it's a good start.

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            tomas Tomas Gustavsson
            Verified by:
            Lauri Kongas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 5 minutes Remaining Estimate - 7 hours, 55 minutes
                7h 55m
                Logged:
                Time Spent - 5 minutes Remaining Estimate - 7 hours, 55 minutes
                5m