Merge RediSearch PR
Redis Stack with RediSearch for HNSW vector search. Memory bumped to 1Gi.
This commit is contained in:
parent
bf37ebd3b3
commit
f8fa436b8b
1 changed files with 20 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# Redis single-instance for trading platform caching
|
# Redis Stack with RediSearch for vector similarity search (HNSW, 768-dim)
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -34,16 +34,25 @@ kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: trading-redis-config
|
name: trading-redis-config
|
||||||
namespace: customer1
|
namespace: customer1
|
||||||
|
labels:
|
||||||
|
app: trading-redis
|
||||||
data:
|
data:
|
||||||
redis.conf: |
|
redis.conf: |
|
||||||
maxmemory 256mb
|
# Memory - increased for RediSearch vector indexes
|
||||||
|
maxmemory 1gi
|
||||||
maxmemory-policy allkeys-lru
|
maxmemory-policy allkeys-lru
|
||||||
|
|
||||||
|
# Persistence
|
||||||
save 900 1
|
save 900 1
|
||||||
save 300 10
|
save 300 10
|
||||||
save 60 10000
|
save 60 10000
|
||||||
appendonly yes
|
appendonly yes
|
||||||
appendfsync everysec
|
appendfsync everysec
|
||||||
dir /data
|
dir /data
|
||||||
|
|
||||||
|
# RediSearch module loaded automatically by redis-stack image
|
||||||
|
# HNSW index config tuned for 768-dim vectors (e.g. nomic-embed-text)
|
||||||
|
# HNSWARGB: initial_cap=2048, M=16, EF_CONSTRUCTION=200, EF_RUNTIME=40
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
@ -70,20 +79,22 @@ spec:
|
||||||
fsGroup: 999
|
fsGroup: 999
|
||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis:7.4-alpine
|
image: redis/redis-stack:7.4.2-v16
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 6379
|
- containerPort: 6379
|
||||||
name: redis
|
name: redis
|
||||||
|
- containerPort: 8001
|
||||||
|
name: redis-insight
|
||||||
args:
|
args:
|
||||||
- redis-server
|
- redis-server
|
||||||
- /etc/redis/redis.conf
|
- /etc/redis/redis.conf
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 200m
|
||||||
memory: 128Mi
|
|
||||||
limits:
|
|
||||||
cpu: 500m
|
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
|
limits:
|
||||||
|
cpu: "1"
|
||||||
|
memory: 2Gi
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
|
|
@ -100,14 +111,14 @@ spec:
|
||||||
command:
|
command:
|
||||||
- redis-cli
|
- redis-cli
|
||||||
- ping
|
- ping
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- redis-cli
|
- redis-cli
|
||||||
- ping
|
- ping
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue