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
| name: "ensemble_base_model" | |
| backend: "vllm" | |
| max_batch_size: 0 | |
| input [ | |
| { | |
| name: "prompt" | |
| data_type: TYPE_STRING | |
| dims: [ 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
| package broker | |
| import ( | |
| "fmt" | |
| "sync" | |
| "golang.org/x/sys/unix" | |
| ) | |
| // Pipe represents a pair of kernel pipe file descriptors used for splicing. | |
| type Pipe struct { |
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
| helm upgrade cilium cilium/cilium \ | |
| --namespace kube-system \ | |
| --reuse-values \ | |
| --set authentication.enabled=true \ | |
| --set authentication.mutual.spire.enabled=true \ | |
| --set authentication.mutual.spire.install.enabled=true \ | |
| --set authentication.mutual.spire.install.server.dataStorage.enabled=true \ | |
| --set egressGateway.enabled=true \ | |
| --set bpf.masquerade=true |
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
| -- Step 1: Add the half-precision vector column allowing NULLs initially | |
| ALTER TABLE documents ADD COLUMN embedding_half halfvec(1536); | |
| -- Step 2: Populate the new column in batches to prevent transaction log bloat | |
| -- (For a live database, execute this in chunks of 50,000 rows using a background job) | |
| UPDATE documents | |
| SET embedding_half = embedding::halfvec(1536) | |
| WHERE embedding_half IS NULL; | |
| -- Step 3: Enforce the NOT NULL constraint after verification |
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
| package tracing | |
| import ( | |
| "github.com/IBM/sarama" | |
| "go.opentelemetry.io/otel/propagation" | |
| ) | |
| // SaramaProducerCarrier injects trace context into Sarama producer message headers. | |
| type SaramaProducerCarrier struct { | |
| Headers *[]sarama.RecordHeader |
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
| package crdt | |
| import ( | |
| "errors" | |
| "sync" | |
| ) | |
| // ID uniquely identifies an item in the CRDT space. | |
| // Using compact numeric types minimizes heap allocation size and GC overhead. | |
| type ID struct { |
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
| # Enable the PKI secrets engine at a specific path for Kafka client certs | |
| vault secrets enable -path=kafka-pki pki | |
| # Tune the secrets engine to support up to 30 days max TTL | |
| vault secrets tune -max-lease-ttl=720h kafka-pki | |
| # Generate the root CA certificate for Kafka clients | |
| vault write -format=json kafka-pki/root/generate/internal \ | |
| common_name="Kafka Client Root CA" \ | |
| ttl=87600h > root_ca.json |
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
| package gateway | |
| import "time" | |
| // ModelConfig represents the static metadata and dynamic tracking of an LLM upstream. | |
| type ModelConfig struct { | |
| ID string `json:"id"` | |
| Provider string `json:"provider"` | |
| InputCostPerM float64 `json:"input_cost_per_m"` // USD per 1M input tokens | |
| OutputCostPerM float64 `json:"output_cost_per_m"` // USD per 1M output tokens |
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
| # Cilium CNI Helm values.yaml for enabling kernel-level WireGuard encryption | |
| encryption: | |
| enabled: true | |
| type: wireguard | |
| # Force the use of the native Linux kernel module instead of userspace BoringTun | |
| wireguard: | |
| userspace: false | |
| # Port must be exposed and accessible between all cluster nodes | |
| port: 51871 | |
| # Auto-calculate MTU based on physical link overhead |
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
| package jemalloc | |
| /* | |
| #cgo LDFLAGS: -ljemalloc | |
| #include <stdlib.h> | |
| #include <jemalloc/jemalloc.h> | |
| */ | |
| import "C" | |
| import ( | |
| "unsafe" |