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

Change mechanism for component evaluation #6

Merged
merged 1 commit into from
Mar 29, 2019
Merged

Change mechanism for component evaluation #6

merged 1 commit into from
Mar 29, 2019

Conversation

gotwarlost
Copy link
Contributor

Previously components were evaluated by creating a megacomponent that imported
JSON, YAML and JSONNET files. This provided little to no context for errors.

We change this to evaluate every component in its own jsonnet VM.
Processing components like this sequentially leads to 30-40% overhead so we need to evaluate
components concurrently. This is done with a default concurrency of 5. The user
can change this number using the persistent --eval-concurrency flag.

This change reduces the time to evaluate a large set of components and produces better messages
that have the failed component name when things do not load correctly.

Previously components were evaluated by creating a megacomponent that imported
JSON, YAML and JSONNET files. This provided little to no context for errors.

We change this to evaluate every component in its own jsonnet VM.
Processing components like this sequentially  leads to 30-40% overhead so we need to evaluate
components concurrently. This is done with a default concurrency of 5. The user
can change this number using the persistent `--eval-concurrency` flag.

This change reduces the time to evaluate a large set of components _and_ produces better messages
that have the failed component name when things do not load correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant