Skip to content
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 limits colums to conversion_hosts table #272

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

ghost
Copy link

@ghost ghost commented Sep 17, 2018

This adds colums to model V2V throttling limits at conversion host level.

@ghost
Copy link
Author

ghost commented Sep 17, 2018

@miq-bot add-label gaprindashvili/no, schema, transformation
@miq-bot add-reviewer agrare

class AddConversionHostLimitsColumns < ActiveRecord::Migration[5.0]
def change
change_table :conversion_hosts do |t|
t.string :limits_max_concurrent_transformations
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the naming and plualization here, also limit + max seems redundant. Wouldn't this be clearer as concurrent_transformation_limit?

def change
change_table :conversion_hosts do |t|
t.string :limits_max_concurrent_transformations
t.string :limits_max_cpu
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for these, I think they would read better as <metric>_limit or max_used_<metric>.

Also, just for my own curiosity, are these metrics on the conversion host or limits on the VMs this host can convert?

@ghost ghost force-pushed the v2v_add_conversion_host_limits branch from c3e5c6c to 5070b58 Compare September 17, 2018 15:45
@miq-bot
Copy link
Member

miq-bot commented Sep 17, 2018

Checked commit fabiendupont@5070b58 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@ghost
Copy link
Author

ghost commented Sep 17, 2018

@agrare Commit squashed.

@agrare agrare merged commit 41028fd into ManageIQ:master Sep 18, 2018
@agrare agrare added this to the Sprint 95 Ending Sep 24, 2018 milestone Sep 18, 2018
@ghost ghost deleted the v2v_add_conversion_host_limits branch September 27, 2018 09:34
@Fryguy Fryguy added v2v and removed transformation labels Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants