Hi to All,
I am Rafi, and I am new to this Hazelcast.
I have Read Hazelcast documents and saw the Tutorilas of Hazelcast. Every thing about Hazelcast, is Quite Interesting and Really it has best Features.
Still, we have Many Questions in my mind.
Please don't be mind about my curiosity, since I am new and has no Proper Knowledge about the Hazelcast. Thanks to All.
Please Any One Can Help me to know more about Hazelcast.
1. Please Explain us more about, is the data created by the spring-hazelcast instance, will access by the same spring-hazelcast instance only or it can be access from other instances.[like, instances under the same cluster but started in command console using run.bat]
If we start 2 Hazelcast Instances, Instance A is from console,[using 'run.bat'] and other instance B is from Java 'Spring-Hazelcst' Instance.
Now, From "mancenter Admin console", we can view both Hazelcast Instances are Getting Combined and sharing documents each other.
But,
we need to know, is there any commands to get/put entries in user-defined maps | Queue[which are created using spring-hazelcast]
{we mean, we are not able to access non-default map | queue, but we can access default map | queue using m.get | m.put from console of instance A}.
2. we have 2 Testing Servers with the same configuration, Consider the following configuration settings,
RAM: 40gb
CPU Core: 8cores
OS: Red Hat Linux 64-bit
and
we need to handle tens of Millions of Documents using Hazelcast.
Now, we need to create testing environment, please help us to make this environment so that we can get optimum results.
a. how many Hazelcast Instances[nodes] to start for each server to Perfectly handle this big amount of data.
b. how many replicas to maintain to survive form node failures.
c. how to set 30-50% data should be there in hazelcast instances and reaming data should be store in database[here we are using, mongodb] automatically.
We need the spring-hazelcast settings for above environment.
3.Please any one can explain, We are using spring[mvc 3]-hazelcast API.
we are using spring controller to start hazelcast instance and one more controller to handle data insertion/retrial to/from hazelcast.
But
Some strange things are happening,
If we run our project, when spring container loading itself only 2 hazelcast instance are getting created and this instance is not active in mancenter admin console. Why this is happening?
Here, what we are expecting is, hazelcast instance should start when request is raised to controller and this instance should be active in mancenter admin console until the instance getting killed.
4. Please check the following code and please modify if any thing is wrong. and explain what is exactly.
I have one hazlecast-settings.xml file as following:
....................................................................................................................................................................................................................................
<hz:hazelcast id="instance" >
<hz:config>
<hz:group name="dev" password="dev-pass"/>
<hz:network port="5701" port-auto-increment="true">
<hz:join>
<hz:multicast enabled="true" multicast-group="224.2.2.3" multicast-port="54327" /> <!-- what is multicast-group and port, is the value "224.2.2.3" same for all ? -->
<hz:tcp-ip enabled="true" >
<hz:members >127.0.0.1</hz:members> <!-- what is tcp/ip member and is the value "127.0.0.1" also same for all ?-->
</hz:tcp-ip>
</hz:join>
<hz:interfaces enabled="true" >
<hz:interface>10.10.1.*</hz:interface> <!-- what is interface here and is the value "10.10.1.*" also same for all ? -->
</hz:interfaces>
</hz:network>
</hz:config>
</hz:hazelcast>
<hz:map instance-ref="instance" id="usermap" name="test" />
[please explain why and when we need "hz:multicast" or "hz:tcp-ip" or "hz:interface"
And our ip-address is like: 192.168.*.*
please tell us, is this ip address placed under in "hz:multicast" or "hz:tcp-ip" or "hz:interface" or not? ]
....................................................................................................................................................................................................................................
In Controller, I have the following:
Config hazleConfig = new ClasspathXmlConfig("hazlecast-settings.xml");
HazelcastInstance instance = Hazelcast.newHazelcastInstance(hazleConfig);
Map<Integer, String> mapCustomers = instance.getMap("customers");
mapCustomers.put(1, "Joe");
mapCustomers.put(2, "Ali");
mapCustomers.put(3, "jasmin");
System.out.println("Map Size:" + mapCustomers.size());
Your Reply/Suggestions/help is really helpful for us.
Thanks to All
Regards,
G Md Rafi.