Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The only change in configuration is a new optional section in ZK in /clusterprops.json/poolConfigs. This section contains a map of pre-defined pools and their initial limits and properties.

Currently the PR doesn't use any other configuration files or system properties. Also, the updates to the pool configuration are not persisted (or watched for) yet.

Remote API

There's a new handler ResourceManagerHandler accessible at /admin/resources (v1 API only for now - I plan to add v2 API once the functionality stabilizes).

NOTE: Persisting the changes is not yet implemented in the PR. Also, the handler supports only local operations - it needs to be modified to dispatch operations to all live nodeswatch the changes in the config file in ZK and modify local pools and resources accordingly.

Operations that select named items (pools or resources) all treat the name as a prefix, ie. the selected items are those that match the prefix provided as the name parameter.

...