|
| 1 | +######################### |
| 2 | +# Gatling Configuration # |
| 3 | +######################### |
| 4 | + |
| 5 | +# This file contains all the settings configurable for Gatling with their default values |
| 6 | + |
| 7 | +gatling { |
| 8 | + core { |
| 9 | + encoding = "utf-8" # Encoding to use throughout Gatling for file and string manipulation |
| 10 | + elFileBodiesCacheMaxCapacity = 200 # Cache size for request body EL templates, set to 0 to disable |
| 11 | + rawFileBodiesCacheMaxCapacity = 200 # Cache size for request body raw files, set to 0 to disable |
| 12 | + rawFileBodiesInMemoryMaxSize = 10240 # Max bite size of raw files to be cached in memory |
| 13 | + pebbleFileBodiesCacheMaxCapacity = 200 # Cache size for request body Pebble templates, set to 0 to disable |
| 14 | + feederAdaptiveLoadModeThreshold = 100 # File size threshold (in MB). Below load eagerly in memory, above use batch mode with default buffer size |
| 15 | + shutdownTimeout = 10000 # Milliseconds to wait for the engine to shutdown |
| 16 | + extract { |
| 17 | + regex { |
| 18 | + cacheMaxCapacity = 200 # Cache size for the compiled regexes, set to 0 to disable caching |
| 19 | + } |
| 20 | + xpath { |
| 21 | + cacheMaxCapacity = 200 # Cache size for the compiled XPath queries, set to 0 to disable caching |
| 22 | + } |
| 23 | + jsonPath { |
| 24 | + cacheMaxCapacity = 200 # Cache size for the compiled jsonPath queries, set to 0 to disable caching |
| 25 | + } |
| 26 | + css { |
| 27 | + cacheMaxCapacity = 200 # Cache size for the compiled CSS selectors queries, set to 0 to disable caching |
| 28 | + } |
| 29 | + } |
| 30 | + } |
| 31 | + socket { |
| 32 | + connectTimeout = 10000 # Timeout in millis for establishing a TCP socket |
| 33 | + tcpNoDelay = true |
| 34 | + soKeepAlive = false # if TCP keepalive configured at OS level should be used |
| 35 | + soReuseAddress = false |
| 36 | + } |
| 37 | + netty { |
| 38 | + useNativeTransport = true # if Netty Linux native transport should be used instead of Java NIO |
| 39 | + useIoUring = false # if io_uring should be used instead of epoll if available |
| 40 | + allocator = "pooled" # force the ByteBufAllocator, possible values are pooled, unpooled and adaptive |
| 41 | + maxThreadLocalCharBufferSize = 200000 # Netty's default is 16k |
| 42 | + } |
| 43 | + ssl { |
| 44 | + useOpenSsl = true # if OpenSSL should be used instead of JSSE (only the latter can be debugged with -Djavax.net.debug=ssl) |
| 45 | + useOpenSslFinalizers = false # if OpenSSL contexts should be freed with Finalizer or if using RefCounted is fine |
| 46 | + handshakeTimeout = 10000 # TLS handshake timeout in millis |
| 47 | + useInsecureTrustManager = true # Use an insecure TrustManager that trusts all server certificates |
| 48 | + enabledProtocols = [] # Array of enabled protocols for HTTPS, if empty use Netty's defaults |
| 49 | + enabledCipherSuites = [] # Array of enabled cipher suites for HTTPS, if empty enable all available ciphers |
| 50 | + sessionCacheSize = 0 # SSLSession cache size, set to 0 to use JDK's default |
| 51 | + sessionTimeout = 0 # SSLSession timeout in seconds, set to 0 to use JDK's default (24h) |
| 52 | + enableSni = true # When set to true, enable Server Name indication (SNI) |
| 53 | + keyStore { |
| 54 | + type = "" # Type of SSLContext's KeyManagers store, possible values are jks and p12 |
| 55 | + file = "" # Location of SSLContext's KeyManagers store |
| 56 | + password = "" # Password for SSLContext's KeyManagers store |
| 57 | + algorithm = "" # Algorithm used SSLContext's KeyManagers store, typically RSA |
| 58 | + } |
| 59 | + trustStore { |
| 60 | + type = "" # Type of SSLContext's TrustManagers store, possible values are jks and p12 |
| 61 | + file = "" # Location of SSLContext's TrustManagers store |
| 62 | + password = "" # Password for SSLContext's TrustManagers store |
| 63 | + algorithm = "" # Algorithm used by SSLContext's TrustManagers store, typically RSA |
| 64 | + } |
| 65 | + } |
| 66 | + charting { |
| 67 | + maxPlotPerSeries = 1000 # Number of points per chart in Gatling reports |
| 68 | + useGroupDurationMetric = false # Switch group timings from cumulated response time to group duration. |
| 69 | + indicators { |
| 70 | + lowerBound = 800 # Lower bound for the requests' response time to track in the reports and the console summary |
| 71 | + higherBound = 1200 # Higher bound for the requests' response time to track in the reports and the console summary |
| 72 | + percentile1 = 50 # Value for the 1st percentile to track in the reports and the console summary |
| 73 | + percentile2 = 75 # Value for the 2nd percentile to track in the reports and the console summary |
| 74 | + percentile3 = 95 # Value for the 3rd percentile to track in the reports and the console summary |
| 75 | + percentile4 = 99 # Value for the 4th percentile to track in the reports and the console summary |
| 76 | + } |
| 77 | + } |
| 78 | + http { |
| 79 | + fetchedCssCacheMaxCapacity = 200 # Cache size for CSS parsed content, set to 0 to disable |
| 80 | + fetchedHtmlCacheMaxCapacity = 200 # Cache size for HTML parsed content, set to 0 to disable |
| 81 | + perUserCacheMaxCapacity = 200 # Per virtual user cache size, set to 0 to disable |
| 82 | + warmUpUrl = "https://gatling.io" # The URL to use to warm-up the HTTP stack (blank means disabled) |
| 83 | + pooledConnectionIdleTimeout = 60000 # Timeout in millis for a connection to stay idle in the pool |
| 84 | + requestTimeout = 60000 # Timeout in millis for performing an HTTP request |
| 85 | + enableHostnameVerification = false # When set to true, enable hostname verification: SSLEngine#setEndpointIdentificationAlgorithm("HTTPS") |
| 86 | + dns { |
| 87 | + queryTimeout = 5000 # Timeout in millis of each DNS query in millis |
| 88 | + maxQueriesPerResolve = 6 # Maximum allowed number of DNS queries for a given name resolution |
| 89 | + } |
| 90 | + } |
| 91 | + jms { |
| 92 | + replyTimeoutScanPeriod = 1000 # scan period for timed out reply messages |
| 93 | + } |
| 94 | + data { |
| 95 | + writers = [console, file] # The list of DataWriters to which Gatling write simulation data (currently supported : console, file) |
| 96 | + utcDateTime = true # Print date-times with the UTC zone instead of the System's default |
| 97 | + console { |
| 98 | + light = false # When set to true, displays a light version without detailed request stats |
| 99 | + writePeriod = 5 # Write interval, in seconds |
| 100 | + } |
| 101 | + enableAnalytics = true # Anonymous Usage Analytics (no tracking), please support |
| 102 | + } |
| 103 | +} |
0 commit comments