Skip to content

Instantly share code, notes, and snippets.

View ChristianKniep's full-sized avatar

Christian Kniep ChristianKniep

View GitHub Profile
@ChristianKniep
ChristianKniep / gist:b409683ef907affe928a30cf8b42ede6
Created October 30, 2025 10:46
MemMachine Locust Benchmark: Grafana Dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@ChristianKniep
ChristianKniep / gist:7436d8145820efb453f38fb721546413
Last active October 30, 2025 10:42
MemMachine Locust Benchmark: locustfile.py
"""
This Locust load testing script is designed to simulate user traffic for the MemMachine API.
It consists of two main components:
1. MemMachineUser(HttpUser): Defines the behavior of a single virtual user, including the API endpoints
they hit, the frequency of those actions (using task weights), and the data they send.
- Tasks include adding memories, searching memories, and accessing various GET endpoints.
- Each user simulates a unique session with unique IDs.
2. RampUpShape(LoadTestShape): Defines a custom, multi-stage load shape. This class programmatically
@ChristianKniep
ChristianKniep / gist:73992ed150446d14266fbebc8d4fab03
Last active October 28, 2025 14:18
MemMachine Locust Benchmark: configuration.yml
logging:
path: /tmp/memory_log
level: info
long_term_memory:
derivative_deriver: sentence
metadata_prefix: "[$timestamp] $producer_id: "
embedder: my_embedder_id
reranker: my_reranker_id
vector_graph_store: my_storage_id
@ChristianKniep
ChristianKniep / gist:5d049b75233b54c54f12c51fdd1d12b0
Created October 28, 2025 12:59
MemMachine Locus Benchmark: Grafana datasources.yaml
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
@ChristianKniep
ChristianKniep / gist:e29e85ea81041e117923538663da52af
Created October 28, 2025 12:48
MemMachine Locust Benchmark: dashboards.yaml
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: ''
type: file
disableDeletion: false
editable: true
updateIntervalSeconds: 10
@ChristianKniep
ChristianKniep / gist:cf2f9b5cb782d752a1b7e7eb1973c76e
Last active October 30, 2025 09:32
MemMachine Locust Bench: prometheus.yaml
global:
scrape_interval: 1s
scrape_configs:
- job_name: 'memmachine'
static_configs:
- targets: ['memmachine:8080']
- job_name: 'dcgm'
static_configs:
- targets: ['dcgm:9400']
@ChristianKniep
ChristianKniep / gist:eecec16a4a7d6af544e02a6b9713dd2a
Created October 28, 2025 12:45
MemMachine Locust Benchmark: litellm/config.yaml
model_list:
- model_name: qwen3:8b
litellm_params:
model: ollama/qwen3:8b
api_base: http://ollama:11434
- model_name: qwen3-embedding:0.6b
litellm_params:
model: ollama/qwen3-embedding:0.6b
api_base: http://ollama:11434
litellm_settings:
@ChristianKniep
ChristianKniep / gist:a5f522a8f2380dc1b1d7e883a7e1a8fc
Last active October 30, 2025 10:44
MemMachine Locust Benchmark: docker-compose
services:
dcgm:
container_name: dcgm
image: nvcr.io/nvidia/k8s/dcgm-exporter:4.4.1-4.6.0-ubuntu22.04
runtime: nvidia
privileged: true
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
- CUDA_VISIBLE_DEVICES=0
#!/bin/bash
mkdir -p /tmp/opencarp
cd /tmp/opencarp
wget -q https://opencarp.org/rpm/opencarp-v7.0.rpm
yum install -y opencarp-v7.0.rpm

Keybase proof

I hereby claim:

  • I am christiankniep on github.
  • I am qnib (https://keybase.io/qnib) on keybase.
  • I have a public key ASCoyIRNZWEzP3x0O_-oe8Qbdfl_rVnjni3A6H4At_rDtQo

To claim this, I am signing this object: