| name | k8s-pod-health-investigator | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| description | Investigate unhealthy pods in a Kubernetes namespace. Use when pods are in CrashLoopBackOff, ImagePullBackOff, OOMKilled, or showing high restart counts. Covers pod status, log analysis, deployment history, event correlation, and self-healing recommendations. | |||||||||||||
| version | 1.0.0 | |||||||||||||
| compatibility | kubectl, HERMES_LAB_MODE=mock|live | |||||||||||||
| metadata |
|
In the context of the Common Architecture Language Model (CALM), patterns are described as the project's "real superpower." They serve as a mechanism for architects to convey specific architecture opinions to developers, who then use these patterns to create architectures for their specific business problems.
- Defining Expectations: Patterns allow architects to specify exactly what is required for a deployment. For example, an MCP (Model Context Protocol) server deployment pattern might include interfaces for container image names and ports.
- Constraints and Consistency: By defining specific requirements within a pattern, architects ensure that downstream implementations remain consistent. This allows for the creation of a "secure pattern" that can be used to deploy various services (like different APIs) while maintaining the same security standards.
- Placeholders: When a developer generates an architecture from a pattern, it often inc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| loki: | |
| commonConfig: | |
| replication_factor: 1 | |
| schemaConfig: | |
| configs: | |
| - from: "2024-04-01" | |
| store: tsdb | |
| object_store: s3 | |
| schema: v13 | |
| index: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM openeuler/vllm-cpu:0.9.1-oe2403lts | |
| # Patch the cpu_worker.py to handle zero NUMA nodes | |
| RUN sed -i 's/cpu_count_per_numa = cpu_count \/\/ numa_size/cpu_count_per_numa = cpu_count \/\/ numa_size if numa_size > 0 else cpu_count/g' \ | |
| /workspace/vllm/vllm/worker/cpu_worker.py | |
| ENV VLLM_TARGET_DEVICE=cpu \ | |
| VLLM_CPU_KVCACHE_SPACE=1 \ | |
| OMP_NUM_THREADS=2 \ | |
| OPENBLAS_NUM_THREADS=1 \ |
This Dockerfile builds a container for running vLLM (Large Language Model inference engine) on CPU with specific patches and optimizations. Here's a breakdown:
Base Image
FROM openeuler/vllm-cpu:0.9.1-oe2403lts
- Uses OpenEuler Linux distribution's pre-built vLLM image (version 0.9.1)
- Built for CPU inference (not GPU)
- Based on OpenEuler 24.03 LTS
Critical Patch (Lines 4-5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM openeuler/vllm-cpu:0.9.1-oe2403lts | |
| # Patch the cpu_worker.py to handle zero NUMA nodes | |
| RUN sed -i 's/cpu_count_per_numa = cpu_count \/\/ numa_size/cpu_count_per_numa = cpu_count \/\/ numa_size if numa_size > 0 else cpu_count/g' \ | |
| /workspace/vllm/vllm/worker/cpu_worker.py | |
| ENV VLLM_TARGET_DEVICE=cpu \ | |
| VLLM_CPU_KVCACHE_SPACE=1 \ | |
| OMP_NUM_THREADS=2 \ | |
| OPENBLAS_NUM_THREADS=1 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| deploymentMode: SingleBinary | |
| singleBinary: | |
| replicas: 1 | |
| loki: | |
| commonConfig: | |
| replication_factor: 1 | |
| # Required for new installs |