hazelcast-aws | AWS EC2 discovery plugin for hazelcast | Web Services library

 by   hazelcast Java Version: v3.4 License: Non-SPDX

kandi X-RAY | hazelcast-aws Summary

kandi X-RAY | hazelcast-aws Summary

hazelcast-aws is a Java library typically used in Web Services applications. hazelcast-aws has no vulnerabilities, it has build file available and it has low support. However hazelcast-aws has 1 bugs and it has a Non-SPDX License. You can download it from GitHub.

This repository contains a plugin which provides the automatic Hazelcast member discovery in the Amazon Web Services Platform.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              hazelcast-aws has a low active ecosystem.
              It has 41 star(s) with 49 fork(s). There are 62 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 8 open issues and 80 have been closed. On average issues are closed in 172 days. There are 11 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of hazelcast-aws is v3.4

            kandi-Quality Quality

              hazelcast-aws has 1 bugs (0 blocker, 0 critical, 0 major, 1 minor) and 75 code smells.

            kandi-Security Security

              hazelcast-aws has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              hazelcast-aws code analysis shows 0 unresolved vulnerabilities.
              There are 42 security hotspots that need review.

            kandi-License License

              hazelcast-aws has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              hazelcast-aws releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              hazelcast-aws saves you 1766 person hours of effort in developing the same functionality from scratch.
              It has 3907 lines of code, 308 functions and 49 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed hazelcast-aws and discovered the below as its top functions. This is intended to give you an instant insight into hazelcast-aws implemented functionality, and help decide if they suit your requirements.
            • Gets all the public addresses of all tasks
            • Generate the HTTP headers for the given endpoint
            • Fetches the public IP addresses associated with ECS
            • Creates the body of the request
            • Creates an AWS client
            • Logs AWS environment
            • Logs information about AWS ECS environment
            • Resolve the cluster
            • Discover the member metadata
            • Resolves the placement group of the resource
            • Get the availability zone
            • Parses the EcsMetadata response
            • Creates tag values
            • Validate configuration
            • Compares two credentials
            • Retrieves all configuration properties
            • Resolves EC2 IAM role
            • Returns a list of available nodes
            Get all kandi verified functions for this library.

            hazelcast-aws Key Features

            No Key Features are available at this moment for hazelcast-aws.

            hazelcast-aws Examples and Code Snippets

            copy iconCopy
            
              
                
                  my-access-key
                  my-secret-key
                  us-west-1
                  my-ec2-instance-tag-key
                  my-ec2-instance-tag-value
                  true
                
              
            
            
            hazelcast-client:
              network:
                aws:
                  enabled: true
                  access-key: my-access-key
                  secret  
            copy iconCopy
            
              
                
                  my-access-key
                  my-secret-key
                  eu-central-1
                  my-cluster
                  true
                
              
            
            
            hazelcast-client:
              network:
                aws:
                  enabled: true
                  access-key: my-access-key
                  secret-key: my-secret-key
                  region: eu-centr  
            copy iconCopy
            
              
                
                  
                  
                
                
                  10.0.*.*
                
              
            
            
            hazelcast:
              network:
                join:
                  multicast:
                    enabled: false
                  aws:
                    enabled: true
                interfaces:
                  enabled: true
                  interfaces:
                    - 10.0.*.*
            
            config.getNet  

            Community Discussions

            QUESTION

            SockJS connections in a clustered Vert.x environment
            Asked 2021-Apr-06 at 17:43

            The vertx application runs in Docker containers, on two EC2 instances and is clustered.

            Clustering is achieved with the hazelcast-aws plugin and the application is started like this:

            ...

            ANSWER

            Answered 2021-Apr-02 at 18:40

            Since vertx does round robin by default when clustered and there are two instances, this means any instance gets every other message (from 1., above) and makes the client, which connects to one instance only, receive exactly half of all expected responses.

            This assumption is only partially correct. Vert.x does round-robin, yes, but this means each instance will get half of the connections, not half of the messages.

            Once connection is established, all its messages will arrive to a single instance.

            So this:

            Would that be correct and is there a way to get 100% of messages to the client, connected to just one node, without introducing things like RabbitMQ?

            Already happens.

            Source https://stackoverflow.com/questions/66919112

            QUESTION

            How to update ECS-service forming a Hazelcast cluster group gracefully?
            Asked 2020-Jan-29 at 08:13

            We have an ECS-service (EC2 ECS) with several tasks forming a Hazelcast cluster group (hazelcast:3.10.6, hazelcast-aws:2.2, we use Hazelcast for storing some shared data and locks in distributed objects). It uses rolling service update with minimum healthy percent set to 100, and maximum at 200.

            Updating this service with new Task Definition is not very reliable - often Hazelcast can't preserve existing cluster due to the nature of ECS's service updating process. It sometimes removes tasks with old task definitions very quickly, often several at a time, breaking Hazelcast cluster group.

            Yes, we can refactor the service to use client-server model to store memory grid in a separate service or use alternatives, such as storing locks in Redis, but it would be interesting to listen someone who already faced similar difficulties and found a way to gracefully update Hazelcast-enabled services in ECS.

            ...

            ANSWER

            Answered 2020-Jan-29 at 08:13

            To make Hazelcast reliable on basically any containerized environment, you need to define graceful shutdown. That would prevent any data loss or multiple Hazelcast instances killed at the same time.

            In order to do it, you can check ECS doc about StopTask and Hazelcast documentation on Graceful Shutdown. In short, you need to:

            • Add hazelcast.shutdownhook.policy=GRACEFUL to JAVA_OPTS
            • Add hazelcast.graceful.shutdown.max.wait= to JAVA_OPTS
            • Change ECS_CONTAINER_STOP_TIMEOUT env variable to

            If you store a lot of data in the Hazelcast cluster, you can set the value max-waiting-time-for-data-migration to a high number, like even a few hours.

            Source https://stackoverflow.com/questions/59960074

            QUESTION

            Client unable to connect to Hazelcast-jet ec2 clusters
            Asked 2019-Sep-27 at 23:52

            I setup a Hazelcast-jet cluster on aws ec2 following instructions here. I made use of the hazelcast-aws model so that nodes can automatically discover each other. The cluster is up and running:

            ...

            ANSWER

            Answered 2019-Sep-27 at 23:52

            Marko was right (look at comments of the question). This looks like some AWS network constrains. I setup netcat server with port 5701 on one of my ec2 box. I was not able to connect to the port from my laptop using nc but able to connect to it from another ec2 in the same VPC. I then did the same experiment with port 80. I can connect to the port from both my laptop and ec2 instances from the same VPC. Looks like something only allows instances outside of AWS to connect to a couple of well-known ports of ec2 instances.

            Anyways, I unblocked myself by running the hazelcast server on port 80. This is not ideal but much more convenient for me to try out some hazelcast-jet features from my IDE comparing to deploy testing code to ec2.

            Source https://stackoverflow.com/questions/58125672

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install hazelcast-aws

            You can download it from GitHub.
            You can use hazelcast-aws like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the hazelcast-aws component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/hazelcast/hazelcast-aws.git

          • CLI

            gh repo clone hazelcast/hazelcast-aws

          • sshUrl

            git@github.com:hazelcast/hazelcast-aws.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Web Services Libraries

            Try Top Libraries by hazelcast

            hazelcast

            by hazelcastJava

            hazelcast-jet

            by hazelcastJava

            hazelcast-code-samples

            by hazelcastJava

            hazelcast-kubernetes

            by hazelcastJava

            hazelcast-go-client

            by hazelcastGo