Performance Tool(3)Gatling Upgrade and Cluster

Performance Tool(3)Gatling Upgrade and Cluster

I upgrade to version 1.5.6 with gatling sbt tool. It is easy to use but I fail to use version 2.0.0 with that sbt tool.

From my understanding, gatling use akka system. These configuration should be needed.
#actor configuration
akka {
  actor {
    creation-timeout = 120s
  }
  scheduler {
    tick-duration = 50ms
  }
}

Here is the gatling default settings.
#########################
# Gatling Configuration #
#########################

# This file contains all the settings configurable for Gatling with their default values

gatling {
     simulation {
          #outputDirectoryBaseName = ""
          #runDescription = run
          #encoding = "utf-8"                                   # encoding for every file manipulation made in gatling
          #class = ""
     }
     timeOut {
          simulation = 86400                                   # in s
          actor = 600                                             # in s
     }
     directory {
    #data = userfiles/data
    #requestBodies = userfiles/request-bodies
    #simulations = userfiles/simulations
    #reportsOnly = "adtarget/reports"
    #binaries = ""
    #results = results
     }
     charting {
          #noReports = false
          #maxPlotPerSeries = 1000
          #accuracy = 10                                        # in ms
          indicators {
               #lowerBound = 800                              # in ms
               #higherBound = 1200                              # in ms
               #percentile1 = 95                              # in percents
               #percentile2 = 99                              # in percents
          }
     }
     http {
          #provider = "Netty"                                   # Choose between 'Netty', 'JDK', 'Apache' or 'Grizzly'
          #allowPoolingConnection = true
          #allowSslConnectionPool = true
          #compressionEnabled = true                       # Set if compression should be supported or not
          connectionTimeout = 60000                         # Timeout of the connection to the server (ms)
          idleConnectionInPoolTimeoutInMs = 60000
          idleConnectionTimeoutInMs = 60000
          #ioThreadMultiplier = 2
          #maximumConnectionsPerHost = -1
          #maximumConnectionsTotal = -1
          maxRetry = 2                                        # number of times that a request should be tried again
          #requestCompressionLevel = -1
          requestTimeoutInMs = 60000                         # Timeout of the requests (ms)
          #useProxyProperties = false
          #userAgent = "NING/1.0"
          #useRawUrl = false
     }
     data {
          #writers = [console, file]
          #reader = file
     }
     graphite {
               #host = "localhost"
               #port = 2003
               #bucketWidth = 100
     }
}

Anyway, it nice and working, but still I plan to try version 2.0.0.

2. Scala Testing
Run the tool without generate the report
>target/start -nr -s demo.TaobaoHomePage

Put all the log files and rename them in one directory, for example scala-report1 under results. 
Then run the command to generate the reports based on all the logs
>target/start -ro scala-report1

References:
http://sillycat.iteye.com/blog/1829699
http://sillycat.iteye.com/blog/1994160

https://github.com/excilys/gatling/wiki/Scaling-out
https://github.com/excilys/gatling/wiki/Gatling%202

你可能感兴趣的:(performance)