simple - qlik-oss/gopherciser GitHub Wiki
Settings specific to the simple scheduler.
-
type: Type of scheduler-
simple: Standard scheduler
-
-
iterationtimebuffer:-
mode: Time buffer mode. Defaults tonowait, if omitted.-
nowait: No time buffer in between the iterations. -
constant: Add a constant time buffer after each iteration. Defined byduration. -
onerror: Add a time buffer in case of an error. Defined byduration. -
minduration: Add a time buffer if the iteration duration is less thanduration.
-
-
duration: Duration of the time buffer (for example,500ms,30sor1m10s). Valid time units arens,us(orµs),ms,s,m, andh.
-
-
instance: Instance number for this instance. Use different instance numbers when running the same script in multiple instances to make sure the randomization is different in each instance. Defaults to 1. -
reconnectsettings: Settings for enabling re-connection attempts in case of unexpected disconnects.-
reconnect: Enable re-connection attempts if the WebSocket is disconnected. Defaults tofalse. -
backoff: Re-connection backoff scheme. Defaults to[0.0, 2.0, 2.0, 2.0, 2.0, 2.0, 4.0, 4.0, 8.0, 12.0, 16.0], if left empty. An example backoff scheme could be[0.0, 1.0, 10.0, 20.0]:-
0.0: If the WebSocket is disconnected, wait 0.0s before attempting to re-connect -
1.0: If the previous attempt to re-connect failed, wait 1.0s before attempting again -
10.0: If the previous attempt to re-connect failed, wait 10.0s before attempting again -
20.0: If the previous attempt to re-connect failed, wait 20.0s before attempting again
-
-
-
settings:-
executionTime: Test execution time (seconds). The sessions are disconnected when the specified time has elapsed. Allowed values are positive integers.-1means an infinite execution time. -
iterations: Number of iterations for each 'concurrent' user to repeat. Allowed values are positive integers.-1means an infinite number of iterations. -
rampupDelay: Time delay (seconds) scheduled in between each concurrent user during the startup period. -
concurrentUsers: Number of concurrent users to simulate. Allowed values are positive integers. -
reuseUsers:-
true: Every iteration for each concurrent user uses the same user and session. -
false: Every iteration for each concurrent user uses a new user and session. The total number of users is the product ofconcurrentusersanditerations.
-
-
onlyinstanceseed: Disable session part of randomization seed. Defaults tofalse, if omitted.-
true: All users and sessions have the same randomization sequence, which only changes if theinstanceflag is changed. -
false: Normal randomization sequence, dependent on both theinstanceparameter and the current user session.
-
-
If reconnectsettings.reconnect is enabled, the following is attempted:
- Re-connect the WebSocket.
- Get the currently opened app in the re-attached engine session.
- Re-subscribe to the same object as before the disconnection.
- If successful, the action during which the re-connect happened is logged as a successful action with
actionandlabelchanged toReconnect(action)andReconnect(label). - Restart the action that was executed when the disconnection occurred (unless it is a
thinktimeaction, which will not be restarted). - Log an info row with info type
WebsocketReconnectand with a semicolon-separateddetailssection as follows: "success=X;attempts=Y;TimeSpent=Z"-
X: True/false -
Y: An integer representing the number of re-connection attempts -
Z: The time spent re-connecting (ms)
-
Simple scheduler settings:
"scheduler": {
"type": "simple",
"settings": {
"executiontime": 120,
"iterations": -1,
"rampupdelay": 7.0,
"concurrentusers": 10
},
"iterationtimebuffer" : {
"mode": "onerror",
"duration" : "5s"
},
"instance" : 2
}Simple scheduler set to attempt re-connection in case of an unexpected WebSocket disconnection:
"scheduler": {
"type": "simple",
"settings": {
"executiontime": 120,
"iterations": -1,
"rampupdelay": 7.0,
"concurrentusers": 10
},
"iterationtimebuffer" : {
"mode": "onerror",
"duration" : "5s"
},
"reconnectsettings" : {
"reconnect" : true
}
}