-
Notifications
You must be signed in to change notification settings - Fork 69
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
Update driven refresh #186
Conversation
2e57b29
to
ece190c
Compare
eb2aef6
to
45506c7
Compare
e22e65a
to
d98fca6
Compare
d98fca6
to
b3049f0
Compare
fdc6b8a
to
b43dbf7
Compare
Checked commits agrare/manageiq-providers-vmware@d8f0d40~...b43dbf7 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
b43dbf7
to
ca1252f
Compare
enabled = props["configuration.drsConfig.enabled"] | ||
cluster_hash[:drs_enabled] = enabled.to_s.downcase == "true" | ||
end | ||
if props.include?("configuration.drsConfig.defaultVmBehavior") |
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.
so, we will set a nil, instead of not having the :key ?
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.
Now that we're caching the properties we don't have to worry about getting a sparse update.
When we move to not cache some properties we'll need to go back to checking for every key that we don't cache but this way I find is more readable in the meant time
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.
👍 awesome change, we'll go with incremental improvements, so we do not need to cache the full state
Revert "Support TTL (Time To Live) value for services."
This change takes the existing cache-less update driven refresh and cached all of the inventory in order to fix a number of issues with parsing to our schema without having all of the inventory cached.
The goal here is to get the update-driven part of this style of refresh in then work on reducing the cache footprint instead of trying to get it all in at once.
As much as was possible I took the cache code from the existing VimBroker but I added tests which it never had https://github.com/ManageIQ/manageiq-providers-vmware/pull/186/files#diff-e11e8b8028111e573bec9a54002835ff