Skip to content

Merge the two codebases into one #8

Closed

Description

@zloster

Watch out for the:

  • benchmark_config.json metadata
  • pom.xml updates
  • the setup.sh script contents

Activity

  1. added this to the Jetty updates/changes milestone on Mar 23, 2017
  2. self-assigned this
    on Jun 20, 2017
  3. zloster commented on Jun 20, 2017

    @zloster
    OwnerAuthor

    We will need multi-module Maven build because there is need to handle multiple configurations of the building and packaging artifacts.
    Less work will be to use Maven profiles:

    1. Copy the /src of the first project to the second, take care for the package path - will need a new one?
    2. Add second profile in Maven that changes the main class of the application - there will be two: one for the Jetty's handler and one for the servlet.
    3. Edit benchmark_config.json, adding the new shell script and configuration
    4. Add the new shell script for the first project
    5. Remove jetty-servlet from the benchmark configuration
    6. That's all?
  4. zloster commented on Jun 21, 2017

    @zloster
    OwnerAuthor

    Verify is passing in local and Travis.

  5. zloster commented on Jun 21, 2017

    @zloster
    OwnerAuthor

    Some explanations about Maven:
    The project is using the profiles feature. One profile for the handler variant which is default and one profile for the servlet. In each profile irrelevant code from source is excluded. Also the dependencies. Check the final jars.

  6. zloster commented on Jun 21, 2017

    @zloster
    OwnerAuthor

    Sample results from local testing in Vagrant:

    {
      "environmentDescription": "(unspecified, hostname = tfb-all)", 
      "cachedQueryIntervals": [
        1, 
        10, 
        20, 
        50, 
        100
      ], 
      "uuid": "ae3905ae-7cd3-4d93-b75d-e2821b956561", 
      "succeeded": {
        "fortune": [], 
        "plaintext": [
          "jetty", 
          "jetty-servlet"
        ], 
        "db": [], 
        "update": [], 
        "json": [
          "jetty", 
          "jetty-servlet"
        ], 
        "query": [], 
        "cached_query": []
      }, 
      "failed": {
        "fortune": [], 
        "plaintext": [], 
        "db": [], 
        "update": [], 
        "json": [], 
        "query": [], 
        "cached_query": []
      }, 
      "verify": {
        "jetty": {
          "plaintext": "pass", 
          "json": "pass"
        }, 
        "jetty-servlet": {
          "plaintext": "pass", 
          "json": "pass"
        }
      }, 
      "completed": {
        "jetty": "20170621060607", 
        "jetty-servlet": "20170621062102"
      }, 
      "concurrencyLevels": [
        8, 
        16, 
        32, 
        64, 
        128, 
        256
      ], 
      "frameworks": [
        "jetty", 
        "jetty-servlet"
      ], 
      "completionTime": 1498026067019, 
      "rawData": {
        "fortune": {}, 
        "plaintext": {
          "jetty": [
            {
              "latencyAvg": "215.57ms", 
              "latencyMax": "1.02s", 
              "latencyStdev": "138.95ms", 
              "totalRequests": 530207, 
              "startTime": 1498024889, 
              "endTime": 1498024949
            }, 
            {
              "latencyAvg": "748.11ms", 
              "latencyMax": "3.51s", 
              "latencyStdev": "469.91ms", 
              "totalRequests": 516768, 
              "startTime": 1498024951, 
              "endTime": 1498025012
            }, 
            {
              "latencyAvg": "2.60s", 
              "startTime": 1498025014, 
              "latencyMax": "7.99s", 
              "latencyStdev": "1.43s", 
              "totalRequests": 471424, 
              "write": 0, 
              "read": 253, 
              "connect": 0, 
              "timeout": 3618, 
              "endTime": 1498025076
            }, 
            {
              "latencyAvg": "4.47s", 
              "startTime": 1498025078, 
              "latencyMax": "7.99s", 
              "latencyStdev": "1.89s", 
              "totalRequests": 290090, 
              "write": 0, 
              "read": 1812, 
              "connect": 0, 
              "timeout": 15612, 
              "endTime": 1498025163
            }
          ], 
          "jetty-servlet": [
            {
              "latencyAvg": "225.41ms", 
              "latencyMax": "1.48s", 
              "latencyStdev": "152.70ms", 
              "totalRequests": 516000, 
              "startTime": 1498025799, 
              "endTime": 1498025859
            }, 
            {
              "latencyAvg": "837.31ms", 
              "latencyMax": "3.98s", 
              "latencyStdev": "567.39ms", 
              "totalRequests": 494456, 
              "startTime": 1498025861, 
              "endTime": 1498025921
            }, 
            {
              "latencyAvg": "2.72s", 
              "timeout": 3475, 
              "latencyMax": "8.00s", 
              "latencyStdev": "1.59s", 
              "totalRequests": 471168, 
              "write": 0, 
              "read": 327, 
              "connect": 0, 
              "startTime": 1498025923, 
              "endTime": 1498025987
            }, 
            {
              "latencyAvg": "4.37s", 
              "timeout": 21209, 
              "latencyMax": "7.99s", 
              "latencyStdev": "1.58s", 
              "totalRequests": 372224, 
              "write": 0, 
              "read": 7019, 
              "connect": 0, 
              "startTime": 1498025989, 
              "endTime": 1498026058
            }
          ]
        }, 
        "slocCounts": {
          "None": 176
        }, 
        "db": {}, 
        "update": {}, 
        "json": {
          "jetty": [
            {
              "latencyAvg": "3.32ms", 
              "latencyMax": "62.20ms", 
              "latencyStdev": "3.73ms", 
              "totalRequests": 142424, 
              "startTime": 1498024434, 
              "endTime": 1498024494
            }, 
            {
              "latencyAvg": "4.82ms", 
              "latencyMax": "85.51ms", 
              "latencyStdev": "4.87ms", 
              "totalRequests": 174794, 
              "startTime": 1498024496, 
              "endTime": 1498024556
            }, 
            {
              "latencyAvg": "7.88ms", 
              "latencyMax": "114.85ms", 
              "latencyStdev": "7.06ms", 
              "totalRequests": 196723, 
              "startTime": 1498024558, 
              "endTime": 1498024618
            }, 
            {
              "latencyAvg": "13.01ms", 
              "latencyMax": "146.05ms", 
              "latencyStdev": "10.11ms", 
              "totalRequests": 218053, 
              "startTime": 1498024620, 
              "endTime": 1498024680
            }, 
            {
              "latencyAvg": "22.60ms", 
              "latencyMax": "178.91ms", 
              "latencyStdev": "14.88ms", 
              "totalRequests": 229555, 
              "startTime": 1498024682, 
              "endTime": 1498024743
            }, 
            {
              "latencyAvg": "40.05ms", 
              "latencyMax": "296.18ms", 
              "latencyStdev": "24.33ms", 
              "totalRequests": 234337, 
              "startTime": 1498024745, 
              "endTime": 1498024805
            }
          ], 
          "jetty-servlet": [
            {
              "latencyAvg": "3.40ms", 
              "latencyMax": "58.05ms", 
              "latencyStdev": "3.82ms", 
              "totalRequests": 139971, 
              "startTime": 1498025343, 
              "endTime": 1498025403
            }, 
            {
              "latencyAvg": "5.28ms", 
              "latencyMax": "85.68ms", 
              "latencyStdev": "5.19ms", 
              "totalRequests": 160608, 
              "startTime": 1498025405, 
              "endTime": 1498025465
            }, 
            {
              "latencyAvg": "8.07ms", 
              "latencyMax": "114.32ms", 
              "latencyStdev": "7.14ms", 
              "totalRequests": 191095, 
              "startTime": 1498025467, 
              "endTime": 1498025528
            }, 
            {
              "latencyAvg": "13.71ms", 
              "latencyMax": "135.86ms", 
              "latencyStdev": "10.53ms", 
              "totalRequests": 208270, 
              "startTime": 1498025530, 
              "endTime": 1498025590
            }, 
            {
              "latencyAvg": "23.63ms", 
              "latencyMax": "166.29ms", 
              "latencyStdev": "15.25ms", 
              "totalRequests": 221565, 
              "startTime": 1498025592, 
              "endTime": 1498025652
            }, 
            {
              "latencyAvg": "40.52ms", 
              "latencyMax": "343.87ms", 
              "latencyStdev": "24.35ms", 
              "totalRequests": 232186, 
              "startTime": 1498025654, 
              "endTime": 1498025714
            }
          ]
        }, 
        "commitCounts": {
          "None": 0
        }, 
        "query": {}, 
        "cached_query": {}
      }, 
      "startTime": 1498024249701, 
      "duration": 60, 
      "queryIntervals": [
        1, 
        5, 
        10, 
        15, 
        20
      ], 
      "name": "(unspecified, datetime = 2017-06-21 05:50:49)"
    }
    
  7. zloster commented on Jun 21, 2017

    @zloster
    OwnerAuthor

    Pull request is submitted.

  8. zloster commented on Jun 21, 2017

    @zloster
    OwnerAuthor

    Accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions