Skip navigation links

Package co.cask.cdap.common.zookeeper.coordination

This package contains classes for performing coordination of resource allocation.

See: Description

Package co.cask.cdap.common.zookeeper.coordination Description

This package contains classes for performing coordination of resource allocation. The two important classes are ResourceCoordinator and ResourceCoordinatorClient. The ResourceCoordinator is expected to have single instance running and is responsible for matching PartitionReplica to Discoverable, based on the specification as described by ResourceRequirement. The actual strategy used for the matching is controlled by AssignmentStrategy. The ResourceCoordinatorClient is for the Discoverables who are interested in handling changes in resource assignment. It is also served as a admin interface for create/update/delete of ResourceRequirement. The coordination service is designed in a way that the interruption of ResourceCoordinator availability will only affect reassignment, triggered by new/update of resource requirement or changes in Discoverable. All current resource assignment would not be affected, meaning all clients should still be able to operate normally as long as they are up and running.
Skip navigation links

Copyright © 2018 Cask Data, Inc.. All rights reserved.