hazelcast

Hazelcast NearCache doesn't have the expected effect on performance

て烟熏妆下的殇ゞ 提交于 2019-12-11 03:43:03
问题 We have an application running on 1 or 2 nodes, depending on the environment, with a shared cache based on Hazelcast. One of the requests on the application triggers about 1000 requests on this cache (all cache hits). In a single node configuration this works nicely. Specifically each request takes less then 10ms. But if we use 2 nodes, each cache request takes about 20-200ms. We thought this would be due to Hazelcast getting the data from the remote node, which of course involves network

Hazelcast - OperationTimeoutException

痴心易碎 提交于 2019-12-11 02:16:46
问题 I am using Hazelcast version 3.3.1. I have a 9 node cluster running on aws using c3.2xlarge servers. I am using a distributed executor service and a distributed map. Distributed executor service uses a single thread. Distributed map is configured with no replication and no near-cache and stores about 1 million objects of size 1-2kb using Kryo serializer. My use case goes as follow: All 9 nodes constantly execute a synchronous remote operation on the distributed executor service and generate

Can a Hazelcast ExecutorService be created to execute on a subset of the cluster?

冷暖自知 提交于 2019-12-11 00:30:04
问题 I'm trying to setup a distributed executor service with hazelcast for my project. Some tasks which will run can only be completed on machines with OS specific utilities. Is there a way to submit a task that will run once on a subset of the cluster? Or to register that it should be used with a specific executor service? Looking at the API there are a number of options to submit a task, but all the options for submitting to multiple members will run the task on all of those members, not one of

Hazelcast performing slower

强颜欢笑 提交于 2019-12-10 23:50:58
问题 We are trying to use Hazelcast as distributed cache in our application. Here is our config: <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.7.xsd" xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <group> <name>sample_dev</name> <password>dev@123</password> </group> <management-center enabled="false">http://localhost:8080/mancenter</management-center> <properties> <property name="hazelcast.logging

com.hazelcast.nio.serialization.HazelcastSerializationException

痞子三分冷 提交于 2019-12-10 18:16:33
问题 Am running a OSGI plugin project (with N no of bundles), I have integrated hazel cast in it, i. When I try to add the data as map of string and test bean, It is getting added in hazel cast map but ! ii. When I try to get the map, Its showing an error as follows, com.hazelcast.nio.serialization.HazelcastSerializationException : java.lang. ClassNotFoundException : com.test.Data cannot be found by com.eclipsesource.jaxrs.jersey-all_2.10.1.SR1 FULL STACK TRACE com.hazelcast.nio.serialization

Hazelcast MapStoreConfig ignored

人走茶凉 提交于 2019-12-10 17:35:59
问题 I'm using a map store to persist my hazelcast distributed map in a database. In my test case, I start three hazelcast instances, each configured the same way: Config cfg = new Config(); cfg.setInstanceName("name"); hazelcast = Hazelcast.newHazelcastInstance(cfg); MapConfig mapConfig = new MapConfig("myMapName"); MapStoreConfig mapStoreConfig = new MapStoreConfig(); mapStoreConfig.setClassName(MyMapStore.class.getName()); mapStoreConfig.setWriteDelaySeconds(0); mapStoreConfig.setEnabled(true);

HAZELCAST

情到浓时终转凉″ 提交于 2019-12-10 15:51:06
1.1Hazelcast概述 Hazelcast是基于内存的数据网格开源项目,同时也是该公司的名称。Hazelcast提供弹性可扩展的分布式内存计算,Hazelcast被公认是提高应用程序性能和扩展性最好的方案。Hazelcast通过开放源码的方式提供以上服务。更重要的是,Hazelcast通过提供对开发者友好的Map、Queue、ExecutorService、Lock和JCache接口使分布式计算变得更加简单。例如,Map接口提供了内存中的键值存储,这在开发人员友好性和开发人员生产力方面提供了NoSQL的许多优点。 除了在内存中存储数据外,Hazelcast还提供了一组方便的api来访问集群中的cpu,以获得最大的处理速度。轻量化和简单易用是Hazelcast的设计目标。Hazelcast以Jar包的方式发布,因此除Java语言外Hazelcast没有任何依赖。Hazelcast可以轻松地内嵌已有的项目或应用中,并提供分布式数据结构和分布式计算工具。 Hazelcast 具有高可扩展性和高可用性(100%可用,从不失败)。分布式应用程序可以使用Hazelcast进行分布式缓存、同步、集群、处理、发布/订阅消息等。Hazelcast基于Java实现,并提供C/C++,.NET,REST,Python、Go和Node.js客户端。Hazelcast遵守内存缓存协议

get returns a value of the superclass ArrayList in hazelcast 3.5

自闭症网瘾萝莉.ら 提交于 2019-12-10 15:38:22
问题 I have a serialization problem with hazelcast 3.5: When one hazelcast client(Java) puts a value of class public class MyType extends ArrayList<MyElem> into a map, and afterwards another client (other Java process) retrieves the value, it gets back a value of class ArrayList , not the expected subclass MyType ! In hazelcast version 3.1.3 this worked fine: the second client retrieved a value of the correct subclass MyType . I used the sample configuration hazelcast.xml and the start script

Hazelcast's Web session clustering

て烟熏妆下的殇ゞ 提交于 2019-12-10 12:23:14
问题 We are currently exploring the usage of Hazelcast's session clustering capabilities and have immediately run into a weird issue. All the Struts expressions in our jsp pages are "lost" and instead we just find empty string in their place. i.e. an expression as the following <span class="status" data-title="${statusName}"></span> just becomes <span class="status" data-title=""></span> Removing the hazelcast filters, the pages work fine. Our web.xml is not fancy and just has the the hazelcast