Explorar el Código

recipes: test-sleep

Alexander Korolev hace 1 semana
padre
commit
005ec37c6f
Se han modificado 1 ficheros con 19 adiciones y 0 borrados
  1. 19 0
      recipes/test-sleep/recipe.toml

+ 19 - 0
recipes/test-sleep/recipe.toml

@@ -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]