Hello,
I am using multimap and map objects to store my data in Hazelcast.
However, I have some questions:
1- it seems we cannot set neither a TTL nor an eviction policy for multimap. So is there a way to do it.
2- Is multimap more efficient (serialization/deserialization phase) than map?
3- I am using java Serializable interface. the
serialization/deserialization phase is taking too much time. Should I use IdentifiedDataSerializable interface instead of java Serializable one to go fatser with serialization phase?
4- In the management center, I am able to see the amount of memory of any map. But there is no information about the multimap memory, it's always displaying zéro. It's like I cannot verify what's the memory used by multimap. is it normal?
My last question is related to multi nodes cluster. So I would like to add a second node to my cluster but how can I connect my clients to the whole cluster and not only to one node:
1- in java client I am setting the ip address of one node:
clientConfig.getNetworkConfig().addAddress(ip_address);
so should I add ip addresses of all nodes: clientConfig.getNetworkConfig().addAddress(ip_addres_node1, ip_address_node2);
what happened if node1 gowes down is the client will be redirected to node2 automatically?
2- for my Hazelcast tomcat session manager, is this conf correct to connect to the whole cluster?
<cluster-members>
<address>ip_address_node1</address>
<address>ip_address_node2</address>
</cluster-members>
Also same question as for java client, what happened if node1 goes down?
Best regards
Karim