-
Notifications
You must be signed in to change notification settings - Fork 897
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
boot skips all seeding with env variable #14207
Conversation
@kbrock Are you saying the appliance skips primordial seed by default? I don't see it being set here Is this setting only for performance and development testing? |
@jrafanie that setting is only used for performance and development |
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 am tentatively liking it.
@kbrock My only problem is this |
@jrafanie Ok. As it stands, the environment variable will skip the primordial seeding but not skip the other seeding. Not good. This PR is a minimal change to fix the problem and buy us time before we properly seed the database. Not on every evm start. |
@kbrock yeah, but it's called |
Maybe the simpler |
hehe, naming is hard. Great idea, @chessbyte |
thanks. I was told that was too short ;) #6672 (comment) 🚌 |
@chessbyte thanks. changed name to Any other changes? |
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, just squash the commits unless you think they stand alone... and update the description @kbrock
with environment variable. It was just skipping half the seeds. rename SKIP_PRIMORDIAL_SEED to SKIP_SEEDING
Some comments on commit kbrock@31241cd lib/evm_database.rb
|
Checked commit kbrock@31241cd with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 lib/evm_database.rb
|
commit 31241cd (PR ManageIQ#14207 ) no longer seeds the remaining data. swapped the if to seed it by default
commit 31241cd37 (PR ManageIQ/manageiq#14207 ) no longer seeds the remaining data. swapped the if to seed it by default (transferred from ManageIQ/manageiq@37c433d)
This is a follow-up to #6672
We need to reboot
rails s
dozens of times a day as we run performance tests, often in production mode.On appliance startup, the environment variable
SKIP_PRIMORDIAL_SEED
SKIP_SEEDING
is consulted when booting the appliance to skip seeding the database.Using a docker db, local
rails s
takes 18s. Using this flag takes it down to 9s (50% savings).For evm server, it was only skipping the first half of the seeding. This PR skips the second half of seeding
/cc @jrafanie @Fryguy @chrisarcand same actors as last round.