Config check for site property file

Description

This config check focuses on checking alluxio site property file before starting any Alluxio services. It will check whether the input keys and values are valid.

Our server-side configuration checker now checks if the configurations are consistent within their scope, but we do not check if property keys are misspelling and values are valid.

For keys are misspelling, we could use PropertyKey.isValid(key) to check. For configuration values, we have limited checks in the InstanceConfiguration.validate() now.

It will be better to add a field on PropertyKey describing the valid value range of properties, at least for numeric values.

For example, timeout is recommended to set between 1s to 10s. If a user gives a value of 10ms, we should show it as a configuration warning.

Environment

None

Status

Assignee

Unassigned

Reporter

Lu Qiu

Labels

None

Components

Affects versions

Priority

Major
Configure