Generator configuration
maxHistoryEvents
Commentary
added in 0.5.3
local configuration
global configuration
The number of events to retain in memory for this generator (defaults to 1000000). Increase this value to make lookup operations richer, decrease it to require less memory.
Note that history is only retained when other generators run a lookup against it. Otherwise, ShadowTraffic optimizes memory footprint by not storing history.
Examples
Local configuration
Use localConfigs to set the history limit locally for one generator.
{
"generators": [
{
"table": "orders",
"row": {
"orderId": {
"_gen": "uuid"
},
"orderDate": {
"_gen": "dateToday"
}
},
"localConfigs": {
"maxHistoryEvents": 5000
}
}
]
}
Global configuration
Use globalConfigs to set the history limit globally for all generators.
{
"generators": [
{
"table": "orders",
"row": {
"orderId": {
"_gen": "uuid"
},
"orderDate": {
"_gen": "dateToday"
}
}
}
],
"globalConfigs": {
"maxHistoryEvents": 10000
}
}
Specification
JSON schema
{
"type": "integer",
"minimum": 0
}