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

添加自定义灰度,不单单依靠IP来推送灰度规则 #2932

Closed
linking12 opened this issue Feb 25, 2020 · 3 comments · Fixed by #4013
Closed

添加自定义灰度,不单单依靠IP来推送灰度规则 #2932

linking12 opened this issue Feb 25, 2020 · 3 comments · Fixed by #4013
Labels
discussion Categorizes issue as related to discussion feature request Categorizes issue as related to a new feature.

Comments

@linking12
Copy link

Is your feature request related to a problem? Please describe.
由于根据IP来推送灰度规则的话在容器化时不准确,因为IP总是变化(重启后IP就变化了)

Describe the solution you'd like
自定义一个标记位来推送灰度规则

Describe alternatives you've considered
自定义一个标记位来推送灰度规则

Additional context
Add any other context or screenshots about the feature request here.

@nobodyiam nobodyiam added the discussion Categorizes issue as related to discussion label Feb 29, 2020
@nobodyiam
Copy link
Member

是否有建议的实现思路?

@VLoye
Copy link

VLoye commented Mar 5, 2020

是否可以给每个client添加一个客户端标记的配置来绑定灰度规则呢?

@nobodyiam
Copy link
Member

nobodyiam commented Jan 30, 2021

可以尝试的思路:

  1. 灰度规则增加自定义标签配置能力,IP 和 AppId 抽象为系统默认标签
  2. 一条规则中的多个标签之间是 AND 的关系,比如同时配置了 ip 和 自定义标签,那么需要同时满足所有条件才能匹配上
  3. 之前私有 namespace 只有一条规则,需要扩展为支持多条规则,和公共 namespace 一样,多条规则之间是 OR 的关系
  4. 客户端定义自定义标签规范,可以从文件、system properties、system env 等多种途径获取标签的值
  5. config service 基于客户端的标签信息计算灰度匹配结果

zcy1010 added a commit to zcy1010Apollo/apollo that referenced this issue Oct 5, 2021
zcy1010 added a commit to zcy1010Apollo/apollo that referenced this issue Oct 6, 2021
zcy1010 added a commit to zcy1010Apollo/apollo that referenced this issue Oct 6, 2021
zcy1010 added a commit to zcy1010Apollo/apollo that referenced this issue Oct 7, 2021
zcy1010 added a commit to zcy1010Apollo/apollo that referenced this issue Oct 7, 2021
zcy1010 added a commit to zcy1010Apollo/apollo that referenced this issue Oct 7, 2021
nobodyiam pushed a commit that referenced this issue Oct 9, 2021
#4013)

* feature:expands grayscale publishing capabilities to support dimensions other than IP
fix #2932

* feature:expands grayscale publishing capabilities to support dimensions other than IP
fix #2932

* feature:expands grayscale publishing capabilities to support dimensions other than IP
fix #2932

* feature:expands grayscale publishing capabilities to support dimensions other than IP
fix #2932

* feature:expands grayscale publishing capabilities to support dimensions other than IP
fix #2932

* feature:expands grayscale publishing capabilities to support dimensions other than IP
fix #2932

* Merge branch 'master' into zcy

# Conflicts:
#	CHANGES.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Categorizes issue as related to discussion feature request Categorizes issue as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants