Giter Site home page Giter Site logo

akka-java-cluster-istio's Introduction

akka-java-cluster-istio

An Akka Java cluster Istio demo application. It requires Istio 1.2 (not yet released, the latest nightly should do).

Building

A docker image is deployed to Docker hub which contains this application built, and the deployment descriptor references that. If you wish to build your own image, run:

mvn package docker:build

To first build the image, and then tag/push it to your repo using:

docker tag akka-cluster-demo:1.0.3 <your-docker-repo>/akka-cluster-demo:1.0.3
docker push <your-docker-repo>/akka-cluster-demo:1.0.3

Then update the image field in kubernetes/akka-cluster-deployment.yml to point to your image.

Deploying

This configures an Istio gateway that routes all HTTP requests to the default Istio ingress to the Akka cluster app. That might not be what you want, if not, configure kubernetes/akka-cluster-istio-service.yaml accordingly.

To deploy this to the default namespace (change the -n argument for a different namespace):

kubectl apply -f kubernetes/ -n default

Now, assuming your Istio ingress has an externally accessible IP address, visit it (the IP address can be found be running kubectl get service -n istio-system istio-ingressgateway). You should see the Akka cluster sharding visualisation. You can kill a node by clicking on it, you will then see the shards get rebalanced to other nodes, and in a short time, the node will be restarted by Kubernetes, and shards will gradually be allocated back to it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.