Apache Helix is a generic cluster management framework used for the automatic management of partitioned, replicated and distributed resources hosted on a cluster of nodes. Helix automates reassignment of resources in the face of node failure and recovery, cluster expansion, and reconfiguration.
To understand Helix, you first need to understand cluster management. A distributed system typically runs on multiple nodes for the following reasons:
Each node performs one or more of the primary functions of the cluster, such as storing and serving data, producing and consuming data streams, and so on. Once configured for your system, Helix acts as the global brain for the system. It is designed to make decisions that cannot be made in isolation. Examples of such decisions that require global knowledge and coordination:
While it is possible to integrate these functions into the distributed system, it complicates the code. Helix has abstracted common cluster management tasks, enabling the system builder to model the desired behavior with a declarative state model, and let Helix manage the coordination. The result is less new code to write, and a robust, highly operable system.
Modeling a distributed system as a state machine with constraints on states and transitions has the following benefits:
Apache Helix has a new release:
1.0.4 - A release containing major feature of cross zookeeper view aggregation support
0.9.9 - A release with several critical bug fixing for 0.9 series release
1.0.4
0.9.9
<dependency> <groupId>org.apache.helix</groupId> <artifactId>helix-core</artifactId> <version>1.0.4</version> </dependency>
Requirements: JDK 1.8+, Maven 3.6.0+
git clone https://git-wip-us.apache.org/repos/asf/helix.git cd helix git checkout helix-1.0.4 mvn install package -DskipTests