Skip to content

Commit

Permalink
updating gatling conf template
Browse files Browse the repository at this point in the history
  • Loading branch information
harikrishnan83 committed Jul 9, 2021
1 parent 292b77c commit 9171f27
Showing 1 changed file with 58 additions and 54 deletions.
112 changes: 58 additions & 54 deletions templates/gatling.conf
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
#########################
# Gatling Configuration #
#########################

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

gatling {
core {
outputDirectoryBaseName = "" # The prefix for each simulation result folder (then suffixed by the report generation timestamp)
runDescription = "" # The description for this simulation run, displayed in each report
encoding = "utf-8" # Encoding to use throughout Gatling for file and string manipulation
#simulationClass = "perf.GatlingSoakSimulation" # The FQCN of the simulation to run (when used in conjunction with noReports, the simulation for which assertions will be validated)
elFileBodiesCacheMaxCapacity = 200 # Cache size for request body EL templates, set to 0 to disable
rawFileBodiesCacheMaxCapacity = 200 # Cache size for request body Raw templates, set to 0 to disable
rawFileBodiesInMemoryMaxSize = 1000 # Below this limit, raw file bodies will be cached in memory
pebbleFileBodiesCacheMaxCapacity = 200 # Cache size for request body Peeble templates, set to 0 to disable
shutdownTimeout = 10000 # Milliseconds to wait for the actor system to shutdown
simulationClass = "" # The FQCN of the simulation to run (when used in conjunction with noReports, the simulation for which assertions will be validated)
elFileBodiesCacheMaxCapacity = 200 # Cache size for request body EL templates, set to 0 to disable
rawFileBodiesCacheMaxCapacity = 200 # Cache size for request body Raw templates, set to 0 to disable
rawFileBodiesInMemoryMaxSize = 1000 # Below this limit, raw file bodies will be cached in memory
pebbleFileBodiesCacheMaxCapacity = 200 # Cache size for request body Peeble templates, set to 0 to disable
feederAdaptiveLoadModeThreshold = 100 # File size threshold (in MB). Below load eagerly in memory, above use batch mode with default buffer size
shutdownTimeout = 10000 # Milliseconds to wait for the actor system to shutdown
extract {
regex {
cacheMaxCapacity = 200 # Cache size for the compiled regexes, set to 0 to disable caching
Expand All @@ -22,18 +25,51 @@ gatling {
}
jsonPath {
cacheMaxCapacity = 200 # Cache size for the compiled jsonPath queries, set to 0 to disable caching
preferJackson = false # When set to true, prefer Jackson over Boon for JSON-related operations
}
css {
cacheMaxCapacity = 200 # Cache size for the compiled CSS selectors queries, set to 0 to disable caching
}
}
directory {
simulations = src/gatling/simulations # Directory where simulation classes are located (for bundle packaging only)
resources = src/gatling/resources # Directory where resources, such as feeder files and request bodies are located (for bundle packaging only)
reportsOnly = "" # If set, name of report folder to look for in order to generate its report
binaries = "" # If set, name of the folder where compiles classes are located: Defaults to GATLING_HOME/target.
results = results # Name of the folder where all reports folder are located
simulations = src/gatling/simulations # If set, directory where simulation classes are located
resources = src/gatling/resources # If set, directory where resources, such as feeder files and request bodies, are located
reportsOnly = "" # If set, name of report folder to look for in order to generate its report
binaries = "" # If set, name of the folder where compiles classes are located: Defaults to GATLING_HOME/target.
results = results # Name of the folder where all reports folder are located
}
}
socket {
connectTimeout = 10000 # Timeout in millis for establishing a TCP socket
tcpNoDelay = true
soKeepAlive = false # if TCP keepalive configured at OS level should be used
soReuseAddress = false
}
netty {
useNativeTransport = true # if Netty native transport should be used instead of Java NIO
allocator = "pooled" # switch to unpooled for unpooled ByteBufAllocator
maxThreadLocalCharBufferSize = 200000 # Netty's default is 16k
}
ssl {
useOpenSsl = true # if OpenSSL should be used instead of JSSE (only the latter can be debugged with -Djava.net.debug=ssl)
useOpenSslFinalizers = false # if OpenSSL contexts should be freed with Finalizer or if using RefCounted is fine
handshakeTimeout = 10000 # TLS handshake timeout in millis
useInsecureTrustManager = true # Use an insecure TrustManager that trusts all server certificates
enabledProtocols = [] # Array of enabled protocols for HTTPS, if empty use Netty's defaults
enabledCipherSuites = [] # Array of enabled cipher suites for HTTPS, if empty enable all available ciphers
sessionCacheSize = 0 # SSLSession cache size, set to 0 to use JDK's default
sessionTimeout = 0 # SSLSession timeout in seconds, set to 0 to use JDK's default (24h)
enableSni = true # When set to true, enable Server Name indication (SNI)
keyStore {
type = "" # Type of SSLContext's KeyManagers store
file = "" # Location of SSLContext's KeyManagers store
password = "" # Password for SSLContext's KeyManagers store
algorithm = "" # Algorithm used SSLContext's KeyManagers store
}
trustStore {
type = "" # Type of SSLContext's TrustManagers store
file = "" # Location of SSLContext's TrustManagers store
password = "" # Password for SSLContext's TrustManagers store
algorithm = "" # Algorithm used by SSLContext's TrustManagers store
}
}
charting {
Expand All @@ -53,53 +89,21 @@ gatling {
fetchedCssCacheMaxCapacity = 200 # Cache size for CSS parsed content, set to 0 to disable
fetchedHtmlCacheMaxCapacity = 200 # Cache size for HTML parsed content, set to 0 to disable
perUserCacheMaxCapacity = 200 # Per virtual user cache size, set to 0 to disable
warmUpUrl = "https://gatling.io" # The URL to use to warm-up the HTTP stack (blank means disabled)
enableGA = true # Very light Google Analytics, please support
ssl {
keyStore {
type = "" # Type of SSLContext's KeyManagers store
file = "" # Location of SSLContext's KeyManagers store
password = "" # Password for SSLContext's KeyManagers store
algorithm = "" # Algorithm used SSLContext's KeyManagers store
}
trustStore {
type = "" # Type of SSLContext's TrustManagers store
file = "" # Location of SSLContext's TrustManagers store
password = "" # Password for SSLContext's TrustManagers store
algorithm = "" # Algorithm used by SSLContext's TrustManagers store
}
}
ahc {
connectTimeout = 10000 # Timeout in millis for establishing a TCP socket
handshakeTimeout = 10000 # Timeout in millis for performing TLS handshake
pooledConnectionIdleTimeout = 60000 # Timeout in millis for a connection to stay idle in the pool
maxRetry = 2 # Number of times that a request should be tried again
requestTimeout = 60000 # Timeout in millis for performing an HTTP request
enableSni = true # When set to true, enable Server Name indication (SNI)
enableHostnameVerification = false # When set to true, enable hostname verification: SSLEngine.setHttpsEndpointIdentificationAlgorithm("HTTPS")
useInsecureTrustManager = true # Use an insecure TrustManager that trusts all server certificates
sslEnabledProtocols = [TLSv1.2, TLSv1.1, TLSv1] # Array of enabled protocols for HTTPS, if empty use the JDK defaults
sslEnabledCipherSuites = [] # Array of enabled cipher suites for HTTPS, if empty use the AHC defaults
sslSessionCacheSize = 0 # SSLSession cache size, set to 0 to use JDK's default
sslSessionTimeout = 0 # SSLSession timeout in seconds, set to 0 to use JDK's default (24h)
useOpenSsl = true # if OpenSSL should be used instead of JSSE
useNativeTransport = false # if native transport should be used instead of Java NIO (requires netty-transport-native-epoll, currently Linux only)
enableZeroCopy = true # if zero-copy upload should be used if possible
tcpNoDelay = true
soReuseAddress = false
allocator = "pooled" # switch to unpooled for unpooled ByteBufAllocator
maxThreadLocalCharBufferSize = 200000 # Netty's default is 16k
}
warmUpUrl = "https://gatling.io" # The URL to use to warm-up the HTTP stack (blank means disabled)
enableGA = true # Very light Google Analytics (Gatling and Java version), please support
pooledConnectionIdleTimeout = 60000 # Timeout in millis for a connection to stay idle in the pool
requestTimeout = 60000 # Timeout in millis for performing an HTTP request
enableHostnameVerification = false # When set to true, enable hostname verification: SSLEngine.setHttpsEndpointIdentificationAlgorithm("HTTPS")
dns {
queryTimeout = 5000 # Timeout in millis of each DNS query in millis
maxQueriesPerResolve = 6 # Maximum allowed number of DNS queries for a given name resolution
queryTimeout = 5000 # Timeout in millis of each DNS query in millis
maxQueriesPerResolve = 6 # Maximum allowed number of DNS queries for a given name resolution
}
}
jms {
replyTimeoutScanPeriod = 1000 # scan period for timedout reply messages
}
data {
writers = [console, file, graphite] # The list of DataWriters to which Gatling write simulation data (currently supported : console, file, graphite, jdbc)
writers = [console, file, graphite] # The list of DataWriters to which Gatling write simulation data (currently supported : console, file, graphite)
console {
light = false # When set to true, displays a light version without detailed request stats
writePeriod = 5 # Write interval, in seconds
Expand All @@ -112,12 +116,12 @@ gatling {
}
graphite {
light = false # only send the all* stats
host = "influxdb" # The host where the Carbon server is located
host = "influxdb" # The host where the Carbon server is located
port = 2003 # The port to which the Carbon server listens to (2003 is default for plaintext, 2004 is default for pickle)
protocol = "tcp" # The protocol used to send data to Carbon (currently supported : "tcp", "udp")
rootPathPrefix = "gatling" # The common prefix of all metrics sent to Graphite
bufferSize = 8192 # Internal data buffer size, in bytes
writePeriod = 1 # Write period, in seconds
}
}
}
}

0 comments on commit 9171f27

Please sign in to comment.