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

UCS/CONFIG: let ucx support configuration file #100

Open
wants to merge 3 commits into
base: integration3
Choose a base branch
from
Open

UCS/CONFIG: let ucx support configuration file #100

wants to merge 3 commits into from

Conversation

ybwang1cbs
Copy link

What

let ucx support configuration file

Why

Now we can use environment variable to set the configuration of UCX. Environment variable maybe not meet expectation if in a complex environmet. So I provide another way to set UCX configuration.

How

I use inih to read configuration file, which is BSD-3.
the prioirty of configuration: environment variable > config file > default.

@@ -1134,9 +1179,13 @@ static ucs_status_t ucs_config_apply_env_vars(void *opts, ucs_config_field_t *fi
} else {
/* Read and parse environment variable */
strncpy(buf + prefix_len, field->name, sizeof(buf) - prefix_len - 1);
/* environmental variavle prior to file config */

Choose a reason for hiding this comment

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

typo: s/variavle/variable

@yosefe yosefe added the On hold label Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants