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

[feature] Hook operator add fast Successful Option. #766

Closed
wenxinlee2015 opened this issue Feb 2, 2021 · 1 comment
Closed

[feature] Hook operator add fast Successful Option. #766

wenxinlee2015 opened this issue Feb 2, 2021 · 1 comment
Assignees
Labels
confirmed issue is confirmed feature new feature inner issue comes from Tencent side
Milestone

Comments

@wenxinlee2015
Copy link
Collaborator

feature相关背景与描述
hook判定该metric是否成功时,增加满足“成功次数、连续成功次数”的情形,使得gdp、gsts控制器快速进入更新或删除操作,无需等到count数量为止。

解决方案描述
在hook template中增加该2个字段,hook-operator进行每次task时,统计该2个字段的值;metric更新状态时参考此字段来更新metric状态。

其他可行性方案分析
暂无

其他补充信息
暂无

@wenxinlee2015
Copy link
Collaborator Author

已开发自测完成,用户接入测试中
template示例:

spec:
  metrics:
  - name: webtest
    count: 30
    interval: 10s
    failureLimit: 20
    successfulLimit: 5
    failureCondition: "asInt(result) != 1"
    provider:
      web:
        url: http://svc-goserver.wessonli-test:8080/todos/1
        jsonPath: "{$.id}"
  - name: webtest2
    count: 30
    interval: 10s
    failureLimit: 20
    consecutiveSuccessfulLimit: 2
    failureCondition: "asInt(result) != 2"
    provider:
      web:
        url: http://svc-goserver.wessonli-test:8080/todos/2
        jsonPath: "{$.id}"

@DeveloperJim DeveloperJim added confirmed issue is confirmed inner issue comes from Tencent side k8s labels Feb 24, 2021
@DeveloperJim DeveloperJim added this to the 1.20.x milestone Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed issue is confirmed feature new feature inner issue comes from Tencent side
Projects
None yet
Development

No branches or pull requests

2 participants