hazelcast

Restrict members in Hazelcast cluster

穿精又带淫゛_ 提交于 2021-01-29 07:38:46
问题 I am working on a spring boot project where i am using Hazelcast as Cache. I have enabled tcp as join method and i also mentioned some members. The members are able to join. But the problem is other nodes are also able to join apart from the members. can anyone tell me how i can restrict it? This is my configuration, @Bean public Config hazelcastConfig() { Config config = new Config() .setClusterName("myCluster"); List<String> members = new ArrayList<>(); members.add("192.168.99.1:5523");

why hazelcast can not query incorrect result with imap and hazelcastjsonvalue

北战南征 提交于 2021-01-29 07:34:00
问题 I use IMap store data in hazelcast, key is a string, value is a hazelcastjsonvalue. code example: ` Gson gson = new Gson(); String json = "{\"orderId\":\"-20200822-221116-188-quote-100002\",\"securityId\":\"130015\",\"tradingAccount\":\"xtrinterbanktra01\",\"subSystemId\":\"QDM-ESP\",\"userId\":\"xtrinterbankat01\",\"securityExchange\":\"B\",\"systemNodeId\":710,\"quoteId\":\"1598145974197\",\"execId\":\"22550774606679263\",\"investAccount\":\"xtrinterbankinvest01\",\"productAccount\":\

Hazelcast tcp-ip configuration cluster: Unwanted IPs join the cluster even after cluster-name is specified

泄露秘密 提交于 2021-01-29 06:28:20
问题 I have two hazelcast configure yaml files: hazelcast-cluster1.yml: hazelcast: cluster-name: cluster1 network: join: multicast: enabled:false tip-ip: enabled: true member-list: machineA machineB hazelcast-cluster2.yml: hazelcast: cluster-name: cluster2 network: join: multicast: enabled:false tip-ip: enabled: true member-list: machineC machineD What I wanted is machineA and machineB forms a cluster while machineC and machineD does a separate cluster. However, when I started machineC, it forms a

Hazelcast tcp-ip configuration cluster: Unwanted IPs join the cluster even after cluster-name is specified

孤街浪徒 提交于 2021-01-29 06:26:10
问题 I have two hazelcast configure yaml files: hazelcast-cluster1.yml: hazelcast: cluster-name: cluster1 network: join: multicast: enabled:false tip-ip: enabled: true member-list: machineA machineB hazelcast-cluster2.yml: hazelcast: cluster-name: cluster2 network: join: multicast: enabled:false tip-ip: enabled: true member-list: machineC machineD What I wanted is machineA and machineB forms a cluster while machineC and machineD does a separate cluster. However, when I started machineC, it forms a

How to set backup-count via code on Hazelcast?

China☆狼群 提交于 2021-01-29 06:10:29
问题 Is there any way to set backup-count dynamically on Hazelcast via java? Reading the official documentation, I could only find the configuration option backup-count but no reference on how to set it via java. Thank You Very Much, Geraldo Netto 回答1: You can always set Hazelcast config parameters using XML, YAML, or Java. The configuration looks the same. In the case of the backup-count, you can set it in Java using the following code: config.getMapConfig("my-map").setBackupCount(2); 来源: https:/

Hazelcast Community Edition security

我是研究僧i 提交于 2021-01-29 05:58:41
问题 I am working on a Spring boot project which uses Hazelcast as Cache. I am using the community edition of that. I have couple of questions, I wanted to know whether there is minimal provision provided in community edition for security features. I know that we can provide unique group name so other nodes cannot join the cluster. But is there any other way?. I also tried with hazelcast.application.validation.token but it is not working. What is the correct way to check with this property. Also,

Hazelcast with global serializer (Kryo) - There is no suitable de-serializer for type

拈花ヽ惹草 提交于 2021-01-28 06:12:10
问题 I’m using Hazelcast 3.9 to cluster user sessions. To serialize the session objects, I created a global serializer implemented with Kryo (or more precisely KryoReflectionFactorySupport that allow to serialize objects without default constructor). public class GlobalKryoSerializer implements StreamSerializer<Object> { //use ThreadLocal because Kryo is not thread safe private static final InheritableThreadLocal <Kryo> kryoThreadLocal = new InheritableThreadLocal <Kryo>() { @Override protected

@Cacheable is not able to update

只愿长相守 提交于 2021-01-28 00:51:50
问题 In spring framework we have @Cacheable to cache data right. Now my requirement is i want to retrieve all data form database by using Get method. Controller @RequestMapping(value = "/getUploadData", method = RequestMethod.GET) public ResponseEntity<List<Ticket>> getUploadFileData() throws IOException { return new ResponseEntity<>(ticketBookingService.getFileUploadData(), HttpStatus.OK); } Service @Cacheable(value="ticketsCache") public List<Ticket> getFileUploadData() { List<Ticket> listOfData

Hazelcast member discovery with PCF Registry Service and hazelcast-eureka-plugin

故事扮演 提交于 2021-01-07 04:13:17
问题 Running several instances of application with embedded hazelcast on PCF. My goal is to chain hazelcast members into cluster. For purpose of member discovery I am using hazelcast-eureka plugin . I am able to achieve member discovery using simple Eureka Server app, passing eureka URL to hazelcast-eureka plugin , using this example. Now I want to use PCF Registry Service instead of Eureka Server app. For that purpose I am using EurekaOneDiscoveryStrategyFactory with EurekaClient autowired which

Hazelcast member discovery with PCF Registry Service and hazelcast-eureka-plugin

青春壹個敷衍的年華 提交于 2021-01-07 04:12:35
问题 Running several instances of application with embedded hazelcast on PCF. My goal is to chain hazelcast members into cluster. For purpose of member discovery I am using hazelcast-eureka plugin . I am able to achieve member discovery using simple Eureka Server app, passing eureka URL to hazelcast-eureka plugin , using this example. Now I want to use PCF Registry Service instead of Eureka Server app. For that purpose I am using EurekaOneDiscoveryStrategyFactory with EurekaClient autowired which