Add streaming param #184

Merged
abereziny merged 1 commit from abereziny/frostfs-testlib:feature-add-streaming-support into master 2024-02-20 10:55:18 +00:00
2 changed files with 15 additions and 0 deletions

View file

@ -221,6 +221,8 @@ class LoadParams:
)
# Percentage of filling of all data disks on all nodes
fill_percent: Optional[float] = None
# if set, the payload is generated on the fly and is not read into memory fully.
streaming: Optional[int] = metadata_field(all_load_scenarios, None, "STREAMING", False)
# ------- COMMON SCENARIO PARAMS -------
# Load time is the maximum duration for k6 to give load. Default is the BACKGROUND_LOAD_DEFAULT_TIME value.

View file

@ -156,6 +156,7 @@ class TestLoadConfig:
"READERS": 7,
"DELETERS": 8,
"READ_AGE": 8,
"STREAMING": 9,
"PREGEN_JSON": "pregen_json",
"PREPARE_LOCALLY": True,
}
@ -195,6 +196,7 @@ class TestLoadConfig:
"READ_RATE": 9,
"READ_AGE": 8,
"DELETE_RATE": 11,
"STREAMING": 9,
"PREPARE_LOCALLY": True,
}
@ -225,6 +227,7 @@ class TestLoadConfig:
"READERS": 7,
"DELETERS": 8,
"READ_AGE": 8,
"STREAMING": 9,
"NO_VERIFY_SSL": True,
"PREGEN_JSON": "pregen_json",
}
@ -265,6 +268,7 @@ class TestLoadConfig:
"WRITE_RATE": 10,
"READ_RATE": 9,
"READ_AGE": 8,
"STREAMING": 9,
"DELETE_RATE": 11,
}
@ -303,6 +307,7 @@ class TestLoadConfig:
"WRITE_RATE": 10,
"READ_RATE": 9,
"READ_AGE": 8,
"STREAMING": 9,
"DELETE_RATE": 11,
}
@ -335,6 +340,7 @@ class TestLoadConfig:
"READERS": 7,
"DELETERS": 8,
"READ_AGE": 8,
"STREAMING": 9,
"PREGEN_JSON": "pregen_json",
}
@ -366,6 +372,7 @@ class TestLoadConfig:
"READERS": 7,
"DELETERS": 8,
"READ_AGE": 8,
"STREAMING": 9,
"PREGEN_JSON": "pregen_json",
}
@ -418,6 +425,7 @@ class TestLoadConfig:
"READERS": 0,
"DELETERS": 0,
"READ_AGE": 0,
"STREAMING": 0,
"PREGEN_JSON": "",
"PREPARE_LOCALLY": False,
}
@ -455,6 +463,7 @@ class TestLoadConfig:
"READ_RATE": 0,
"DELETE_RATE": 0,
"READ_AGE": 0,
"STREAMING": 0,
"PREPARE_LOCALLY": False,
}
@ -483,6 +492,7 @@ class TestLoadConfig:
"READERS": 0,
"DELETERS": 0,
"READ_AGE": 0,
"STREAMING": 0,
"NO_VERIFY_SSL": False,
"PREGEN_JSON": "",
}
@ -521,6 +531,7 @@ class TestLoadConfig:
"READ_RATE": 0,
"DELETE_RATE": 0,
"READ_AGE": 0,
"STREAMING": 0,
}
self._check_preset_params(load_params, expected_preset_args)
@ -549,6 +560,7 @@ class TestLoadConfig:
"READERS": 0,
"DELETERS": 0,
"READ_AGE": 0,
"STREAMING": 0,
"PREGEN_JSON": "",
}
@ -578,6 +590,7 @@ class TestLoadConfig:
"READERS": 0,
"DELETERS": 0,
"READ_AGE": 0,
"STREAMING": 0,
"PREGEN_JSON": "",
}