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
The cluster-sharding-couchbase
has an application that tests Akka Persistence Couchbase. This is
not run as part of CI.
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'