/akka-kubernetes-tests

Basic tests that show Akka Cluster and friends work on Kubernetes

Primary LanguageScalaApache License 2.0Apache-2.0

Akka Cluster Tests

Basic tests for Akka Cluster and friends on Kubernetes

For each pull requests from this repository (not forks) and commits to master the following happens in travis:

  • Docker image is published to a registry inside OpenShift
  • A deployment is triggered to Lightbend's internal OpenShift cluster (https://centralpark.lightbend.com/)
  • Integration tests are run with sbt it:test

See .travis.yml for full details.

The tests exercise:

  • Cluster formation via Akka bootstrap using the Kubernetes API for service discovery
  • Cluster singletons
  • Cluster sharding

Cluster soak testing

See Cluster soak testing

Persistence

Couchbase

The cluster-sharding-couchbase has an application that tests Akka Persistence Couchbase. This is not run as part of CI.

Useful commands

Get member status from one node, replace pod name, requires jq:

oc exec -it cluster-soak-6f4fcf5ff8-f7jc4 curl localhost:8558/cluster/members | jq .unreachable

Get pod name from ip

oc get  --output json  pods | jq '.items[] | select(.status.podIP=="10.131.20.160")' | jq .metadata.name

Number of members:

oc exec -it cluster-soak-5d9ddb8664-zr22b curl localhost:8558/cluster/members | jq '.members | length'