-
Notifications
You must be signed in to change notification settings - Fork 18
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
Does one profile allow multiple fanout? #12
Comments
@snakwu Could you say more about what you are asking? If I'm reading your question correctly the answer is yes...but I'm not sure I'm reading it correctly :) |
我一直关注你的这个插件,我想用来做dns分流,不知道一个区域,可用多次这个插件吗? |
还有,except参数,可否改用map查询列表方式来排除,except列表我填了7万多个域名 |
@snakwu apologies... I cannot read chinese |
online translation? |
Hello @snakwu,
If you meant something like this
then yes, it does.
Interesting case... I'm not sure that it will work fast because of Did you ask Coredns about the case with 70 000 ignore domains? Probably they have some plugin for ignoring a ton of domains. |
coredns需说不能超16个,但我填了7万个也一样工作,但怎才让他更好的工作是个问题 |
. { 这样配置可以吗,我想要的是不在except列表的用IP1和IP2查询,如果在列表的就跳转到下个fanout用IP3和IP4查询 |
Probably we can improve There are two entry points if you want to patch it:
Yes, in general, it should work. Let us know if it will not work :) |
Thank you very much!如果说用map的算法是否能更有效的工作?其体我也不懂 |
. { is not work! |
Not sure that we can just use a map there. I think first we need to check how works this method https://github.com/coredns/coredns/blob/master/plugin/normalize.go#L21.
Oops, I forgot that we have this check. Comment above is updated |
据我了解到,有人修改了forward实现map算法,请参考: https://github.com/missdeer/coredns_custom_build/blob/master/forward.go.patch |
Interesting, then you can just apply this patch for fanout plugin. Also, you need to add an option to load ton entries from the file. I suggest adding here https://github.com/networkservicemesh/fanout/blob/master/setup.go#L155 case |
soory!我对修改代码不是很熟悉,还得靠你们实现!非常感谢这么好的项目 |
@edwarnicke Do you have any concerns related to this plugin |
@denis-tingajkin I don't think so... it sounds like you are simply adding additional functionality, not changing core functionality... delighted that this is useful to others :) |
何时能实现map算法? |
@fkautz can we spend time on this issue? It will not be used in NSM scenarios but can be used by fanout plugin users. |
@snakwu PR has been merged, can you please check is this problem still actual? |
ok,马上测试,等了两天了,为什么每次合并都要等待那么久! |
我填写了7万多8万条except,现在明显比之前快了!! |
@snakwu Sounds good. Can we close this issue? |
ok,这个map算法还是有效的,这个issue可以关了,有问题我再及时反馈,非常感谢你的付出! |
Fixed by #17 |
但还有一个发现,就是在多个dns服务器中查询问题,往往反回的不是最快的ip查询结果,还麻烦你留意下这方面看可不可以优化一下,谢谢 |
@denis-tingajkin ps:如果except-file文件更新了,他对于reload有效吗?会重新加载吗? |
Does one profile allow multiple fanout?
Used for dns shunt parallel query
The text was updated successfully, but these errors were encountered: