-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add a setting to only send DELETED notices #154
Add a setting to only send DELETED notices #154
Conversation
@agrare can you please explain why/when |
config/settings.yml
Outdated
@@ -70,6 +70,7 @@ | |||
:poll: 20.seconds | |||
:ems_inventory_collector_worker: | |||
:ems_inventory_collector_worker_kubernetes: | |||
:deleted_notices_only: false |
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.
I wonder if we should rather expose what types to store? filter_notice_types: ['DELETED', ...] . As it might be ok to do DELETED + MODIFIED for g-release?
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.
thought about that too, I'm good with making it more complex when you have use for it
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.
ok
@moolitayer the content of the delete notice also still has the full spec of the pod so we can create the pod record from just the deletes. If we only care about not missing a pod then this will satisfy that. |
If we plan to release with true It's seems desired to test if the delete really is enough for the metrics collection too. If that should be enough for us maybe we don't need to stress + test the queue any more then that? |
@agrare @moolitayer makes sense to switch on true by default and test mainly that. We can test with false on some big env later. |
25d45b3
to
a210725
Compare
Checked commit agrare@a210725 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
Okay defaulted to true |
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.
👍
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.
LGTM 👍
Add a setting to only send DELETED notices (cherry picked from commit 41a8bbe)
Gaprindashvili backport details:
|
This adds a setting to the InventoryCollectorWorker which allows for only DELETED pod notices to be sent, thus reducing the traffic hitting MiqQueue.