소스 검색

recipes: test-sleep

Alexander Korolev 1 주 전
부모
커밋
005ec37c6f
1개의 변경된 파일과 19개의 추가작업 그리고 0개의 파일을 삭제
  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]