|
@@ -0,0 +1,19 @@
|
|
|
|
|
+engine = "vllm"
|
|
|
|
|
+name = "Test Heartbeat Container"
|
|
|
|
|
+docker_image = "alpine:latest"
|
|
|
|
|
+model = "noop"
|
|
|
|
|
+
|
|
|
|
|
+# Heartbeat loop: prints a timestamped line every 2s with UTC time and
|
|
|
|
|
+# the container hostname so you can tell logs from different nodes apart.
|
|
|
|
|
+#
|
|
|
|
|
+# Use it to verify the logging pipeline:
|
|
|
|
|
+# cargo run serve --recipe test-sleep # spins up the cluster
|
|
|
|
|
+# cargo run logs --recipe test-sleep # last 100 lines per node
|
|
|
|
|
+# cargo run logs --recipe test-sleep --follow # live stream from head
|
|
|
|
|
+#
|
|
|
|
|
+# Each line looks like: 10:42:13 [n0] heartbeat 42
|
|
|
|
|
+entrypoint = ["sh", "-c", "i=0; while true; do echo \"$(date -u +%H:%M:%S) [$(hostname)] heartbeat $i\"; i=$((i+1)); sleep 2; done"]
|
|
|
|
|
+
|
|
|
|
|
+args = []
|
|
|
|
|
+
|
|
|
|
|
+[env]
|