发布于 2016-08-23 00:51:19 | 195 次阅读 | 评论: 0 | 来源: 网友投递
Hazelcast 数据分发和集群平台
Hazelcast是一个高度可扩展的数据分发和集群平台,可用于实现分布式数据存储、数据缓存。
Hazelcast 3.7 General 发布了,主要更新如下:
Custom eviction policies: In Hazelcast you could always set an eviction policy from one of LRU or LFU. But what if you want more flexibility to suit custom requirements of your app. Custom eviction policy exactly helps on that. We implemented a custom eviction both for our Map and JCache implementations. Here you can see an example of an odd-based evictor. It works with our O(1) probabilistic evictors. You simply provide a comparator and we choose the best eviction candidate.
/** * Odd evictor tries to evict odd keys first. */ private static class OddEvictor extends MapEvictionPolicy { @Override public int compare(EntryView o1, EntryView o2) { Integer key = (Integer) o1.getKey(); if (key % 2 != 0) { return -1; } return 1; } }
Fault-Tolerant ExecutorService: Imagine you send executables to hazelcast nodes and they take hours to complete. What if one the nodes crashes and you do not know whether the task completed or not? In 3.7, we introduce DurableExecutorService~. It guarantees
execute at least oncesemantics. Its API is a narrowing of
IExecutorService~. Unlike IExecutorService
, users will not be able to submit/execute tasks to selected member/members.
Zone Aware Partition Groups: Hazelcast will provide availability zone aware partition groups configuration (AWS). Also partition grouping will be provided for Azure failure domains and for Availability Zones when available. To ensure that real redundancy is provided, the backups are located in the other Zone. High availability is provided in this way.
New Cloud Integrations: We are releasing the CloudFoundry and OpenShift plugins parallel to the 3.7 release. The Hazelcast members deployed to CloudFoundry and OpenShift will discover each other automatically. Also you will have an option to connect and use Hazelcast as a service inside CloudFoundry and OpenShift. You also have the option of using this with Docker – https://hub.docker.com/r/hazelcast/openshift/. See Rahul’s following blog to learn more about using the CloudFoundry Integration.
点击这里查看更多:http://blog.hazelcast.com/announcing-hazelcast-3-7-general-availability/