Questions tagged [hazelcast]

Hazelcast is an open source In-Memory Data Grid platform. The architecture supports high scalability and data distribution in a clustered environment. It supports auto-discovery of nodes and intelligent synchronization.

Hazelcast is an open source In-Memory Data Grid platform. The architecture supports high scalability and data distribution in a clustered environment.

Useful links

2900 questions
12
votes
1 answer

HazelcastInstance vs HazelcastClient

I am novice in hazelcast and I have a few questions. As I understand hazelcast comes with two entities HazelcastInstance(as I understand it is server) and HazelcastClient. These entities even packed into different jars. I have noticed that in our…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
12
votes
2 answers

Persisting data on disk using Hazelcast

I have installed HazelCast 2.5. I want to persist my records into disk. I learned that MapStore does this job. However i'm not sure how to implement MapStore. Code I've written so far: public class MyMaps implements MapStore { …
Hazel_arun
  • 1,721
  • 2
  • 13
  • 17
12
votes
6 answers

How do you create a Hazelcast instance embedded in-process/in-memory, without networking?

In my unit tests, I want to create an embedded (in-process/in-memory) Hazelcast instance that does not attempt to start or perform any networking operations at all. How do I do this? For example: Config config = new Config(); // what goes…
Les Hazlewood
  • 18,480
  • 13
  • 68
  • 76
11
votes
3 answers

Redis, Mongo or Hazelcast?

We have a JAVA web app which uses postgres(single database with a slave) for storing all the important data. We are now moving from a single server setup to mutiple servers due to which i need to make some changes to address the new…
gladiator
  • 722
  • 1
  • 9
  • 16
11
votes
2 answers

after upgrade to Spring Boot 2, how to expose cache metrics to prometheus?

I recently upgraded a spring boot application from 1.5 to 2.0.1. I also migrated the prometheus integration to the new actuator approach using micrometer. Most things work now - including some custom counters and gauges. I noted the new prometheus…
wemu
  • 7,952
  • 4
  • 30
  • 59
11
votes
1 answer

Creating and Removing an Map from HazelCast

I am using the following code to create an map in HazelCast HazelcastInstance instance = null; Config cfg = new Config(); instance =Hazelcast.newHazelcastInstance(cfg); instance.getMap(mapName); Once I am done with the my processing I want to…
user3525836
  • 393
  • 3
  • 10
11
votes
1 answer

Distributed caching for large objects

I want to share a very large object e.g. in orders of megabytes or even several gigabytes, between a set of machines. The object will be written once but may be read many times. Maybe a naive approach is to use a ceneteralized storage like redis.…
10
votes
2 answers

@cacheput is not updating the existing cache

I am working with Spring 4 and Hazelcast 3.2. I am trying to add a new record to existing cache with below code. somehow cache is not getting updated and at the same time I don't see any errors also. below is the code snippet for reference. Note:-…
Somi Reddy
  • 101
  • 1
  • 3
10
votes
1 answer

Difference between hazelcast.jar and hazelcast-all.jar

Current release of Hazelcast is 3.4 and I see there are two jars in the lib folder of the download page http://hazelcast.org/download/ hazelcast-3.4.jar hazelcast-all-3.4.jar What is the diffence between these jars? WHcih one should I choose, and…
Yasin Okumuş
  • 2,299
  • 7
  • 31
  • 62
9
votes
4 answers

Hazelcast dedicated nodes

What is the simplest way to run Hazelcast nodes on dedicated servers? We have a web application that uses a Hazelcast distributed map. Currently the Hazelcast nodes are configured to run in the Servlet Container nodes. As we scale up, we'd like to…
Szocske
  • 7,466
  • 2
  • 20
  • 24
9
votes
2 answers

Reconnect a Hazelcast Client

We are connecting to an external Hazelcast cluster (version 3.7.2) using the Java Hazelcast client but are having issues reconnecting if the cluster goes down. We are creating our client with HazelcastClient.newHazelcastClient. Once we do that, we…
nolt2232
  • 2,594
  • 1
  • 22
  • 33
9
votes
4 answers

Hazelcast access using CLI

Suppose I have instance of Hazelcast running somewhere on remote machine and it executed in official Docker image. So I wolud like to see some data that Hazelcast stores just like in the first video here. So I'm wondering is there any way to connect…
Andrii Pischanski
  • 297
  • 1
  • 3
  • 11
9
votes
2 answers

Configuring a two node hazelcast cluster - avoiding multicast

The context Two nodes of a Hazelcast cluster, each on a discrete subnet so multicast is not suitable nor working for node location. I should like to employ the most minimal XML configuration file, say hazelcast.xml, to configure Hazelcast to use…
Martin Cowie
  • 2,788
  • 7
  • 38
  • 74
9
votes
1 answer

Hazelcast server as a linux service

How to run hazelcast server as a linux service in production environments ? java -server -cp hazelcast.jar com.hazelcast.examples.StartServer StartServer runs the server with outputs to std terminal, what's the easiest way to run it as a linux…
Santhosh S
  • 1,141
  • 6
  • 21
  • 43
9
votes
1 answer

Why hazelcast has default partition count of 271 and what are the parameters to chose one?

I just went through the hazelcast documentation. It suggests that data partitioned across all the nodes. And the number of partitions created in cluster 271 by default ! What parameters govern the selection of right partition count value. And why…
Rakesh Waghela
  • 2,227
  • 2
  • 26
  • 46