Features: - Three-tier memory architecture (short/mid/long-term) - PostgreSQL schema for conversations, events, memories - Qdrant vector database for semantic search - Cohere embeddings (embed-multilingual-v3.0, 1024 dims) - FastAPI Memory Service with full CRUD - External Secrets integration with Vault - Kubernetes deployment manifests Components: - infrastructure/database/agent-memory-schema.sql - infrastructure/kubernetes/apps/qdrant/ - infrastructure/kubernetes/apps/memory-service/ - services/memory-service/ (FastAPI app) Also includes: - External Secrets Operator - Traefik Ingress Controller - Cert-Manager with Let's Encrypt - ArgoCD for GitOps
45 lines
1008 B
Django/Jinja
45 lines
1008 B
Django/Jinja
# PgBouncer Configuration for {{ inventory_hostname }}
|
|
# Generated by Ansible
|
|
|
|
[databases]
|
|
{{ postgres_db }} = host=127.0.0.1 port=5432 dbname={{ postgres_db }}
|
|
* = host=127.0.0.1 port=5432
|
|
|
|
[pgbouncer]
|
|
listen_addr = 0.0.0.0
|
|
listen_port = {{ pgbouncer_port }}
|
|
unix_socket_dir = /var/run/postgresql
|
|
|
|
auth_type = scram-sha-256
|
|
auth_file = /etc/pgbouncer/userlist.txt
|
|
|
|
# Pool settings
|
|
pool_mode = transaction
|
|
max_client_conn = {{ pgbouncer_max_client_conn }}
|
|
default_pool_size = {{ pgbouncer_default_pool_size }}
|
|
min_pool_size = 10
|
|
reserve_pool_size = 5
|
|
reserve_pool_timeout = 3
|
|
|
|
# Timeouts
|
|
server_connect_timeout = 15
|
|
server_idle_timeout = 600
|
|
server_lifetime = 3600
|
|
client_idle_timeout = 0
|
|
client_login_timeout = 60
|
|
query_timeout = 0
|
|
query_wait_timeout = 120
|
|
|
|
# Logging
|
|
log_connections = 1
|
|
log_disconnections = 1
|
|
log_pooler_errors = 1
|
|
stats_period = 60
|
|
|
|
# Admin
|
|
admin_users = pgbouncer,{{ postgres_user }}
|
|
stats_users = pgbouncer,{{ postgres_user }}
|
|
|
|
# Security
|
|
ignore_startup_parameters = extra_float_digits
|