Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 2 #813

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions yandextank/plugins/Autostop/criterions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.seconds_count = 0
params = param_str.split(',')
params = param_str.split(',', 2)
self.rt_limit = expand_to_milliseconds(params[0])
self.seconds_limit = expand_to_seconds(params[1])
self.autostop = autostop
Expand Down Expand Up @@ -96,7 +96,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.seconds_count = 0
params = param_str.split(',')
params = param_str.split(',', 3)
self.codes_mask = params[0].lower()
self.codes_regex = re.compile(self.codes_mask.replace("x", '.'))
self.autostop = autostop
Expand Down Expand Up @@ -198,7 +198,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.seconds_count = 0
params = param_str.split(',')
params = param_str.split(',', 3)
self.codes_mask = params[0].lower()
self.codes_regex = re.compile(self.codes_mask.replace("x", '.'))
self.autostop = autostop
Expand Down Expand Up @@ -308,7 +308,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.seconds_count = 0
params = param_str.split(',')
params = param_str.split(',', 3)
self.quantile = float(params[0])
self.rt_limit = expand_to_milliseconds(params[1])
self.seconds_limit = expand_to_seconds(params[2])
Expand Down
14 changes: 7 additions & 7 deletions yandextank/plugins/Autostop/cumulative_criterions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.autostop = autostop
params = param_str.split(',')
params = param_str.split(',', 3)
self.rt_limit = expand_to_milliseconds(params[0]) * 1000
self.fail_ratio_limit = float(params[1][:-1]) / 100.0
self.window_size = expand_to_seconds(params[2])
Expand Down Expand Up @@ -139,7 +139,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.seconds_count = 0
params = param_str.split(',')
params = param_str.split(',', 3)
self.codes_mask = params[0].lower()
self.codes_regex = re.compile(self.codes_mask.replace("x", '.'))
self.autostop = autostop
Expand Down Expand Up @@ -245,7 +245,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.seconds_count = 0
params = param_str.split(',')
params = param_str.split(',', 3)
self.codes_mask = params[0].lower()
self.codes_regex = re.compile(self.codes_mask.replace("x", '.'))
self.autostop = autostop
Expand Down Expand Up @@ -362,7 +362,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.seconds_count = 0
params = param_str.split(',')
params = param_str.split(',', 3)
self.codes_mask = params[0].lower()
self.codes_regex = re.compile(self.codes_mask.replace("x", '.'))
self.autostop = autostop
Expand Down Expand Up @@ -476,7 +476,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.seconds_count = 0
params = param_str.split(',')
params = param_str.split(',', 3)
self.codes_mask = params[0].lower()
self.codes_regex = re.compile(self.codes_mask.replace("x", '.'))
self.autostop = autostop
Expand Down Expand Up @@ -595,7 +595,7 @@ def get_type_string():
def __init__(self, autostop, param_str):
AbstractCriterion.__init__(self)
self.seconds_count = 0
params = param_str.split(',')
params = param_str.split(',', 3)
self.codes_mask = params[0].lower()
self.codes_regex = re.compile(self.codes_mask.replace("x", '.'))
self.autostop = autostop
Expand Down Expand Up @@ -705,7 +705,7 @@ def __init__(self, autostop, param_str):
# self.data = deque()
# self.second_window = deque()

# params = param_str.split(',')
# params = param_str.split(',', 3)
# # qunatile in ms
# self.timing = expand_to_milliseconds(params[0])
# # width of time in seconds
Expand Down