-
Notifications
You must be signed in to change notification settings - Fork 83
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
Enable Dynamic Config Push #379
Conversation
16e3a1f
to
c4738fc
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #379 +/- ##
==========================================
+ Coverage 77.22% 77.26% +0.03%
==========================================
Files 75 75
Lines 10420 10519 +99
==========================================
+ Hits 8047 8127 +80
- Misses 1958 1968 +10
- Partials 415 424 +9 ☔ View full report in Codecov by Sentry. |
ffe28d8
to
14e2a5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 items
- I think we discussed having an interface so that OSS admiral will not have issues with Dynamo implementation
- I understand the call section where your NLB logic will be invoked is not done, but are we going with running the update only for changed clusters or all ?
admiral/pkg/clusters/dynamoDB.go
Outdated
items, err := client.svc.Query(&dbQuery) | ||
|
||
if err != nil { | ||
return configData, fmt.Errorf("Failed to fetch dynamic config : %s", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make sure we have this is a format where we can easily search example task=DynamicConfigGet etc in the log
admiral/pkg/clusters/types.go
Outdated
@@ -162,6 +164,12 @@ func NewRemoteRegistry(ctx context.Context, params common.AdmiralParams) *Remote | |||
serviceEntrySuspender = NewDummyServiceEntrySuspender() | |||
} | |||
|
|||
if common.IsAdmiralDynamicConfigEnable() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit pick can we make is IsAdmiralDynamicConfigEnabled
return false | ||
} | ||
|
||
if DynamicConfigCheckSum == sha256.Sum256([]byte(fmt.Sprintf("%v", config))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit pick, we had checked m5s vs sha256 for speed and cpu, for a different requirement and chose md5 for being a little fast and consuming a little less CPU
$ openssl speed md5 sha256
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
md5 51896.59k 156143.77k 336557.91k 472481.13k 536428.54k 543648.43k
sha256 42111.47k 120368.74k 247776.17k 335801.69k 376607.34k 377296.21k
admiral/cmd/admiral/cmd/root.go
Outdated
rootCmd.PersistentFlags().StringVar(¶ms.NLBEnabledClusters, "nlb_enabled_clusters", "", "Comma seperated list of enabled clusters to be enabled for NLB") | ||
rootCmd.PersistentFlags().StringVar(¶ms.NLBEnabledIdentityList, "nlb_enabled_identity_list", "", "Comma seperated list of enabled idenity list to be enabled for NLB") | ||
rootCmd.PersistentFlags().StringVar(¶ms.CLBEnabledClusters, "clb_enabled_clusters", "", "Comma seperated list of enabled clusters to be enabled for CLB") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this not be StringSliceVar ?
15b99ac
to
5fbda35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Signed-off-by: Viraj Kulkarni <[email protected]>
Checklist
🚨 Please review this repository's contribution guidelines.
Description
Adding support for pushing dynamic config.
[Link to related ISSUE]
Thank you!