Skip to content

Commit

Permalink
algo: no splitting error messages
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Zhu <zzqshu@126.com>
  • Loading branch information
zqzten committed Oct 24, 2023
1 parent a97402e commit 4002620
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions algorithm/kapacity/portrait/horizontal/predictive/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,10 @@ def predict_replicas(args, metric_ctx, pred_traffics):
int(args.re_time_delta_hours),
int(args.re_test_dataset_size_in_seconds))
if 'NO_RESULT' in pred['rule_code'].unique():
raise RuntimeError('there exist points that no replica number would meet the resource target, '
'please consider setting a more reasonable resource target')
raise RuntimeError('there exist points that no replica number would meet the resource target, please consider setting a more reasonable resource target')
return pred
except estimator.EstimationException as e:
raise RuntimeError("replicas estimation failed, this may be caused by"
"insufficient or irregular history data") from e
raise RuntimeError("replicas estimation failed, this may be caused by insufficient or irregular history data") from e


def merge_history_dict(history_dict):
Expand Down

0 comments on commit 4002620

Please sign in to comment.