The component implements a simple habitable-planet search across universe using Java Streams to demonstrate speed of Graal compiler in comparison with C2 from the HotSpot platform.
- Maven 3.5 or newer
- Java SE 8 or newer
- Docker 17 or newer (if you want to build and run docker images)
- Kubernetes 1.7.4 or newer cluster
- Kubectl 1.7.4 or newer for deploying to Kubernetes
mvn package
java -jar target/warp-speed-planet-search.jar
curl -X GET http://localhost:8080/universe/traverse
{"habitablePlanets":21,"time":2261}
curl -s -X GET http://localhost:8080/health
{"outcome":"UP",...
. . .
# Prometheus Format
curl -s -X GET http://localhost:8080/metrics
# TYPE base:gc_g1_young_generation_count gauge
. . .
# JSON Format
curl -H 'Accept: application/json' -X GET http://localhost:8080/metrics
{"base":...
. . .
docker build -t warp-speed-planet-search .
docker run --rm -p 8080:8080 warp-speed-planet-search:latest
kubectl cluster-info # Verify which cluster
kubectl get pods # Verify connectivity to cluster
kubectl create -f app.yaml # Deploy application
kubectl get service warp-speed-planet-search # Verify deployed service