-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Remove -cpu flag #2793
Remove -cpu flag #2793
Conversation
The -cpu flag is a weird one (and copied originally from Caddy), it basically sets GOMAXPROCS which can be *easily* done by just setting that environment variable. Also with systemd and containerized env you set this externally *anyway*, so there is little use to do this again in the binary. Also the option's help was confusing (i.e. percentage of what?). Remove the option and supporting files. Signed-off-by: Miek Gieben <miek@miek.nl>
Thank you for your contribution. I've just checked the OWNERS files to find a suitable reviewer. This search was successful and I've asked rajansandeep (via If you have questions or suggestions for this bot, please file an issue against the miekg/dreck repository. The bot understands the commands that are listed here. |
Codecov Report
@@ Coverage Diff @@
## master #2793 +/- ##
==========================================
+ Coverage 55.29% 55.53% +0.23%
==========================================
Files 201 200 -1
Lines 10202 10088 -114
==========================================
- Hits 5641 5602 -39
+ Misses 4144 4070 -74
+ Partials 417 416 -1
Continue to review full report at Codecov.
|
Do we need to follow deprecation policy here? Or is it safe to assume that no one is using this flag? |
[ Quoting <notifications@github.com> in "Re: [coredns/coredns] Remove -cpu f..." ]
Do we need to follow deprecation policy here? Or is it safe to assume that no one is using this flag?
dunno, who's using this?
|
and then we just move to 1.6 for the next release, problem solved. To power of semver to trigger discussion is so annoying, that I'm ready to drop the whole idea #sigh |
Jumping to 1.6 to avert the deprecation policy is a dubious loop hole. We haven't announce the flag as deprecated in a release, nor have we made it a no op in a release following the deprecation announcement. So it doesn't follow our policy as written. |
[ Quoting <notifications@github.com> in "Re: [coredns/coredns] Remove -cpu f..." ]
> and then we just move to 1.6 for the next release, problem solved.
Jumping to 1.6 to avert the deprecation policy is a dubious loop hole. We haven't announce the flag as deprecated in a release, nor have we made it a no op in a release following the deprecation announcement. So it doesn't follow our policy as written.
you're making my point. Thank you #sigh
|
No comments after 4 day, interest looks low, so I'll remove this. Means next release is 1.6.0; so we can maybe pile in some other incompatible changes. We already have the resyncperiod one in k8s. |
I'm on a team currently using the |
[ Quoting <notifications@github.com> in "Re: [coredns/coredns] Remove -cpu f..." ]
I'm on a team currently using the `-cpu` flag, so if this is merged, a deprecation notice would be appreciated
Thanks! That implies the next release will probably be 1.6.0, unless we need
some smaller fixes sooner (which will then be 1.5.2, with -cpu still in it)
|
The -cpu flag is a weird one (and copied originally from Caddy), it basically sets GOMAXPROCS which can be *easily* done by just setting that environment variable. Also with systemd and containerized env you set this externally *anyway*, so there is little use to do this again in the binary. Also the option's help was confusing (i.e. percentage of what?). Remove the option and supporting files. Signed-off-by: Miek Gieben <miek@miek.nl>
The -cpu flag is a weird one (and copied originally from Caddy), it
basically sets GOMAXPROCS which can be easily done by just setting
that environment variable. Also with systemd and containerized env you
set this externally anyway, so there is little use to do this again in
the binary.
Also the option's help was confusing (i.e. percentage of what?). Remove
the option and supporting files.